Class PrognosticData¶
Defined in File PrognosticData.hpp
Nested Relationships¶
Nested Types¶
Inheritance Relationships¶
Base Types¶
public Nextsim::CheckingModelComponent(Class CheckingModelComponent)public Nextsim::Configured< PrognosticData >(Template Class Configured)
Class Documentation¶
-
class PrognosticData : public Nextsim::CheckingModelComponent, public Nextsim::Configured<PrognosticData>¶
A class defining a configurable ModelComponent that stores the prognostic data values and handles their updates in the timestep, including all calls to the variables those calculations depend on.
Public Functions
-
PrognosticData()¶
-
virtual ~PrognosticData() = default¶
-
virtual void configure() override¶
The configuration function.
-
virtual void setData(const ModelState::DataMap &ms) override¶
Set the initial data of the component from the passed ModelState.
- Parameters:
state – The ModelState containing the data to be set.
-
virtual ModelState getStateDiagnostic() const override¶
Returns all data and configuration from this component.
The state returned by this function contains all available data in this component and all components that it calls.
-
virtual ModelState getStatePrognostic() const override¶
Returns the state of the ModelComponent.
Returns the state of the ModelComponent and any ModelComponents it depends on.
The state returned by this function contains all the data necessary to restart this component and all components that it calls.
-
void update(const TimestepTime &tsTime)¶
Updates the state of the prognostic data for this timestep.
- Parameters:
tsInitialTime – the time at the start of the timestep
-
PrognosticData()¶