1*5c6c1daeSBarry Smith 2*5c6c1daeSBarry Smith #include <petsc-private/viewerimpl.h> /*I "petscsys.h" I*/ 3*5c6c1daeSBarry Smith #include <stdarg.h> 4*5c6c1daeSBarry Smith 5*5c6c1daeSBarry Smith typedef struct { 6*5c6c1daeSBarry Smith FILE *fd; 7*5c6c1daeSBarry Smith PetscFileMode mode; /* The mode in which to open the file */ 8*5c6c1daeSBarry Smith PetscInt tab; /* how many times text is tabbed in from left */ 9*5c6c1daeSBarry Smith PetscInt tab_store; /* store tabs value while tabs are turned off */ 10*5c6c1daeSBarry Smith PetscViewer bviewer; /* if PetscViewer is a singleton, this points to mother */ 11*5c6c1daeSBarry Smith PetscViewer sviewer; /* if PetscViewer has a singleton, this points to singleton */ 12*5c6c1daeSBarry Smith char *filename; 13*5c6c1daeSBarry Smith PetscBool storecompressed; 14*5c6c1daeSBarry Smith PetscBool closefile; 15*5c6c1daeSBarry Smith PetscBool allowsynchronized; /* allow synchronized writes from any process to the viewer */ 16*5c6c1daeSBarry Smith } PetscViewer_ASCII; 17*5c6c1daeSBarry Smith 18*5c6c1daeSBarry Smith typedef struct PetscViewerLink_t PetscViewerLink; 19*5c6c1daeSBarry Smith struct PetscViewerLink_t { 20*5c6c1daeSBarry Smith PetscViewer viewer; 21*5c6c1daeSBarry Smith struct PetscViewerLink_t *next; 22*5c6c1daeSBarry Smith }; 23*5c6c1daeSBarry Smith 24*5c6c1daeSBarry Smith extern PetscMPIInt Petsc_Viewer_keyval; 25*5c6c1daeSBarry Smith 26*5c6c1daeSBarry Smith EXTERN_C_BEGIN 27*5c6c1daeSBarry Smith extern PetscMPIInt MPIAPI Petsc_DelViewer(MPI_Comm,PetscMPIInt,void*,void*); 28*5c6c1daeSBarry Smith EXTERN_C_END 29