aboutsummaryrefslogtreecommitdiff
path: root/CarpetAttic/CarpetIOFlexIO/src/ioflexio.hh
diff options
context:
space:
mode:
Diffstat (limited to 'CarpetAttic/CarpetIOFlexIO/src/ioflexio.hh')
-rw-r--r--CarpetAttic/CarpetIOFlexIO/src/ioflexio.hh39
1 files changed, 39 insertions, 0 deletions
diff --git a/CarpetAttic/CarpetIOFlexIO/src/ioflexio.hh b/CarpetAttic/CarpetIOFlexIO/src/ioflexio.hh
new file mode 100644
index 000000000..156f9baaf
--- /dev/null
+++ b/CarpetAttic/CarpetIOFlexIO/src/ioflexio.hh
@@ -0,0 +1,39 @@
+// $Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/CarpetIOFlexIO/src/ioflexio.hh,v 1.8 2004/02/27 16:23:34 schnetter Exp $
+
+#ifndef CARPETIOFLEXIO_HH
+#define CARPETIOFLEXIO_HH
+
+#include <vector>
+
+#include "cctk.h"
+#include "cctk_Arguments.h"
+
+#include "ioflexio.h"
+
+namespace CarpetIOFlexIO {
+
+ // Variable definitions
+ extern int GHExtension;
+ extern int IOMethod;
+ extern vector<bool> do_truncate;
+ extern vector<vector<vector<int> > > last_output; // [ml][rl][var]
+
+ void* SetupGH (tFleshConfig* const fc,
+ const int convLevel, cGH* const cgh);
+
+ int OutputGH (const cGH* const cgh);
+ int OutputVarAs (const cGH* const cgh, const char* const varname,
+ const char* const alias);
+ int TimeToOutput (const cGH* const cgh, const int vindex);
+ int TriggerOutput (const cGH* const cgh, const int vindex);
+
+ int InputGH (const cGH* const cgh);
+ int InputVarAs (const cGH* const cgh, const char* const varname,
+ const char* const alias);
+
+ int Recover (cGH* const cgh, const char *basefilename,
+ const int called_from);
+
+} // namespace CarpetIOFlexIO
+
+#endif // !defined(CARPETIOFLEXIO_HH)