1 /* 2 Provides the calling sequences for all the basic PetscDraw routines. 3 */ 4 #include <petsc/private/drawimpl.h> /*I "petscdraw.h" I*/ 5 6 #undef __FUNCT__ 7 #define __FUNCT__ "PetscDrawFlush" 8 /*@ 9 PetscDrawFlush - Flushes graphical output. 10 11 Collective on PetscDraw 12 13 Input Parameters: 14 . draw - the drawing context 15 16 Level: beginner 17 18 Concepts: flushing^graphics 19 20 .seealso: PetscDrawClear() 21 @*/ 22 PetscErrorCode PetscDrawFlush(PetscDraw draw) 23 { 24 PetscErrorCode ierr; 25 26 PetscFunctionBegin; 27 PetscValidHeaderSpecific(draw,PETSC_DRAW_CLASSID,1); 28 if (draw->ops->flush) { 29 ierr = (*draw->ops->flush)(draw);CHKERRQ(ierr); 30 } 31 if (draw->saveonflush) {ierr = PetscDrawSave(draw);CHKERRQ(ierr);} 32 PetscFunctionReturn(0); 33 } 34