My Project
Loading...
Searching...
No Matches
Opm::Main Class Reference

Public Member Functions

 Main (int argc, char **argv, bool ownMPI=true)
 
 Main (const std::string &filename, bool mpi_init=true, bool mpi_finalize=true)
 
 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)
 
void setArgvArgc_ (const std::string &filename)
 
void initMPI ()
 
int runDynamic ()
 
template<class TypeTag >
int runStatic ()
 
int justInitialize ()
 Used for test_outputdir.
 

Protected Member Functions

template<class TypeTagEarlyBird >
bool initialize_ (int &exitCode, bool keepKeywords=false)
 Initialize.
 
void setupVanguard ()
 

Protected Attributes

int argc_ {0}
 
char ** argv_ {nullptr}
 
bool outputCout_ {false}
 
bool outputFiles_ {false}
 

Member Function Documentation

◆ initialize_()

template<class TypeTagEarlyBird >
bool Opm::Main::initialize_ ( int & exitCode,
bool keepKeywords = false )
inlineprotected

Initialize.

Parameters
exitCodeThe exitCode of the program.
keepKeywordsKeep 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.

The documentation for this class was generated from the following files: