dune-common
2.8.0
|
A fake mpi helper. More...
#include <dune/common/parallel/mpihelper.hh>
Public Types | |
enum | { isFake = true } |
typedef No_Comm | MPICommunicator |
The type of the mpi communicator. More... | |
Public Member Functions | |
int | rank () const |
return rank of process, i.e. zero More... | |
int | size () const |
return rank of process, i.e. one More... | |
Static Public Member Functions | |
static DUNE_EXPORT MPICommunicator | getCommunicator () |
get the default communicator More... | |
static MPICommunicator | getLocalCommunicator () |
get a local communicator More... | |
static Communication< MPICommunicator > | getCollectiveCommunication () |
static Communication< MPICommunicator > | getCommunication () |
static DUNE_EXPORT FakeMPIHelper & | instance ([[maybe_unused]] int argc, [[maybe_unused]] char **argv) |
Get the singleton instance of the helper. More... | |
static DUNE_EXPORT FakeMPIHelper & | instance () |
A fake mpi helper.
This helper can be used if no MPI is available or one wants to run sequentially even if MPI is available and used.
The type of the mpi communicator.
anonymous enum |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
get the default communicator
Return a communicator to exchange data with all processes
|
inlinestatic |
get a local communicator
Returns a communicator to communicate 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, i.e. zero
|
inline |
return rank of process, i.e. one