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
Tobias Leibner
dune-common
Commits
296b270e
Commit
296b270e
authored
18 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
BugFix. There were some <T> template qualifiers missing.
[[Imported from SVN: r4779]]
parent
116c25b1
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
common/mpicollectivecommunication.hh
+4
-6
4 additions, 6 deletions
common/mpicollectivecommunication.hh
with
4 additions
and
6 deletions
common/mpicollectivecommunication.hh
+
4
−
6
View file @
296b270e
...
...
@@ -245,7 +245,7 @@ namespace Dune
T
min
(
T
&
in
)
const
// MPI does not know about const :-(
{
T
out
;
allreduce
<
Min
>
(
&
in
,
&
out
,
1
);
allreduce
<
Min
<
T
>
>
(
&
in
,
&
out
,
1
);
return
out
;
}
...
...
@@ -253,7 +253,7 @@ namespace Dune
template
<
typename
T
>
int
min
(
T
*
inout
,
int
len
)
const
{
return
allreduce
<
Min
>
(
inout
,
len
);
return
allreduce
<
Min
<
T
>
>
(
inout
,
len
);
}
...
...
@@ -262,7 +262,7 @@ namespace Dune
T
max
(
T
&
in
)
const
// MPI does not know about const :-(
{
T
out
;
allreduce
<
Max
>
(
&
in
,
&
out
,
1
);
allreduce
<
Max
<
T
>
>
(
&
in
,
&
out
,
1
);
return
out
;
}
...
...
@@ -270,7 +270,7 @@ namespace Dune
template
<
typename
T
>
int
max
(
T
*
inout
,
int
len
)
const
{
return
allreduce
<
Max
>
(
inout
,
len
);
return
allreduce
<
Max
<
T
>
>
(
inout
,
len
);
}
//! @copydoc CollectiveCommunication::barrier()
...
...
@@ -286,7 +286,6 @@ namespace Dune
return
MPI_Bcast
(
inout
,
len
,
Generic_MPI_Datatype
<
T
>::
get
(),
root
,
communicator
);
}
//! @copydoc CollectiveCommunication::gather()
template
<
typename
T
>
int
gather
(
T
*
in
,
T
*
out
,
int
len
,
int
root
)
const
// note out must have space for P*len elements
...
...
@@ -296,7 +295,6 @@ namespace Dune
root
,
communicator
);
}
operator
MPI_Comm
()
const
{
return
communicator
;
...
...
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