Dune Core Modules (2.6.0)
Dune::FakeMPIHelper Class Reference
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. | |
Public Member Functions | |
int | rank () const |
return rank of process, i.e. zero | |
int | size () const |
return rank of process, i.e. one | |
Static Public Member Functions | |
static DUNE_EXPORT MPICommunicator | getCommunicator () |
get the default communicator More... | |
static MPICommunicator | getLocalCommunicator () |
get a local communicator More... | |
static DUNE_EXPORT FakeMPIHelper & | instance (int argc, char **argv) |
Get the singleton instance of the helper. More... | |
Detailed Description
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.
Member Enumeration Documentation
◆ anonymous enum
anonymous enum |
Member Function Documentation
◆ getCommunicator()
|
inlinestatic |
get the default communicator
Return a communicator to exchange data with all processes
- Returns
- a fake communicator
Referenced by getLocalCommunicator().
◆ getLocalCommunicator()
|
inlinestatic |
get a local communicator
Returns a communicator to communicate with the local process only
- Returns
- a fake communicator
References getCommunicator().
◆ instance()
|
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:
int main(int argc, char** argv){
MPIHelper::instance(argc, argv);
// program code comes here
...
}
static DUNE_EXPORT MPIHelper & instance(int &argc, char **&argv)
Get the singleton instance of the helper.
Definition: mpihelper.hh:222
- Parameters
-
argc The number of arguments provided to main. argv The arguments provided to main.
The documentation for this class was generated from the following file:
- dune/common/parallel/mpihelper.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 13, 23:29, 2024)