An interface class extending Iterator::Iterant with some file name handling.
More...
#include <IModelStep.hpp>
|
void | setInitFile (const std::string &filePath) |
| Sets the path to the initial file for later reference.
|
|
virtual void | writeRestartFile (const std::string &filePath)=0 |
| Writes a restart file containing the current model state to the given file location.
|
|
virtual void | setData (PrognosticData &data)=0 |
| Sets the data object that will be used within the timesteps.
|
|
virtual void | setMetadata (ModelMetadata &meta)=0 |
| Sets the metadata object that will be used within the timesteps.
|
|
virtual void | init ()=0 |
| Initializes the model, based on some environment stored in the implementing class.
|
|
virtual void | start (const TimePoint &startTime)=0 |
|
virtual void | iterate (const TimestepTime &dt)=0 |
|
virtual void | stop (const TimePoint &stopTime)=0 |
|
| Iterant (const Iterant ©From)=default |
|
Iterant & | operator= (const Iterant ©From)=default |
|
| Iterant (Iterant &&)=default |
|
Iterant & | operator= (Iterant &&)=default |
|
An interface class extending Iterator::Iterant with some file name handling.
Definition at line 18 of file IModelStep.hpp.
◆ init()
virtual void Nextsim::IModelStep::init |
( |
| ) |
|
|
pure virtual |
◆ iterate()
virtual void Nextsim::IModelStep::iterate |
( |
const TimestepTime & | dt | ) |
|
|
pure virtual |
◆ setData()
Sets the data object that will be used within the timesteps.
- Parameters
-
Implemented in Nextsim::DevStep.
◆ setInitFile()
void Nextsim::IModelStep::setInitFile |
( |
const std::string & | filePath | ) |
|
|
inline |
Sets the path to the initial file for later reference.
- Parameters
-
filePath | The path to the location of the file used to initialize the model. |
Definition at line 28 of file IModelStep.hpp.
◆ setMetadata()
virtual void Nextsim::IModelStep::setMetadata |
( |
ModelMetadata & | meta | ) |
|
|
pure virtual |
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.
- Parameters
-
Implemented in Nextsim::DevStep.
◆ start()
virtual void Nextsim::IModelStep::start |
( |
const TimePoint & | startTime | ) |
|
|
pure virtual |
◆ stop()
virtual void Nextsim::IModelStep::stop |
( |
const TimePoint & | stopTime | ) |
|
|
pure virtual |
◆ writeRestartFile()
virtual void Nextsim::IModelStep::writeRestartFile |
( |
const std::string & | filePath | ) |
|
|
pure virtual |
Writes a restart file containing the current model state to the given file location.
- Parameters
-
filePath | The path to the location to write the file. |
Implemented in Nextsim::DevStep.
◆ initialRestartFilePath
std::string Nextsim::IModelStep::initialRestartFilePath |
|
protected |
The documentation for this class was generated from the following file: