waLBerla 7.2
|
RAII Object to initialize waLBerla using command line parameters.
#include <Environment.h>
Public Member Functions | |
Environment (int &argc, char **&argv, bool mpiAbortOnException=true) | |
Constructor. | |
~Environment () | |
shared_ptr< Config > | config () |
Returns configuration object, or null if no configuration object exists. | |
Protected Attributes | |
shared_ptr< Config > | config_ |
mpi::Environment | mpiEnv_ |
walberla::Environment::Environment | ( | int & | argc, |
char **& | argv, | ||
bool | mpiAbortOnException = true ) |
Constructor.
argc,argv | If command line parameters are present they have to contain at least the path to the configuration file and optionally pairs of param-value: "-blockName.parameterName=parameterValue" These values are then substituted in configuration files. It is also possible to pass no command line options (see description below ) |
If command line arguments are present the constructor initializes static objects and singleton classes using information of configuration file
If no command line arguments are present only MPI subsystem is initialized and logging is configured to default state.
walberla::Environment::~Environment | ( | ) |
|
inline |
Returns configuration object, or null if no configuration object exists.
|
protected |
|
protected |