netxsimdg
|
A class providing a simple implementation of Iterator. More...
#include <DevStep.hpp>
Public Member Functions | |
void | writeRestartFile (const std::string &filePath) override |
Writes a restart file containing the current model state to the given file location. | |
void | setData (PrognosticData &pDat) override |
Sets the data object that will be used within the timesteps. | |
void | setMetadata (ModelMetadata &metadata) override |
Sets the metadata object that will be used within the timesteps. | |
void | init () override |
Initializes the model, based on some environment stored in the implementing class. | |
void | start (const TimePoint &startTime) override |
void | iterate (const TimestepTime &dt) override |
void | stop (const TimePoint &stopTime) override |
Public Member Functions inherited from Nextsim::IModelStep | |
void | setInitFile (const std::string &filePath) |
Sets the path to the initial file for later reference. | |
Public Member Functions inherited from Nextsim::Iterator::Iterant | |
Iterant (const Iterant ©From)=default | |
Iterant & | operator= (const Iterant ©From)=default |
Iterant (Iterant &&)=default | |
Iterant & | operator= (Iterant &&)=default |
Additional Inherited Members | |
Protected Attributes inherited from Nextsim::IModelStep | |
std::string | initialRestartFilePath |
A class providing a simple implementation of Iterator.
Definition at line 19 of file DevStep.hpp.
|
overridevirtual |
Initializes the model, based on some environment stored in the implementing class.
Implements Nextsim::IModelStep.
Definition at line 15 of file DevStep.cpp.
|
overridevirtual |
Performs one iteration a specified length
dt | The length of the timestep. |
Implements Nextsim::IModelStep.
Definition at line 22 of file DevStep.cpp.
|
inlineoverridevirtual |
Sets the data object that will be used within the timesteps.
data | The PrognosticData holding the model data. |
Implements Nextsim::IModelStep.
Definition at line 27 of file DevStep.hpp.
|
inlineoverridevirtual |
Sets the metadata object that will be used within the timesteps.
The ModelMetadata object will contain much constant information, primarily metadata about the model set up, but also time-dependent metadata, including the current time for which the model data is valid.
meta | A ModelMetadata reference to the metadata instance |
Implements Nextsim::IModelStep.
Definition at line 28 of file DevStep.hpp.
|
inlineoverridevirtual |
Initializes the iterant based on the start time.
startTime | the time at the initialization of the iterant. |
Implements Nextsim::IModelStep.
Definition at line 32 of file DevStep.hpp.
|
inlineoverridevirtual |
Finalizes the iterant based on the stop time.
stopTime | the time at the finalization of the iterant. |
Implements Nextsim::IModelStep.
Definition at line 34 of file DevStep.hpp.
|
inlineoverridevirtual |
Writes a restart file containing the current model state to the given file location.
filePath | The path to the location to write the file. |
Implements Nextsim::IModelStep.
Definition at line 25 of file DevStep.hpp.