|
METHOD
|
#include <initFuncFromCheckpoint.h>


Public Member Functions | |
| CheckpointRestart (Data *data, const char *name) | |
| virtual | ~CheckpointRestart () |
| virtual void | readDataSetDouble (const hid_t *group, const char *name, const int *var, double *varData) |
Public Member Functions inherited from InitialFunc | |
| InitialFunc (Data *data) | |
| virtual | ~InitialFunc () |
Additional Inherited Members | |
Public Attributes inherited from InitialFunc | |
| Data * | data |
Initialise from checkpoint restart file in serial
Initialises all cons and prims from a checkpoint restart file. Requires that the Data object has been correctly initialised with the same parameters as in the checkpoint restart file, which is most easily done by initialising Data using the CheckpointArgs object. For distributed (MPI) execution use ParallelCheckpointRestart instead.
Definition at line 17 of file initFuncFromCheckpoint.h.
| CheckpointRestart::CheckpointRestart | ( | Data * | data, |
| const char * | name | ||
| ) |
Initialise from checkpoint restart file.
Stores a pointer to the Data class for reference in its methods
| [in] | *data | pointer to Data class containing global simulation data |
| [in] | name | String, name of the checkpoint restart file including path (if not in execution folder) and extension |
|
inlinevirtual |
Destructor.
Definition at line 29 of file initFuncFromCheckpoint.h.
|
virtual |
/brief reads an HDF5 dataset for initialisation from checkpoint restart
Prepares the buffer for reading from file, and reads a dataset.
| group | The group within the file (or the file itself for root datasets) |
| name | The name of the dataset |
| var | Data is stored in 4-d arrays for each class of data (conserved/primitive/auxiliary), with the 1st dimension being the variable. This argument indicates which variable is being output. |
| data | The pointer to the data array. |