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