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
d51dc906
Commit
d51dc906
authored
15 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
only add MPI_Comm specialization if MPI is used
[[Imported from SVN: r5950]]
parent
2db58cfd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/mpiguard.hh
+3
-0
3 additions, 0 deletions
dune/common/mpiguard.hh
with
3 additions
and
0 deletions
dune/common/mpiguard.hh
+
3
−
0
View file @
d51dc906
...
...
@@ -49,6 +49,8 @@ namespace Dune
virtual
int
size
()
{
return
comm
.
size
();
};
virtual
int
sum
(
int
i
)
{
return
comm
.
sum
(
i
);
}
};
#if HAVE_MPI
// specialization for MPI_Comm
template
<
>
struct
GenericGuardCommunicator
<
MPI_Comm
>
...
...
@@ -58,6 +60,7 @@ namespace Dune
GenericGuardCommunicator
<
CollectiveCommunication
<
MPI_Comm
>
>
(
CollectiveCommunication
<
MPI_Comm
>
(
c
))
{}
};
#endif
template
<
class
C
>
GuardCommunicator
*
GuardCommunicator
::
create
(
const
C
&
comm
)
...
...
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