Actual source code: dsflush.c

petsc-3.6.4 2016-04-12
Report Typos and Errors
  2: /*
  3:        Provides the calling sequences for all the basic PetscDraw routines.
  4: */
  5: #include <petsc/private/drawimpl.h>  /*I "petscdraw.h" I*/

  9: /*@
 10:    PetscDrawSynchronizedFlush - Flushes graphical output. This waits until all
 11:    processors have arrived and flushed, then does a global flush.
 12:    This is usually done to change the frame for double buffered graphics.

 14:    Collective on PetscDraw

 16:    Input Parameters:
 17: .  draw - the drawing context

 19:    Level: beginner

 21:    Concepts: flushing^graphics

 23: .seealso: PetscDrawFlush()

 25: @*/
 26: PetscErrorCode  PetscDrawSynchronizedFlush(PetscDraw draw)
 27: {

 32:   if (draw->ops->synchronizedflush) {
 33:     (*draw->ops->synchronizedflush)(draw);
 34:   }
 35:   return(0);
 36: }