Actual source code: dflush.c

petsc-3.8.3 2017-12-09
Report Typos and Errors
  1: /*
  2:        Provides the calling sequences for all the basic PetscDraw routines.
  3: */
  4:  #include <petsc/private/drawimpl.h>

  6: /*@
  7:    PetscDrawFlush - Flushes graphical output.

  9:    Collective on PetscDraw

 11:    Input Parameters:
 12: .  draw - the drawing context

 14:    Level: beginner

 16:    Concepts: flushing^graphics

 18: .seealso: PetscDrawClear()
 19: @*/
 20: PetscErrorCode  PetscDrawFlush(PetscDraw draw)
 21: {

 26:   if (draw->ops->flush) {
 27:     (*draw->ops->flush)(draw);
 28:   }
 29:   if (draw->saveonflush) {PetscDrawSave(draw);}
 30:   return(0);
 31: }