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
e0d8ecb9
Commit
e0d8ecb9
authored
Sep 11, 2019
by
Praetorius, Simon
Browse files
Merge branch 'feature/environment_mpihelper' into 'master'
Return stored MPIHelper from Environment See merge request
!98
parents
18a953e1
c481c565
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/Environment.hpp
View file @
e0d8ecb9
...
...
@@ -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
Supports
Markdown
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