1*5c6c1daeSBarry Smith 2*5c6c1daeSBarry Smith #include <petsc-private/viewerimpl.h> /*I "petscviewer.h" I*/ 3*5c6c1daeSBarry Smith 4*5c6c1daeSBarry Smith #undef __FUNCT__ 5*5c6c1daeSBarry Smith #define __FUNCT__ "PetscViewerFlush" 6*5c6c1daeSBarry Smith /*@ 7*5c6c1daeSBarry Smith PetscViewerFlush - Flushes a PetscViewer (i.e. tries to dump all the 8*5c6c1daeSBarry Smith data that has been printed through a PetscViewer). 9*5c6c1daeSBarry Smith 10*5c6c1daeSBarry Smith Collective on PetscViewer 11*5c6c1daeSBarry Smith 12*5c6c1daeSBarry Smith Input Parameter: 13*5c6c1daeSBarry Smith . viewer - the PetscViewer to be flushed 14*5c6c1daeSBarry Smith 15*5c6c1daeSBarry Smith Level: intermediate 16*5c6c1daeSBarry Smith 17*5c6c1daeSBarry Smith Concepts: flushing^Viewer data 18*5c6c1daeSBarry Smith Concepts: redrawing^flushing 19*5c6c1daeSBarry Smith 20*5c6c1daeSBarry Smith .seealso: PetscViewerSocketOpen(), PetscViewerASCIIOpen(), PetscViewerDrawOpen(), PetscViewerCreate(), PetscViewerDestroy(), 21*5c6c1daeSBarry Smith PetscViewerSetType() 22*5c6c1daeSBarry Smith @*/ 23*5c6c1daeSBarry Smith PetscErrorCode PetscViewerFlush(PetscViewer viewer) 24*5c6c1daeSBarry Smith { 25*5c6c1daeSBarry Smith PetscErrorCode ierr; 26*5c6c1daeSBarry Smith 27*5c6c1daeSBarry Smith PetscFunctionBegin; 28*5c6c1daeSBarry Smith PetscValidHeaderSpecific(viewer,PETSC_VIEWER_CLASSID,1); 29*5c6c1daeSBarry Smith if (viewer->ops->flush) { 30*5c6c1daeSBarry Smith ierr = (*viewer->ops->flush)(viewer);CHKERRQ(ierr); 31*5c6c1daeSBarry Smith } 32*5c6c1daeSBarry Smith PetscFunctionReturn(0); 33*5c6c1daeSBarry Smith } 34*5c6c1daeSBarry Smith 35*5c6c1daeSBarry Smith 36