Actual source code: flush.c

petsc-3.13.6 2020-09-29
Report Typos and Errors

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

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

  8:    Collective on PetscViewer

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

 13:    Level: intermediate


 16: .seealso: PetscViewerSocketOpen(), PetscViewerASCIIOpen(), PetscViewerDrawOpen(), PetscViewerCreate(), PetscViewerDestroy(),
 17:           PetscViewerSetType()
 18: @*/
 19: PetscErrorCode  PetscViewerFlush(PetscViewer viewer)
 20: {

 25:   if (viewer->ops->flush) {
 26:     (*viewer->ops->flush)(viewer);
 27:   }
 28:   return(0);
 29: }