Actual source code: flush.c

      1: #define PETSC_DLL

     3:  #include src/sys/src/viewer/viewerimpl.h

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

     11:    Collective on PetscViewer

     13:    Input Parameter:
     14: .  viewer - the PetscViewer to be flushed

     16:    Level: intermediate

     18:    Concepts: flushing^Viewer data
     19:    Concepts: redrawing^flushing

     21: .seealso: PetscViewerSocketOpen(), PetscViewerASCIIOpen(), PetscViewerDrawOpen(), PetscViewerCreate(), PetscViewerDestroy(),
     22:           PetscViewerSetType()
     23: @*/
     24: PetscErrorCode PETSC_DLLEXPORT PetscViewerFlush(PetscViewer viewer)
     25: {

     30:   if (viewer->ops->flush) {
     31:     (*viewer->ops->flush)(viewer);
     32:   }
     33:   return(0);
     34: }