Actual source code: flush.c

  1: #include <petsc/private/viewerimpl.h>

  3: /*@
  4:   PetscViewerFlush - Flushes a `PetscViewer` (i.e. tries to dump all the
  5:   data that has been printed through a `PetscViewer`).

  7:   Collective

  9:   Input Parameter:
 10: . viewer - the `PetscViewer` to be flushed

 12:   Level: intermediate

 14: .seealso: [](sec_viewers), `PetscViewer`, `PetscViewerWriteable()`, `PetscViewerSocketOpen()`, `PetscViewerASCIIOpen()`, `PetscViewerDrawOpen()`, `PetscViewerCreate()`, `PetscViewerDestroy()`,
 15:           `PetscViewerSetType()`
 16: @*/
 17: PetscErrorCode PetscViewerFlush(PetscViewer viewer)
 18: {
 19:   PetscFunctionBegin;
 21:   PetscTryTypeMethod(viewer, flush);
 22:   PetscFunctionReturn(PETSC_SUCCESS);
 23: }