aboutsummaryrefslogtreecommitdiff
path: root/CarpetAttic/CarpetIOFlexIO/src/ioflexio.hh
blob: 0b43a3eebfd0a56d85f81812ebb0cd2a9e6b4b09 (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
// $Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/CarpetIOFlexIO/src/ioflexio.hh,v 1.1 2001/03/15 23:28:50 eschnett Exp $

#include <vector>

#include "cctk.h"

namespace CarpetIOFlexIO {
  
  // Variable definitions
  extern int GHExtension;
  extern int IOMethod;
  extern vector<bool> do_truncate;
  extern vector<int> last_output;
  
  // Scheduled functions
  extern "C" {
    int CarpetIOFlexIOStartup ();
  }
  
  void* SetupGH (tFleshConfig* const fc,
		 const int convLevel, cGH* const cgh);
  
  int OutputGH (cGH* const cgh);
  int OutputVarAs (cGH* const cgh, const char* const varname,
		   const char* const alias);
  int TimeToOutput (cGH* const cgh, const int vindex);
  int TriggerOutput (cGH* const cgh, const int vindex);
  
} // namespace CarpetIOFlexIO