xref: /petsc/src/sys/classes/viewer/interface/flush.c (revision 811af0c4b09a35de4306c442f88bd09fdc09897d)
15c6c1daeSBarry Smith 
2af0996ceSBarry Smith #include <petsc/private/viewerimpl.h> /*I "petscviewer.h" I*/
35c6c1daeSBarry Smith 
45c6c1daeSBarry Smith /*@
5*811af0c4SBarry Smith    PetscViewerFlush - Flushes a `PetscViewer` (i.e. tries to dump all the
6*811af0c4SBarry Smith    data that has been printed through a `PetscViewer`).
75c6c1daeSBarry Smith 
8*811af0c4SBarry Smith    Collective on viewer
95c6c1daeSBarry Smith 
105c6c1daeSBarry Smith    Input Parameter:
11*811af0c4SBarry Smith .  viewer - the `PetscViewer` to be flushed
125c6c1daeSBarry Smith 
135c6c1daeSBarry Smith    Level: intermediate
145c6c1daeSBarry Smith 
15*811af0c4SBarry Smith .seealso: `PetscViewer`, `PetscViewerSocketOpen()`, `PetscViewerASCIIOpen()`, `PetscViewerDrawOpen()`, `PetscViewerCreate()`, `PetscViewerDestroy()`,
16db781477SPatrick Sanan           `PetscViewerSetType()`
175c6c1daeSBarry Smith @*/
189371c9d4SSatish Balay PetscErrorCode PetscViewerFlush(PetscViewer viewer) {
195c6c1daeSBarry Smith   PetscFunctionBegin;
205c6c1daeSBarry Smith   PetscValidHeaderSpecific(viewer, PETSC_VIEWER_CLASSID, 1);
21dbbe0bcdSBarry Smith   PetscTryTypeMethod(viewer, flush);
225c6c1daeSBarry Smith   PetscFunctionReturn(0);
235c6c1daeSBarry Smith }
24