Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
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
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
Core Modules
dune-istl
Commits
52de4dc0
Commit
52de4dc0
authored
15 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
fix variable size communication
[[Imported from SVN: r1046]]
parent
c47082eb
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
istl/communicator.hh
+4
-5
4 additions, 5 deletions
istl/communicator.hh
with
4 additions
and
5 deletions
istl/communicator.hh
+
4
−
5
View file @
52de4dc0
...
...
@@ -1260,7 +1260,7 @@ namespace Dune
{
int
entries
=
0
;
for
(
in
t
i
=
0
;
i
<
info
.
size
();
i
++
)
for
(
size_
t
i
=
0
;
i
<
info
.
size
();
i
++
)
entries
+=
CommPolicy
<
Data
>::
getSize
(
data
,
info
[
i
]);
return
entries
;
...
...
@@ -1282,11 +1282,10 @@ namespace Dune
interfacePair
!=
end
;
++
interfacePair
)
{
int
size
=
forward
?
interfacePair
->
second
.
first
.
size
()
:
interfacePair
->
second
.
second
.
size
();
int
proc
=
interfacePair
->
first
();
for
(
int
i
=
0
;
i
<
size
;
i
++
)
{
int
local
=
forward
?
interfacePair
->
second
->
first
[
i
]
:
interfacePair
->
second
->
second
[
i
];
int
local
=
forward
?
interfacePair
->
second
.
first
[
i
]
:
interfacePair
->
second
.
second
[
i
];
for
(
int
j
=
0
;
j
<
CommPolicy
<
Data
>::
getSize
(
data
,
local
);
j
++
,
index
++
)
{
#ifdef DUNE_ISTL_WITH_CHECKING
...
...
@@ -1342,7 +1341,7 @@ namespace Dune
const
Information
&
info
=
FORWARD
?
infoPair
->
second
.
second
:
infoPair
->
second
.
first
;
for
(
in
t
i
=
0
,
index
=
0
;
i
<
info
.
size
();
i
++
)
{
for
(
size_
t
i
=
0
,
index
=
0
;
i
<
info
.
size
();
i
++
)
{
for
(
int
j
=
0
;
j
<
CommPolicy
<
Data
>::
getSize
(
data
,
info
[
i
]);
j
++
)
GatherScatter
::
scatter
(
data
,
buffer
[
index
++
],
info
[
i
],
j
);
}
...
...
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