1 #ifndef PARALLELSAVEDATAHDF5_H 2 #define PARALLELSAVEDATAHDF5_H 32 int file_iteration = 0;
42 void saveCons()
override;
45 void savePrims()
override;
48 void saveAux()
override;
51 void saveDomain()
override;
54 void saveConsts()
override;
64 ) :
SaveData(data, 0), env(env), filename(filename), detail(detail) {
66 std::remove((filename+
".checkpoint.hdf5").c_str());
79 void saveAll(
bool timeSeries=
false)
override;
89 void saveVar(
string variable,
int num=1)
override;
98 void openFile(
const char *name);
105 void openCheckpointFile();
117 void writeDataSetDouble(
const hid_t *group,
const char *name,
const int *var,
const double *data);
ParallelEnv * env
Pointer to PlatformEnv class containing platform specific info such as MPI details.
ParallelSaveDataHDF5(Data *data, ParallelEnv *env, string filename="data", OutputDetail detail=OUTPUT_ALL)
Constructor.
string filename
Filename for the HDF5 file. Defaults to 'data.hdf5'.
All conserved, primitive, auxiliary and user-defined data.
virtual ~ParallelSaveDataHDF5()
Destructor.
Class used to save simulation data
Class used to save simulation data to HDF5 using multiple processes
OutputDetail
The level of detail to output to file.