blob: 309f207040ef8db19780bd942623c9ebeec1fd0d (
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
50
51
52
53
54
55
56
|
// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOASCII/src/ioascii.hh,v 1.1 2001/03/01 13:40:10 eschnett Exp $
#include <vector>
#include "cctk.h"
namespace Carpet {
// scheduled functions
extern "C" {
int CarpetIOASCIIStartup();
}
// Everything is a template class, so that it can easily be
// instantiated for all output dimensions.
template<int outdim>
struct IOASCII {
// handle from CCTK_RegisterGHExtension
static int GHExtension;
// handles from CCTK_RegisterIOMethed
static int IOMethod;
// Do truncate the output files for a variable
static vector<bool> do_truncate;
// Last iteration on which a variable was output (-1 for none)
static vector<int> last_output;
// scheduled functions
static int Startup();
// registered functions
static void* SetupGH (tFleshConfig *fc, int convLevel, cGH *cgh);
static int OutputGH (cGH* cgh);
static int OutputVarAs (cGH* cgh, const char* varname, const char* alias);
static int TimeToOutput (cGH* cgh, int vindex);
static int TriggerOutput (cGH* cgh, int vindex);
};
} // namespace Carpet
|