CEPS  24.01
Cardiac ElectroPhysiology Simulator
CepsParallelTools.hpp File Reference

Go to the source code of this file.

Namespaces

 ceps
 A namespace for all utility methods.
 

Macros

#define CEPS_MASTER_PROC   0
 

Functions

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

Detailed Description

Various basic utilities for parallel stuff

Definition in file CepsParallelTools.hpp.

Macro Definition Documentation

◆ CEPS_MASTER_PROC

#define CEPS_MASTER_PROC   0

Definition at line 36 of file CepsParallelTools.hpp.