aboutsummaryrefslogtreecommitdiff
path: root/src/ioGH.h
blob: 998e6bf72a540c3f7b55184125fb173f24034399 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 /*@@
   @header    ioGH.h
   @date      Tue 9th Jan 1999
   @author    Gabrielle Allen
   @desc
              The extensions to the GH structure from IOUtil.
   @enddesc
   @version   $Header$
 @@*/

#ifndef _IOUTIL_IOGH_H_
#define _IOUTIL_IOGH_H_ 1

#ifdef __cplusplus
extern "C"
{
#endif


/* IOUtil's GH extension structure */
typedef struct
{
  /* for full-dimensional parallel output */
  int ioproc;       /* the I/O processor each proc belongs to */
  int nioprocs;     /* total number of I/O processors */
  int ioproc_every; /* output by every N'th processor */
  int unchunked;    /* if true generate unchunked output file */
  int *downsample;  /* downsampling parameters array of size cctk_maxdim */
  int out_single;   /* if true output 3D data in single precision */

  /* for recovery */
  int recovered;    /* flag indicating restart after successful recovery */
  int stop_on_parse_errors; /* stop on I/O parameter parsing errors ? */

  /* for data file reader */
  CCTK_INT *do_inVars;   /* flags indicating to read in variable i with
                            iteration number do_inVars[i] (or -1 to read
                            the last iteration */
} ioGH;


#ifdef __cplusplus
}
#endif

#endif /* _IOUTIL_IOGH_H_ */