xref: /petsc/src/sys/classes/viewer/impls/ascii/asciiimpl.h (revision af0996ce37bc06907c37d8d91773840993d61e62)
15c6c1daeSBarry Smith 
2*af0996ceSBarry 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 */
11dd2fa690SBarry Smith   PetscViewer   subviewer;      /* used with PetscViewerGetSubcomm() */
125c6c1daeSBarry Smith   char          *filename;
135c6c1daeSBarry Smith   PetscBool     storecompressed;
145c6c1daeSBarry Smith   PetscBool     closefile;
155c6c1daeSBarry Smith   PetscBool     allowsynchronized; /* allow synchronized writes from any process to the viewer */
165c6c1daeSBarry Smith } PetscViewer_ASCII;
175c6c1daeSBarry Smith 
185c6c1daeSBarry Smith typedef struct PetscViewerLink_t PetscViewerLink;
195c6c1daeSBarry Smith struct PetscViewerLink_t {
205c6c1daeSBarry Smith   PetscViewer              viewer;
215c6c1daeSBarry Smith   struct PetscViewerLink_t *next;
225c6c1daeSBarry Smith };
235c6c1daeSBarry Smith 
245c6c1daeSBarry Smith extern PetscMPIInt Petsc_Viewer_keyval;
255c6c1daeSBarry Smith 
268cc058d9SJed Brown PETSC_EXTERN PetscMPIInt MPIAPI Petsc_DelViewer(MPI_Comm,PetscMPIInt,void*,void*);
27