Helper class for initializing parallel jobs from the command arguments, storing 'dry-run' state etc. 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 noexcept |
True if this is a parallel run. More... | |
bool | distributed () const noexcept |
True if this is a parallel run and uses distributed roots. More... | |
void | distributed (bool on) noexcept |
Set use of distributed roots, but only if actually parallel. More... | |
int | dryRun () const noexcept |
Non-zero if set as 'dry-run'. More... | |
int | dryRun (const int level) noexcept |
Change 'dry-run', return old value. More... | |
int | verbose () const noexcept |
Non-zero if set as 'verbose'. More... | |
int | verbose (const int level) noexcept |
Change 'verbose', return old value. More... | |
Helper class for initializing parallel jobs from the command arguments, storing 'dry-run' state etc. Also handles cleanup of parallel (or serial) jobs.
|
inline |
|
inline |
Destructor. Shutdown (finalize) MPI as required.
Definition at line 73 of file parRun.H.
References Foam::endl(), Foam::Info, and externalFileCoupler::shutdown().
|
inline |
Initialize Pstream for a parallel run.
Definition at line 86 of file parRun.H.
References Foam::endl(), JobInfo::exit(), Foam::Info, and lduScheduleEntry::init.
Referenced by argList::argList().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Non-zero if set as 'dry-run'.
Definition at line 119 of file parRun.H.
Referenced by argList::argList().
|
inlinenoexcept |
|
inlinenoexcept |
Non-zero if set as 'verbose'.
Definition at line 133 of file parRun.H.
Referenced by argList::argList().
|
inlinenoexcept |