Go to the documentation of this file.
4 #ifndef tools_mpi_world
5 #define tools_mpi_world
11 #ifdef TOOLS_USE_NATIVE_MPI
28 static const std::string& s_class() {
29 static const std::string s_v(
"tools::mpi::world");
34 virtual bool init(
int* a_argc,
char*** a_argv) {
38 virtual bool rank(
int& a_rank)
const {
42 virtual bool size(
int& a_size)
const {
50 a_s = std::string(name);
56 tools::mem::increment(s_class().c_str());
61 tools::mem::decrement(s_class().c_str());
67 tools::mem::increment(s_class().c_str());
int MPI_Comm_size(MPI_Comm, int *)
#define MPI_MAX_PROCESSOR_NAME
int MPI_Comm_rank(MPI_Comm, int *)
int MPI_Get_processor_name(char *, int *)
int MPI_Init(int *, char ***)
#define MPI_COMM_WORLD
to pass examples/cpp/mpi.cpp //////////////////////////////