PetscViewerFlowControlStart#

Begin a flow-controlled viewer operation on the main MPI process

Synopsis#

#include "petscviewer.h" 
PetscErrorCode PetscViewerFlowControlStart(PetscViewer viewer, PetscInt *mcnt, PetscInt *cnt)

Collective

Input Parameter#

  • viewer - the binary viewer

Output Parameters#

  • mcnt - the current flow-control counter on the main MPI process

  • cnt - the flow-control window size (also read from the viewer)

Note#

Used together with PetscViewerFlowControlStepMain() and PetscViewerFlowControlEndMain() on the main process (rank 0), and with PetscViewerFlowControlStepWorker() and PetscViewerFlowControlEndWorker() on the other processes, to serialize I/O work through a bounded window so that all processes do not simultaneously flood the main process with data.

See Also#

PetscViewer, PetscViewerFlowControlStepMain(), PetscViewerFlowControlEndMain(), PetscViewerFlowControlStepWorker(), PetscViewerFlowControlEndWorker(), PetscViewerBinaryGetFlowControl()

Level#

developer

Location#

src/sys/classes/viewer/interface/viewreg.c


Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages