- Home
- About DUNE
- Download
- Documentation
- Community
- Development
A real mpi helper.This helper should be used for parallel programs. More...
#include <dune/common/mpihelper.hh>
Public Types | |
enum | { isFake = false } |
typedef MPI_Comm | MPICommunicator |
The type of the mpi communicator. | |
Public Member Functions | |
int | rank () const |
return rank of process | |
int | size () const |
return number of processes | |
Static Public Member Functions | |
static MPICommunicator | getCommunicator () |
get the default communicator | |
static MPICommunicator | getLocalCommunicator () |
get a local communicator | |
static CollectiveCommunication < MPICommunicator > | getCollectiveCommunication () |
static MPIHelper & | instance (int &argc, char **&argv) |
Get the singleton instance of the helper. |
A real mpi helper.
This helper should be used for parallel programs.
typedef MPI_Comm Dune::MPIHelper::MPICommunicator |
The type of the mpi communicator.
anonymous enum |
static CollectiveCommunication<MPICommunicator> Dune::MPIHelper::getCollectiveCommunication | ( | ) | [inline, static] |
References getCommunicator().
static MPICommunicator Dune::MPIHelper::getCommunicator | ( | ) | [inline, static] |
get the default communicator
Return a communicator to exchange data with all processes
Referenced by getCollectiveCommunication().
static MPICommunicator Dune::MPIHelper::getLocalCommunicator | ( | ) | [inline, static] |
get a local communicator
Returns a communicator to exchange data with the local process only
static MPIHelper& Dune::MPIHelper::instance | ( | int & | argc, | |
char **& | argv | |||
) | [inline, static] |
Get the singleton instance of the helper.
This method has to be called with the same arguments that the main method of the program was called:
int main(int argc, char** argv){ MPIHelper::instance(argc, argv); // program code comes here ... }
argc | The number of arguments provided to main. | |
argv | The arguments provided to main. |
int Dune::MPIHelper::rank | ( | ) | const [inline] |
return rank of process
int Dune::MPIHelper::size | ( | ) | const [inline] |
return number of processes
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].