aboutsummaryrefslogtreecommitdiff
path: root/src/ioPandaGH.h
blob: 7434e1f7a1a3f6c2943ce0c09eaa0bca55de7d67 (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
47
48
49
 /*@@
   @header    ioPandaGH.h
   @date      01 Oct 1999
   @author    Jonghyun Lee
   @desc
              The extensions to the GH structure from IOPanda.
   @enddesc
   @version   $Header$
 @@*/

#ifndef _IOPANDA_IOPANDAGH_H_
#define _IOPANDA_IOPANDAGH_H_ 1

#include "StoreNamedData.h"
#include "CactusBase/IOUtil/src/ioutil_Utils.h"


#ifdef __cplusplus
extern "C"
{
#endif

typedef struct
{
  /* the number of times to output */
  int  out_every;

  /* I/O request descriptions for all CCTK variables */
  ioRequest **requests;

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

  /* the last iteration output for variable[i] */
  int  *out_last;
} pandaGH;


/* prototypes of functions to be registered as IOPanda's IO method */
int IOPanda_OutputGH (const cGH *GH);
int IOPanda_TriggerOutput (const cGH *GH, int);
int IOPanda_TimeFor (const cGH *GH, int);
int IOPanda_OutputVarAs (const cGH *GH, const char *var, const char *alias);

#ifdef __cplusplus
} // extern "C"
#endif

#endif  /* _IOPANDA_IOPANDAGH_H_ */