dune-common 2.9.0
|
A real mpi helper. More...
#include <dune/common/parallel/mpihelper.hh>
Public Types | |
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 | |
~MPIHelper () | |
calls MPI_Finalize | |
Static Public Member Functions | |
static MPICommunicator | getCommunicator () |
get the default communicator | |
static MPICommunicator | getLocalCommunicator () |
get a local communicator | |
static Communication< MPICommunicator > | getCollectiveCommunication () |
static Communication< MPICommunicator > | getCommunication () |
static DUNE_EXPORT MPIHelper & | instance (int &argc, char **&argv) |
Get the singleton instance of the helper. | |
static DUNE_EXPORT MPIHelper & | instance () |
Static Public Attributes | |
static constexpr bool | isFake = false |
Are we fake (i. e. pretend to have MPI support but are compiled without. | |
A real mpi helper.
This helper should be used for parallel programs.
typedef MPI_Comm Dune::MPIHelper::MPICommunicator |
The type of the mpi communicator.
|
inline |
calls MPI_Finalize
|
inlinestatic |
Use getCommunication instead.
|
inlinestatic |
|
inlinestatic |
get the default communicator
Return a communicator to exchange data with all processes
|
inlinestatic |
get a local communicator
Returns a communicator to exchange data with the local process only
|
inlinestatic |
|
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
|
staticconstexpr |
Are we fake (i. e. pretend to have MPI support but are compiled without.