xref: /petsc/src/sys/classes/viewer/impls/ascii/asciiimpl.h (revision 8cc058d9cd56c1ccb3be12a47760ddfc446aaffc)
15c6c1daeSBarry Smith 
25c6c1daeSBarry Smith #include <petsc-private/viewerimpl.h>  /*I     "petscsys.h"   I*/
35c6c1daeSBarry Smith 
45c6c1daeSBarry Smith typedef struct {
55c6c1daeSBarry Smith   FILE          *fd;
65c6c1daeSBarry Smith   PetscFileMode mode;           /* The mode in which to open the file */
75c6c1daeSBarry Smith   PetscInt      tab;            /* how many times text is tabbed in from left */
85c6c1daeSBarry Smith   PetscInt      tab_store;      /* store tabs value while tabs are turned off */
95c6c1daeSBarry Smith   PetscViewer   bviewer;        /* if PetscViewer is a singleton, this points to mother */
105c6c1daeSBarry Smith   PetscViewer   sviewer;        /* if PetscViewer has a singleton, this points to singleton */
115c6c1daeSBarry Smith   char          *filename;
125c6c1daeSBarry Smith   PetscBool     storecompressed;
135c6c1daeSBarry Smith   PetscBool     closefile;
145c6c1daeSBarry Smith   PetscBool     allowsynchronized; /* allow synchronized writes from any process to the viewer */
155c6c1daeSBarry Smith } PetscViewer_ASCII;
165c6c1daeSBarry Smith 
175c6c1daeSBarry Smith typedef struct PetscViewerLink_t PetscViewerLink;
185c6c1daeSBarry Smith struct PetscViewerLink_t {
195c6c1daeSBarry Smith   PetscViewer              viewer;
205c6c1daeSBarry Smith   struct PetscViewerLink_t *next;
215c6c1daeSBarry Smith };
225c6c1daeSBarry Smith 
235c6c1daeSBarry Smith extern PetscMPIInt Petsc_Viewer_keyval;
245c6c1daeSBarry Smith 
25*8cc058d9SJed Brown PETSC_EXTERN PetscMPIInt MPIAPI Petsc_DelViewer(MPI_Comm,PetscMPIInt,void*,void*);
26