1: /* 2: Provides the calling sequences for all the basic PetscDraw routines. 3: */ 4: #include <petsc/private/drawimpl.h> /*I "petscdraw.h" I*/ 8: /*@ 9: PetscDrawFlush - Flushes graphical output. 11: Collective on PetscDraw 13: Input Parameters: 14: . draw - the drawing context 16: Level: beginner 18: Concepts: flushing^graphics 20: .seealso: PetscDrawClear() 21: @*/ 22: PetscErrorCode PetscDrawFlush(PetscDraw draw) 23: { 28: if (draw->ops->flush) { 29: (*draw->ops->flush)(draw); 30: } 31: if (draw->saveonflush) {PetscDrawSave(draw);} 32: return(0); 33: }