Commit c481c565 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Return stored MPIHelper from Environment

parent 7e46647e
......@@ -44,6 +44,11 @@ namespace AMDiS
return mpiHelper_->size();
}
Dune::MPIHelper& mpiHelper()
{
return *mpiHelper_;
}
private:
Dune::MPIHelper* mpiHelper_ = nullptr;
};
......@@ -71,6 +76,12 @@ namespace AMDiS
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)
static typename Dune::MPIHelper::MPICommunicator comm()
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment