Helper class for initializing parallel jobs from the command arguments. More...
Public Member Functions | |
ParRunControl () | |
Construct null. More... | |
~ParRunControl () | |
Destructor, triggers Pstream::exit. More... | |
void | runPar (int &argc, char **&argv, bool needsThread) |
Initialize Pstream for a parallel run. More... | |
bool | parRun () const |
True if this is parallel run. More... | |
bool | distributed () const |
True if this is a parallel run and uses distributed roots. More... | |
void | distributed (bool on) |
Set use of distributed roots. More... | |
Helper class for initializing parallel jobs from the command arguments.
This class also handles cleanup of parallel or serial jobs in a uniform manner.
|
inline |
|
inline |
Destructor, triggers Pstream::exit.
Definition at line 67 of file parRun.H.
References Foam::endl(), UPstream::exit(), and Foam::Info.
|
inline |
Initialize Pstream for a parallel run.
Definition at line 80 of file parRun.H.
References Foam::endl(), UPstream::exit(), Foam::Info, and UPstream::init().
|
inline |
|
inline |