#include <PlayaMPISession.hpp>
Public Member Functions | |
~MPISession () | |
Static Public Member Functions | |
static void | init (int *argc, void ***argv) |
Initializer, calls MPI_Init() if necessary. | |
static void | init (int *argc, char ***argv) |
Initializer, calls MPI_Init() if necessary. | |
static int | getRank () |
Returns the process rank relative to MPI_COMM_WORLD. | |
static int | getNProc () |
Returns the number of processors in MPI_COMM_WORLD. | |
static void | finalize () |
Finalizer, calls MPI_Finalize() if necessary. | |
static bool & | showStartupMessage () |
Definition at line 25 of file PlayaMPISession.hpp.
Playa::MPISession::~MPISession | ( | ) |
dtor calls MPI finalize
Definition at line 85 of file PlayaMPISession.cpp.
void Playa::MPISession::init | ( | int * | argc, | |
void *** | argv | |||
) | [static] |
void Playa::MPISession::init | ( | int * | argc, | |
char *** | argv | |||
) | [static] |
static int Playa::MPISession::getRank | ( | ) | [inline, static] |
Returns the process rank relative to MPI_COMM_WORLD.
Definition at line 35 of file PlayaMPISession.hpp.
static int Playa::MPISession::getNProc | ( | ) | [inline, static] |
Returns the number of processors in MPI_COMM_WORLD.
Definition at line 38 of file PlayaMPISession.hpp.
void Playa::MPISession::finalize | ( | ) | [static] |
static bool& Playa::MPISession::showStartupMessage | ( | ) | [inline, static] |
Set to true if a message should be written by each processor at startup.
Definition at line 45 of file PlayaMPISession.hpp.