xref: /petsc/src/sys/classes/viewer/impls/ascii/asciiimpl.h (revision fe998a80077c9ee0917a39496df43fc256e1b478)
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   PetscViewer   subviewer;      /* used with PetscViewerGetSubcomm() */
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 PETSC_EXTERN PetscMPIInt MPIAPI Petsc_DelViewer(MPI_Comm,PetscMPIInt,void*,void*);
27