Helper class for initializing parallel jobs from the command arguments. Also handles cleanup of parallel (or serial) jobs. More...
Public Member Functions | |
| ParRunControl () | |
| Default construct. More... | |
| ~ParRunControl () | |
| Destructor. Shutdown (finalize) MPI as required. 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. Also handles cleanup of parallel (or serial) jobs.
|
inline |
|
inline |
Destructor. Shutdown (finalize) MPI as required.
Definition at line 65 of file parRun.H.
References Foam::endl(), Foam::Info, and UPstream::shutdown().
|
inline |
Initialize Pstream for a parallel run.
Definition at line 77 of file parRun.H.
References Foam::endl(), UPstream::exit(), Foam::Info, and UPstream::init().
|
inline |
|
inline |