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: .seealso: PetscDrawClear()
17: @*/
18: PetscErrorCode PetscDrawFlush(PetscDraw draw)
19: {
21: if (draw->ops->flush) {
22: (*draw->ops->flush)(draw);
23: }
24: if (draw->saveonflush) PetscDrawSave(draw);
25: return 0;
26: }