PetscViewerFlowControlEndMain — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscViewerFlowControlEndMain

Finish a flow-controlled viewer operation on the main MPI process by signalling completion to the workers

## Synopsis

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

Collective

## Input Parameter

- viewer - the binary viewer

## Input/Output Parameter

- mcnt - the flow-control counter; reset to 0 and broadcast to signal completion

## Note

Broadcasting `mcnt = 0` releases any worker MPI processes still waiting inside `PetscViewerFlowControlEndWorker()`.

## See Also

`PetscViewer`, `PetscViewerFlowControlStart()`, `PetscViewerFlowControlStepMain()`, `PetscViewerFlowControlStepWorker()`, `PetscViewerFlowControlEndWorker()`

## 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