1 #ifndef SERIALSAVEDATAHDF5_H 2 #define SERIALSAVEDATAHDF5_H 34 int file_iteration = 0;
44 void saveCons()
override;
47 void savePrims()
override;
50 void saveAux()
override;
53 void saveDomain()
override;
56 void saveConsts()
override;
66 ) :
SaveData(data, 0), env(env), filename(filename), detail(detail) {
68 std::remove((filename+
".checkpoint.hdf5").c_str());
81 void saveAll(
bool timeSeries=
false)
override;
91 void saveVar(
string variable,
int num=1)
override;
100 void openFile(
const char *name);
107 void openCheckpointFile();
119 void writeDataSetDouble(
const hid_t *group,
const char *name,
const int *var,
const double *data);
Class used to save simulation data to HDF5 using a single process
SerialSaveDataHDF5(Data *data, SerialEnv *env, string filename="data", OutputDetail detail=OUTPUT_ALL)
Constructor.
All conserved, primitive, auxiliary and user-defined data.
virtual ~SerialSaveDataHDF5()
Destructor.
Class used to save simulation data
string filename
Filename for the HDF5 file. Defaults to 'data.hdf5'.
OutputDetail
The level of detail to output to file.
SerialEnv * env
Pointer to PlatformEnv class containing platform specific info such as MPI details.