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

Return stored MPIHelper from Environment

parent 7e46647e
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.
Please register or to comment