1: #ifndef viewercgnsimpl_h
2: #define viewercgnsimpl_h
4: #include <petsc/private/viewerimpl.h>
5: #include <cgnstypes.h>
7: typedef struct {
8: char *filename;
9: PetscFileMode btype;
10: int file_num;
11: PetscBool parallel;
12: const PetscInt *node_l2g;
13: int base, zone;
14: PetscInt num_local_nodes, nStart, nEnd;
15: PetscScalar *nodal_field;
16: PetscSegBuffer output_times;
17: } PetscViewer_CGNS;
19: #define PetscCallCGNS(ierr) \
20: do { \
21: int _cgns_ier = (ierr); \
23: } while (0)
25: #endif