Skip to content
Snippets Groups Projects
Commit e0d8ecb9 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'feature/environment_mpihelper' into 'master'

Return stored MPIHelper from Environment

See merge request !98
parents 18a953e1 c481c565
No related branches found
No related tags found
1 merge request!98Return stored MPIHelper from Environment
...@@ -44,6 +44,11 @@ namespace AMDiS ...@@ -44,6 +44,11 @@ namespace AMDiS
return mpiHelper_->size(); return mpiHelper_->size();
} }
Dune::MPIHelper& mpiHelper()
{
return *mpiHelper_;
}
private: private:
Dune::MPIHelper* mpiHelper_ = nullptr; Dune::MPIHelper* mpiHelper_ = nullptr;
}; };
...@@ -71,6 +76,12 @@ namespace AMDiS ...@@ -71,6 +76,12 @@ namespace AMDiS
return Mpi::instance().size(); return Mpi::instance().size();
} }
/// Return a reference to the stored \ref MPIHelper
static Dune::MPIHelper& mpiHelper()
{
return Mpi::instance().mpiHelper();
}
/// Return the MPI_Comm object (or a fake communicator) /// Return the MPI_Comm object (or a fake communicator)
static typename Dune::MPIHelper::MPICommunicator comm() static typename Dune::MPIHelper::MPICommunicator comm()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment