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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/*@@
@header ioASCIIGH.h
@date Tue 9th Jan 1999
@author Gabrielle Allen
@desc
The extensions to the GH structure from IOASCII.
@version $Header$
@@*/
#ifndef _IOASCII_IOASCIIGH_H_
#define _IOASCII_IOASCIIGH_H_ 1
#include "StoreNamedData.h"
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct IOASCIIGH
{
/* default number of times to output */
int out1D_every_default, out2D_every_default, out3D_every_default;
/* number of times to output every variable */
CCTK_INT *out1D_every, *out2D_every, *out3D_every;
/* lists of variables to output */
char *out1D_vars, *out2D_vars, *out3D_vars;
/* directories in which to output */
char *out1D_dir, *out2D_dir, *out3D_dir;
/* the last iteration output for var [i] */
int *out1D_last, *out2D_last, *out3D_last;
/* database for names of output files that were already created */
pNamedData *filenameList1D, *fileList_2D, *fileList_3D;
/* for 1D lines, we define the index where to start the line:
spxyz[maxdim][XYZdirection][xyzstart_index] */
int ***spxyz;
/* for 2D planes, we define the index where to locate the plane
sp2xyz[maxdim][perpendicular direction] */
int **sp2xyz;
/* stop on I/O parameter parsing errors ? */
int stop_on_parse_errors;
} asciiioGH;
/* prototypes of functions to be registered as I/O methods */
int IOASCII_Output1DGH (const cGH *GH);
int IOASCII_TriggerOutput1D (const cGH *GH, int);
int IOASCII_TimeFor1D (const cGH *GH, int);
int IOASCII_Output1DVarAs (const cGH *GH, const char *var, const char *alias);
int IOASCII_Output2DGH (const cGH *GH);
int IOASCII_TriggerOutput2D (const cGH *GH, int);
int IOASCII_TimeFor2D (const cGH *GH, int);
int IOASCII_Output2DVarAs (const cGH *GH, const char *var, const char *alias);
int IOASCII_Output3DGH (const cGH *GH);
int IOASCII_TriggerOutput3D (const cGH *GH, int);
int IOASCII_TimeFor3D (const cGH *GH, int);
int IOASCII_Output3DVarAs (const cGH *GH, const char *var, const char *alias);
/* other function prototypes */
int IOASCII_Write1D (const cGH *GH, int vindex, const char *alias);
int IOASCII_Write2D (const cGH *GH, int vindex, const char *alias);
int IOASCII_Write3D (const cGH *GH, int vindex, const char *alias);
void IOASCII_CheckSteerableParameters1D (asciiioGH *myGH);
void IOASCII_CheckSteerableParameters2D (asciiioGH *myGH);
void IOASCII_CheckSteerableParameters3D (asciiioGH *myGH);
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* _IOASCII_IOASCIIGH_H_ */
|