diff options
Diffstat (limited to 'CarpetDev/CarpetIOF5_standalone/src/simulation.hh')
-rw-r--r-- | CarpetDev/CarpetIOF5_standalone/src/simulation.hh | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/CarpetDev/CarpetIOF5_standalone/src/simulation.hh b/CarpetDev/CarpetIOF5_standalone/src/simulation.hh new file mode 100644 index 000000000..4c4639958 --- /dev/null +++ b/CarpetDev/CarpetIOF5_standalone/src/simulation.hh @@ -0,0 +1,64 @@ +#ifndef SIMULATION_HH +#define SIMULATION_HH + +#include <set> +#include <string> + +#include <hdf5.h> + +#include "cctk.h" + +#include "timestep.hh" + + + +namespace CarpetIOF5 { + + using std::string; + + namespace F5 { + + class simulation_t { + + timestep_t & m_timestep; + + string const m_name; + + hid_t m_hdf5_simulation; + + simulation_t (); + simulation_t (simulation_t const &); + simulation_t operator= (simulation_t const &); + + public: + + simulation_t (timestep_t & timestep, + char const * name); + + virtual + ~ simulation_t (); + + timestep_t & + get_timestep () + const; + + hid_t + get_hdf5_simulation () + const; + + void + get_link_destination (int proc, + string & filename, + string & objectname) + const; + + virtual bool + invariant () + const; + }; + + } // namespace F5 + +} // namespace CarpetIOF5 + +#endif // #ifndef SIMULATION_HH |