15c6c1daeSBarry Smith 2*af0996ceSBarry Smith #include <petsc/private/viewerimpl.h> /*I "petscviewer.h" I*/ 35c6c1daeSBarry Smith 45c6c1daeSBarry Smith #undef __FUNCT__ 55c6c1daeSBarry Smith #define __FUNCT__ "PetscViewerFlush" 65c6c1daeSBarry Smith /*@ 75c6c1daeSBarry Smith PetscViewerFlush - Flushes a PetscViewer (i.e. tries to dump all the 85c6c1daeSBarry Smith data that has been printed through a PetscViewer). 95c6c1daeSBarry Smith 105c6c1daeSBarry Smith Collective on PetscViewer 115c6c1daeSBarry Smith 125c6c1daeSBarry Smith Input Parameter: 135c6c1daeSBarry Smith . viewer - the PetscViewer to be flushed 145c6c1daeSBarry Smith 155c6c1daeSBarry Smith Level: intermediate 165c6c1daeSBarry Smith 175c6c1daeSBarry Smith Concepts: flushing^Viewer data 185c6c1daeSBarry Smith Concepts: redrawing^flushing 195c6c1daeSBarry Smith 205c6c1daeSBarry Smith .seealso: PetscViewerSocketOpen(), PetscViewerASCIIOpen(), PetscViewerDrawOpen(), PetscViewerCreate(), PetscViewerDestroy(), 215c6c1daeSBarry Smith PetscViewerSetType() 225c6c1daeSBarry Smith @*/ 235c6c1daeSBarry Smith PetscErrorCode PetscViewerFlush(PetscViewer viewer) 245c6c1daeSBarry Smith { 255c6c1daeSBarry Smith PetscErrorCode ierr; 265c6c1daeSBarry Smith 275c6c1daeSBarry Smith PetscFunctionBegin; 285c6c1daeSBarry Smith PetscValidHeaderSpecific(viewer,PETSC_VIEWER_CLASSID,1); 295c6c1daeSBarry Smith if (viewer->ops->flush) { 305c6c1daeSBarry Smith ierr = (*viewer->ops->flush)(viewer);CHKERRQ(ierr); 315c6c1daeSBarry Smith } 325c6c1daeSBarry Smith PetscFunctionReturn(0); 335c6c1daeSBarry Smith } 345c6c1daeSBarry Smith 355c6c1daeSBarry Smith 36