|
dune-common 2.10
|
Helpers for dealing with MPI. More...
#include <cassert>#include <mutex>#include <mpi.h>#include <dune/common/exceptions.hh>#include <dune/common/visibility.hh>#include <dune/common/parallel/communication.hh>#include <dune/common/parallel/mpicommunication.hh>#include <dune/common/stdstreams.hh>Go to the source code of this file.
Classes | |
| class | Dune::FakeMPIHelper |
| A fake mpi helper. More... | |
| class | Dune::MPIHelper |
| A real mpi helper. More... | |
Namespaces | |
| namespace | Dune |
| Dune namespace. | |
Helpers for dealing with MPI.
Basically there are two helpers available:
Example of who to use these classes:
A program that is parallel if compiled with MPI and sequential otherwise:
If one wants to have sequential program even if the code is compiled with mpi then one simply has to exchange the typedef with
.
For checking whether we really use MPI or just fake please use MPIHelper::isFake (this is also possible at compile time!)