Actual source code: dflush.c

      1: #define PETSC_DLL
      2: /*
      3:        Provides the calling sequences for all the basic PetscDraw routines.
      4: */
     5:  #include src/sys/src/draw/drawimpl.h

      9: /*@
     10:    PetscDrawFlush - Flushs graphical output.

     12:    Not collective (Use PetscDrawSynchronizedFlush() for collective)

     14:    Input Parameters:
     15: .  draw - the drawing context

     17:    Level: beginner

     19:    Concepts: flushing^graphics

     21: .seealso: PetscDrawSynchronizedFlush()
     22: @*/
     23: PetscErrorCode PETSC_DLLEXPORT PetscDrawFlush(PetscDraw draw)
     24: {
     28:   if (draw->ops->flush) {
     29:     (*draw->ops->flush)(draw);
     30:   }
     31:   return(0);
     32: }