36 #define CEPS_MASTER_PROC 0
std::basic_string< CepsChar > CepsString
C++ format string.
std::make_unsigned_t< CepsInt > CepsUInt
Unsigned version on CepsInt.
A namespace for all utility methods.
CepsString execute(CepsString command, CepsBool withErr=false, CepsBool abortOnErr=false)
Not really a parallel thing. Calls system() and deals with return code.
CepsUInt getRank()
Returns current processor rank.
MPI_Comm getCommunicator()
Get the communicator.
CepsBool isLast()
Is calling process last in computing grid ?
CepsBool isParallel()
Is there more than 1 process currently working ?
CepsUInt getGridSize()
Returns the number of process on the computing grid.
CepsUInt initialize(int argc, char *argv[])
Initializes parallel environment.
void finalize()
Finalizes parallel environment.
void barrier()
Explicit barrier: wait for all processors before continuing.
void beginSequential()
Begins a sequential block.
CepsBool isMaster()
Is calling process the master ?
MPI_Comm * getPtrCommunicator()
Get pointer to the communicator.
void endSequential()
End a sequential block.
void finalizeWithError()
Calls MPI_Abort, function used instead of std::terminate()