RAII Object to initialize waLBerla using command line parameters.
#include <Environment.h>
Public Member Functions | |
Environment (int &argc, char **&argv, bool mpiAbortOnException=true) | |
Constructor. More... | |
~Environment () | |
shared_ptr< Config > | config () |
Returns configuration object, or null if no configuration object exists. More... | |
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: "-myParameter myValue" These values are then substituted in configuration files at positions marked with 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
walberla::Environment::~Environment | ( | ) |
|
inline |
Returns configuration object, or null if no configuration object exists.
|
protected |
|
protected |