Date: 2015-10-02T21:58:35+00:00

Actual source code: flush.c
petsc-3.6.2 2015-10-02
Report Typos and Errors

      2: #include <petsc/private/viewerimpl.h>  /*I "petscviewer.h" I*/

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

     10:    Collective on PetscViewer

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

     15:    Level: intermediate

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

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

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