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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Timo Koch
dune-common
Commits
1d873aac
Commit
1d873aac
authored
20 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
HAVE_MPI used different.
[[Imported from SVN: r945]]
parent
7d7e031f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grid/albertgrid/agcommunicator.hh
+9
-11
9 additions, 11 deletions
grid/albertgrid/agcommunicator.hh
with
9 additions
and
11 deletions
grid/albertgrid/agcommunicator.hh
+
9
−
11
View file @
1d873aac
...
...
@@ -5,15 +5,13 @@
#ifdef HAVE_CONFIG_H
#include
<config.h>
#if !HAVE_MPI
#undef ALBERT_USES_MPI
#else
#include
<mpi.h>
#endif
#ifndef MPI_ACTIVE
#undef HAVE_MPI
#endif
#ifdef HAVE_MPI
#include
<mpi.h>
#endif
#include
<dune/common/dlist.hh>
...
...
@@ -27,7 +25,7 @@ namespace Dune {
these two procs.
*/
#ifdef
HAVE
_MPI
#ifdef
ALBERT_USES
_MPI
template
<
class
BufferType
>
class
ProcListElement
{
...
...
@@ -182,24 +180,24 @@ namespace Dune {
template
<
class
T
>
class
GathScatt
{
T
f
uck
;
T
f
ake
;
public:
template
<
class
VecType
>
void
gather
(
VecType
&
t
,
int
index
)
{
f
uck
=
t
[
index
];
f
ake
=
t
[
index
];
}
template
<
class
VecType
>
void
scatter
(
VecType
&
t
,
int
index
)
{
t
[
index
]
=
f
uck
;
t
[
index
]
=
f
ake
;
}
};
#ifdef
HAVE
_MPI
#ifdef
ALBERT_USES
_MPI
template
<
class
GridType
,
class
IndexSetType
>
class
AlbertGridCommunicator
{
...
...
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