|
dune-common
2.3.1
|
A real mpi helper.This helper should be used for parallel programs. More...
#include <dune/common/parallel/mpihelper.hh>
Public Types | |
| enum | { isFake = false } |
| typedef MPI_Comm | MPICommunicator |
| The type of the mpi communicator. More... | |
Public Member Functions | |
| int | rank () const |
| return rank of process More... | |
| int | size () const |
| return number of processes More... | |
Static Public Member Functions | |
| static MPICommunicator | getCommunicator () |
| get the default communicator More... | |
| static MPICommunicator | getLocalCommunicator () |
| get a local communicator More... | |
| static CollectiveCommunication < MPICommunicator > | getCollectiveCommunication () |
| static DUNE_EXPORT MPIHelper & | instance (int &argc, char **&argv) |
| Get the singleton instance of the helper. More... | |
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 |
|
inlinestatic |
References getCommunicator().
|
inlinestatic |
get the default communicator
Return a communicator to exchange data with all processes
Referenced by getCollectiveCommunication().
|
inlinestatic |
get a local communicator
Returns a communicator to exchange data with the local process only
|
inlinestatic |
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:
| argc | The number of arguments provided to main. |
| argv | The arguments provided to main. |
|
inline |
return rank of process
|
inline |
return number of processes
1.8.7