Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
amdis
amdis-core
Merge requests
!98
Return stored MPIHelper from Environment
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Return stored MPIHelper from Environment
feature/environment_mpihelper
into
master
Overview
0
Commits
1
Changes
1
Merged
Praetorius, Simon
requested to merge
feature/environment_mpihelper
into
master
5 years ago
Overview
0
Commits
1
Changes
1
Expand
1
0
Merge request reports
Viewing commit
c481c565
Show latest version
1 file
+
11
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
c481c565
Return stored MPIHelper from Environment
· c481c565
Praetorius, Simon
authored
5 years ago
src/amdis/Environment.hpp
+
11
−
0
Options
@@ -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
()
{
Loading