Actual source code: dsclear.c

      1: #define PETSC_DLL
      2: /*
      3:        Provides the calling sequences for all the basic PetscDraw routines.
      4: */
     5:  #include src/sys/src/draw/drawimpl.h

      9: /*@
     10:    PetscDrawSynchronizedClear - Clears graphical output. All processors must call this routine.
     11:    Does not return until the draw in context is clear.

     13:    Collective on PetscDraw

     15:    Input Parameters:
     16: .  draw - the drawing context

     18:    Level: intermediate

     20:    Concepts: clear^window

     22: @*/
     23: PetscErrorCode PETSC_DLLEXPORT PetscDrawSynchronizedClear(PetscDraw draw)
     24: {
     28:   if (draw->ops->synchronizedclear) {
     29:     (*draw->ops->synchronizedclear)(draw);
     30:   }
     31:   return(0);
     32: }