Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Core Modules
dune-common
Commits
59c37ee9
Commit
59c37ee9
authored
3 years ago
by
Simon Praetorius
Browse files
Options
Downloads
Plain Diff
Merge branch 'mpifuture_fix_getmpidata' into 'master'
fix MPIFuture::get_mpidata See merge request
!894
parents
d710186d
7d4ca706
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!894
fix MPIFuture::get_mpidata
Pipeline
#37180
passed
3 years ago
Stage: test
Stage: downstream
Pipeline: Dune Nightly Test
#37182
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/common/parallel/mpifuture.hh
+2
-2
2 additions, 2 deletions
dune/common/parallel/mpifuture.hh
dune/common/parallel/test/mpifuturetest.cc
+12
-0
12 additions, 0 deletions
dune/common/parallel/test/mpifuturetest.cc
with
14 additions
and
2 deletions
dune/common/parallel/mpifuture.hh
+
2
−
2
View file @
59c37ee9
...
...
@@ -161,11 +161,11 @@ namespace Dune{
}
auto
get_mpidata
(){
return
getMPIData
<
R
>
(
*
data_
);
return
getMPIData
(
*
data_
);
}
auto
get_send_mpidata
(){
return
getMPIData
<
S
>
(
*
send_data_
);
return
getMPIData
(
*
send_data_
);
}
};
...
...
This diff is collapsed.
Click to expand it.
dune/common/parallel/test/mpifuturetest.cc
+
12
−
0
View file @
59c37ee9
...
...
@@ -5,6 +5,18 @@
#include
<dune/common/parallel/mpihelper.hh>
#include
<dune/common/dynvector.hh>
namespace
Dune
{
template
<
class
Dummy
>
struct
MPIData
<
const
int
&
,
Dummy
>
{
static_assert
(
Dune
::
AlwaysFalse
<
Dummy
>::
value
,
"MPIData of reference type should not be used!"
);
// MPIData of reference type should not be used!
// This struct should never be used it just
// exists to generate a compiler error
};
}
int
main
(
int
argc
,
char
**
argv
){
auto
&
mpihelper
=
Dune
::
MPIHelper
::
instance
(
argc
,
argv
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment