#include <Main.hpp>
◆ Main() [1/3]
Opm::Main::Main |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
bool |
ownMPI = true |
|
) |
| |
◆ Main() [2/3]
Opm::Main::Main |
( |
const std::string & |
filename, |
|
|
bool |
mpi_init = true , |
|
|
bool |
mpi_finalize = true |
|
) |
| |
|
explicit |
◆ Main() [3/3]
Opm::Main::Main |
( |
const std::string & |
filename, |
|
|
std::shared_ptr< EclipseState > |
eclipseState, |
|
|
std::shared_ptr< Schedule > |
schedule, |
|
|
std::shared_ptr< SummaryConfig > |
summaryConfig, |
|
|
bool |
mpi_init = true , |
|
|
bool |
mpi_finalize = true |
|
) |
| |
◆ ~Main()
◆ initialize_()
template<class TypeTagEarlyBird >
bool Opm::Main::initialize_ |
( |
int & |
exitCode, |
|
|
bool |
keepKeywords = false |
|
) |
| |
|
inlineprotected |
Initialize.
- Parameters
-
exitCode | The exitCode of the program. |
keepKeywords | Keep Schedule keywords even if there are no actions |
- Returns
- Whether to actually run the simulator. I.e. true if parsing of command line was successful and no –help, –print-properties, or –print-parameters have been found.
References argc_, argv_, Opm::FlowGenericVanguard::comm(), Opm::compileTimestamp(), Opm::moduleVersion(), Opm::moduleVersionName(), outputCout_, Opm::gpuistl::printDevice(), Opm::printFlowBanner(), and Opm::Parameters::printValues().
◆ initMPI()
void Opm::Main::initMPI |
( |
| ) |
|
◆ justInitialize()
int Opm::Main::justInitialize |
( |
| ) |
|
|
inline |
◆ maybeRedirectReservoirCouplingSlaveOutput_()
void Opm::Main::maybeRedirectReservoirCouplingSlaveOutput_ |
( |
| ) |
|
◆ maybeSaveReservoirCouplingSlaveLogFilename_()
void Opm::Main::maybeSaveReservoirCouplingSlaveLogFilename_ |
( |
| ) |
|
◆ runDynamic()
int Opm::Main::runDynamic |
( |
| ) |
|
|
inline |
Run simulation.
Selects an appropriate simulator based on runtime information in the input deck.
- Returns
- Simulation's status/exit code.
References Opm::Parameters::reset().
◆ runStatic()
template<class TypeTag >
int Opm::Main::runStatic |
( |
| ) |
|
|
inline |
Run simulation.
Uses staticially configured simulator defined at call site.
- Template Parameters
-
TypeTag | Simulation type's statically configured properties. |
- Returns
- Simulation's status/exit code.
◆ setArgvArgc_()
void Opm::Main::setArgvArgc_ |
( |
const std::string & |
filename | ) |
|
◆ setupVanguard()
void Opm::Main::setupVanguard |
( |
| ) |
|
|
protected |
◆ argc_
◆ argv_
char** Opm::Main::argv_ {nullptr} |
|
protected |
◆ outputCout_
bool Opm::Main::outputCout_ {false} |
|
protected |
◆ outputFiles_
bool Opm::Main::outputFiles_ {false} |
|
protected |
The documentation for this class was generated from the following file:
|