This class holds the information about the global execution world and number of processors in communication. More...
Public Member Functions | |
processors () | |
Constructor. More... | |
~processors () | |
Destructor. More... | |
Static Public Member Functions | |
static void | initProcessors (int argc, char *argv[]) |
Initialize MPI processors. More... | |
static void | finalizeProcessors () |
Finalize MPI processors. More... | |
static int | globalMasterNo () |
Master processors number (globaly in MPI). More... | |
static bool | globalParallel () |
Is this a parallel MPI run. More... | |
static const char * | globalRunTypeName () |
static bool | isInitialized () |
Is MPI initialized? More... | |
static bool | isFinalized () |
Is MPI finalized? More... | |
static bool | globalMaster () |
Is this processor the master processor? More... | |
static int | globalSize () |
Global size of processors. More... | |
static int | globalRank () |
Rank of the processor in the global MPI. More... | |
static int | argc () |
static char ** | argv () |
static void | abort (int error) |
Abort MPI run or regular run. More... | |
Static Private Attributes | |
static bool | initProcessorsCelled_ = false |
Is the static member initProcessors is called. More... | |
static int | globalRank_ = 0 |
Global rank of the current processor. More... | |
static int | globalSize_ = 1 |
The global size of all processors. More... | |
static int | argc_ = 0 |
static char ** | argv_ = nullptr |
This class holds the information about the global execution world and number of processors in communication.
Definition at line 51 of file processors.hpp.
processors | ( | ) |
Constructor.
Definition at line 105 of file processors.cpp.
References processors::abort(), pFlow::endl(), and fatalErrorInFunction.
~processors | ( | ) |
Destructor.
Definition at line 119 of file processors.cpp.
|
static |
Initialize MPI processors.
Definition at line 42 of file processors.cpp.
References processorOstream::activatePrefix(), processors::argc(), processors::argc_, processors::argv(), processors::argv_, CheckMPI, pFlow::errReport, processors::globalMaster(), processors::globalParallel(), processors::globalRank_, processors::globalSize_, processors::initProcessorsCelled_, processors::isInitialized(), pFlow::mOutput, pFlow::pOutput, masterOstream::setMasterSlave(), and processorOstream::setPrefixNum().
Referenced by main().
|
static |
Finalize MPI processors.
Definition at line 88 of file processors.cpp.
References CheckMPI.
Referenced by main().
|
inlinestatic |
Master processors number (globaly in MPI).
Definition at line 91 of file processors.hpp.
Referenced by processors::globalMaster().
|
inlinestatic |
Is this a parallel MPI run.
Definition at line 98 of file processors.hpp.
References processors::globalSize().
Referenced by processors::globalRunTypeName(), and processors::initProcessors().
|
inlinestatic |
Definition at line 104 of file processors.hpp.
References processors::globalParallel().
Referenced by IOPattern::exeMode().
|
static |
Is MPI initialized?
Definition at line 123 of file processors.cpp.
Referenced by processors::initProcessors().
|
static |
Is MPI finalized?
Definition at line 135 of file processors.cpp.
|
inlinestatic |
Is this processor the master processor?
Definition at line 125 of file processors.hpp.
References processors::globalMasterNo(), and processors::globalRank().
Referenced by processors::initProcessors().
|
inlinestatic |
Global size of processors.
Definition at line 132 of file processors.hpp.
References processors::globalSize_.
Referenced by processors::globalParallel(), and localProcessors::localProcessors().
|
inlinestatic |
Rank of the processor in the global MPI.
Definition at line 139 of file processors.hpp.
References processors::globalRank_.
Referenced by regularSimulationDomain::createBoundaryDicts(), processors::globalMaster(), and localProcessors::localProcessors().
|
inlinestatic |
Definition at line 145 of file processors.hpp.
References processors::argc_.
Referenced by processors::initProcessors().
|
inlinestatic |
Definition at line 151 of file processors.hpp.
References processors::argv_.
Referenced by processors::initProcessors().
|
static |
Abort MPI run or regular run.
Definition at line 147 of file processors.cpp.
Referenced by fatalExitPhasicFlow(), and processors::processors().
|
inlinestaticprivate |
Is the static member initProcessors is called.
Definition at line 57 of file processors.hpp.
Referenced by processors::initProcessors().
|
inlinestaticprivate |
Global rank of the current processor.
Definition at line 61 of file processors.hpp.
Referenced by processors::globalRank(), and processors::initProcessors().
|
inlinestaticprivate |
The global size of all processors.
Definition at line 65 of file processors.hpp.
Referenced by processors::globalSize(), and processors::initProcessors().
|
inlinestaticprivate |
Definition at line 68 of file processors.hpp.
Referenced by processors::argc(), and processors::initProcessors().
|
inlinestaticprivate |
Definition at line 71 of file processors.hpp.
Referenced by processors::argv(), and processors::initProcessors().