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