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