40#ifndef argListRunControl_H
41#define argListRunControl_H
78 Info<<
"Finalising parallel run" <<
endl;
87 void runPar(
int& argc,
char**& argv,
bool needsThread)
91 Info<<
"Failed to start parallel run" <<
endl;
107 return (parallel_ && distributed_);
113 distributed_ = (parallel_ && on);
126 int dryRun(
const int level)
noexcept
140 int verbose(
const int level)
noexcept
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void exit()
Job end with "exit" termination.
Helper class for initializing parallel jobs from the command arguments, storing 'dry-run' state etc....
ParRunControl()
Default construct.
int dryRun() const noexcept
Non-zero if set as 'dry-run'.
bool distributed() const noexcept
True if this is a parallel run and uses distributed roots.
bool parRun() const noexcept
True if this is a parallel run.
int dryRun(const int level) noexcept
Change 'dry-run', return old value.
int verbose() const noexcept
Non-zero if set as 'verbose'.
void distributed(bool on) noexcept
Set use of distributed roots, but only if actually parallel.
int verbose(const int level) noexcept
Change 'verbose', return old value.
void runPar(int &argc, char **&argv, bool needsThread)
Initialize Pstream for a parallel run.
~ParRunControl()
Destructor. Shutdown (finalize) MPI as required.
void shutdown() const
Generate status=done in lock (only when run-state = master)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.