Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
c481c565
Commit
c481c565
authored
Sep 10, 2019
by
Praetorius, Simon
Browse files
Return stored MPIHelper from Environment
parent
7e46647e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/Environment.hpp
View file @
c481c565
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment