|
METHOD
|
#include <parallelSaveDataHDF5.h>


Public Types | |
| enum | OutputDetail { OUTPUT_ALL, OUTPUT_REDUCED, OUTPUT_MINIMAL } |
Public Member Functions | |
| void | saveCons () override |
| void | savePrims () override |
| void | saveAux () override |
| void | saveDomain () override |
| void | saveConsts () override |
| ParallelSaveDataHDF5 (Data *data, ParallelEnv *env, string filename="data", OutputDetail detail=OUTPUT_ALL) | |
| virtual | ~ParallelSaveDataHDF5 () |
| void | saveAll (bool timeSeries=false) override |
| void | saveVar (string variable, int num=1) override |
| void | openFile (const char *name) |
| void | openCheckpointFile () |
| void | writeDataSetDouble (const hid_t *group, const char *name, const int *var, const double *data) |
Public Member Functions inherited from SaveData | |
| SaveData (Data *data, int test=0) | |
| virtual | ~SaveData () |
Public Attributes | |
| ParallelEnv * | env |
| string | filename |
| hid_t | file = 0 |
| int | file_iteration = 0 |
| enum ParallelSaveDataHDF5::OutputDetail | detail |
Public Attributes inherited from SaveData | |
| Data * | d |
| int | Nouts |
| int | Ncount |
| int | test |
| char | dir [50] |
| char | app [50] |
Class used to save simulation data to HDF5 using multiple processes
Definition at line 25 of file parallelSaveDataHDF5.h.
The level of detail to output to file.
| Enumerator | |
|---|---|
| OUTPUT_ALL | All conserved, primitive, auxiliary and user-defined data. |
| OUTPUT_REDUCED | Skip auxiliary data. |
| OUTPUT_MINIMAL | Only conserved and primitive data. |
Definition at line 35 of file parallelSaveDataHDF5.h.
|
inline |
Constructor.
| [in] | *data | pointer to the Data class |
| [in] | *env | pointer to the Parallel Environment containing information on bounds etc. |
| [in] | filename | String describing the file to create. Can ignore |
Definition at line 62 of file parallelSaveDataHDF5.h.
|
inlinevirtual |
Destructor.
Definition at line 69 of file parallelSaveDataHDF5.h.
| void ParallelSaveDataHDF5::openCheckpointFile | ( | ) |
Tries to open a checkpoint file.
| void ParallelSaveDataHDF5::openFile | ( | const char * | name | ) |
Opens a new HDF5 file.
| [in] | name | Filename to create |
|
overridevirtual |
Saves all cons, prims, aux and constant data.
| [in] | timeSeries | flags whether the saved data is final or transient |
Implements SaveData.
|
overridevirtual |
Saves the auxiliary vector state.
Implements SaveData.
|
overridevirtual |
Saves the conserved vector state.
Implements SaveData.
|
overridevirtual |
Saves the constant data.
Implements SaveData.
|
overridevirtual |
Saves the domain coordinates.
Implements SaveData.
|
overridevirtual |
Saves the primitive vector state.
Implements SaveData.
|
overridevirtual |
Saves user specified variable.
var| [in] | variable | Defines the variable the user wants to save. Should match a variable label |
| [in] | num | number of user-specified variables to save in total (required for consistent numbering of files) |
Implements SaveData.
| void ParallelSaveDataHDF5::writeDataSetDouble | ( | const hid_t * | group, |
| const char * | name, | ||
| const int * | var, | ||
| const double * | data | ||
| ) |
Writes a new dataset.
| group | Root location to save to |
| name | Name of the new dataset |
| var | Which variable to save within the data array |
| data | Pointer to the data array (cons, prims, aux etc.) |
| enum ParallelSaveDataHDF5::OutputDetail ParallelSaveDataHDF5::detail |
| ParallelEnv* ParallelSaveDataHDF5::env |
Pointer to PlatformEnv class containing platform specific info such as MPI details.
Definition at line 29 of file parallelSaveDataHDF5.h.
| hid_t ParallelSaveDataHDF5::file = 0 |
HDF5 file to write to.
Definition at line 31 of file parallelSaveDataHDF5.h.
| int ParallelSaveDataHDF5::file_iteration = 0 |
The simulation iteration this file was opened for.
Definition at line 32 of file parallelSaveDataHDF5.h.
| string ParallelSaveDataHDF5::filename |
Filename for the HDF5 file. Defaults to 'data.hdf5'.
Definition at line 30 of file parallelSaveDataHDF5.h.