85 static void init(
int argc,
char** argv);
96#define MPI_EXCEPTION_CHECK(mpi_call) {int _mpi_ret_=mpi_call; if (_mpi_ret_ != MPI_SUCCESS) throw lm::MPIException(_mpi_ret_);}
Exception(const char *message="")
Create an Exception.
Definition Exceptions.h:62
int errorCode
Definition lm_mpi.h:55
MPIException(int error)
Create the MPIException.
Definition lm_mpi.cpp:49
Handles the MPI capabilities and properties of the simulation.
Definition lm_mpi.h:65
static const int MASTER
Definition lm_mpi.h:72
static int version
Definition lm_mpi.h:67
static const int MSG_OUTPUT_DATA_STATIC
Definition lm_mpi.h:77
static const int MSG_EXIT
Definition lm_mpi.h:78
static const int MSG_SIMULATION_FINISHED
Definition lm_mpi.h:76
static int worldSize
Definition lm_mpi.h:70
static const int OUTPUT_DATA_STATIC_MAX_SIZE
Definition lm_mpi.h:80
static int worldRank
Definition lm_mpi.h:71
static void printCapabilities()
Print the capabilities of the current processing device.
Definition lm_mpi.cpp:82
static void finalize()
Close and cleanup the MPI runtime.
Definition lm_mpi.cpp:100
static void init(int argc, char **argv)
Initialize the MPI runtime.
Definition lm_mpi.cpp:64
static int threadSupport
Definition lm_mpi.h:69
static const int MSG_RUN_SIMULATION
Definition lm_mpi.h:75
static int subversion
Definition lm_mpi.h:68
void MPIErrorHandler(MPI_Comm *, int *rc,...)
Definition Capsule.cpp:46