|
GEOS
|
Holds the global GEOSX state. This is a singleton class, no more than one instance exists at at time. After construction the instance can be accessed from anywhere by the free function getGlobalState().
More...
#include <GeosxState.hpp>
Public Member Functions | |
| GeosxState (std::unique_ptr< CommandLineOptions > &&commandLineOptions) | |
| Construct a new state from command line options. More... | |
| ~GeosxState () | |
| Destructor. More... | |
| GeosxState (GeosxState const &)=delete | |
| GeosxState (GeosxState &&)=delete | |
| GeosxState & | operator= (GeosxState const &)=delete |
| GeosxState & | operator= (GeosxState &&)=delete |
| bool | initializeDataRepository () |
| Initialize the Data Repository from the input file. More... | |
| void | applyInitialConditions () |
| Apply initial conditions and if performing a restart overwrites the data repository. More... | |
| void | run () |
| Run the simulation. More... | |
| State | getState () const |
| Return the current State. More... | |
| CommandLineOptions const & | getCommandLineOptions () |
| Return the command line options. More... | |
| conduit::Node & | getRootConduitNode () |
| Return the root conduit node. More... | |
| ProblemManager & | getProblemManager () |
| Return the ProblemManager. More... | |
| dataRepository::Group & | getProblemManagerAsGroup () |
Return the ProblemManager but as a dataRepository::Group. More... | |
| FieldSpecificationManager & | getFieldSpecificationManager () |
| Return the FieldSpecificationManager. More... | |
| FunctionManager & | getFunctionManager () |
| Return the FunctionManager. More... | |
| CommunicationTools & | getCommunicationTools () |
| Return the CommunicationTools. More... | |
| std::chrono::system_clock::duration | getInitTime () const |
| Return the time taken to setup the problem. More... | |
| std::chrono::system_clock::duration | getRunTime () const |
| Return the time taken to run the problem. More... | |
Holds the global GEOSX state. This is a singleton class, no more than one instance exists at at time. After construction the instance can be accessed from anywhere by the free function getGlobalState().
Definition at line 93 of file GeosxState.hpp.
|
explicit |
Construct a new state from command line options.
| commandLineOptions | The command line options. |
Loads in the restart file if applicable, and allocates the ProblemManager.
getState() is State::UNINITIALIZED. | geos::GeosxState::~GeosxState | ( | ) |
Destructor.
cpp, otherwise the use of std::unique_ptr with forward declared types won't work. | void geos::GeosxState::applyInitialConditions | ( | ) |
Apply initial conditions and if performing a restart overwrites the data repository.
initializeDataRepository() when getState() is State::INITIALIZED. getState() is State::READY_TO_RUN.
|
inline |
Return the command line options.
Definition at line 152 of file GeosxState.hpp.
|
inline |
Return the CommunicationTools.
Definition at line 202 of file GeosxState.hpp.
| FieldSpecificationManager& geos::GeosxState::getFieldSpecificationManager | ( | ) |
Return the FieldSpecificationManager.
| FunctionManager& geos::GeosxState::getFunctionManager | ( | ) |
Return the FunctionManager.
|
inline |
Return the time taken to setup the problem.
Definition at line 212 of file GeosxState.hpp.
|
inline |
Return the ProblemManager.
Definition at line 172 of file GeosxState.hpp.
| dataRepository::Group& geos::GeosxState::getProblemManagerAsGroup | ( | ) |
Return the ProblemManager but as a dataRepository::Group.
ProblemManager but as a dataRepository::Group. dataRepository::Group and don't want to include ProblemManager.hpp.
|
inline |
Return the root conduit node.
Definition at line 162 of file GeosxState.hpp.
|
inline |
Return the time taken to run the problem.
Definition at line 219 of file GeosxState.hpp.
|
inline |
| bool geos::GeosxState::initializeDataRepository | ( | ) |
Initialize the Data Repository from the input file.
getState() is State::UNINITIALIZED. getState() is State::INITIALIZED. | void geos::GeosxState::run | ( | ) |
Run the simulation.
applyInitialConditions() when getState() is State::READY_TO_RUN. getState() is State::COMPLETED, otherwise if there is still stuff left to do getState() is State::READY_TO_RUN.