aboutsummaryrefslogtreecommitdiff
path: root/src/iobasicGH.h
blob: fe1cb16057fa2bbe2c6d71057cdd655bcc8579fd (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
 /*@@
   @header    iobasic.h
   @date      Friday 18th September 1999
   @author    Gabrielle Allen
   @desc 
   The extensions to the GH structure from IOBasic.
   @enddesc
   @version $Header$
 @@*/

#include "StoreNamedData.h"


typedef struct IOBASICGH {

  /* how often to output */
  int  outScalar_every;
  int  outInfo_every;

  /* flags indicating output for var [i] */
  char   *do_outInfo;
  char   *do_outScalar;

  /* directory in which to output */
  char  *outdirScalar;

  /* The last iteration output */
  int   *outInfo_last;
  int   *outScalar_last;

  /* The values for info */
  CCTK_REAL **infovals;

  /* database for names of output files that were already created */
  pNamedData *filenameListScalar;

} iobasicGH;


/* function prototypes */
void IOBasic_Write (cGH *GH, int vindex, const char *alias);
void IOBasic_WriteGF (cGH *GH, int vindex, const char *alias);
int IOBasic_WriteInfo (cGH *GH, CCTK_REAL *val,int vindex, const char *operator, const char *alias);