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
468fd5b4
Commit
468fd5b4
authored
19 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Set the built flag to true after syncing.
[[Imported from SVN: r296]]
parent
ccbb25c3
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/indicessyncer.hh
+11
-0
11 additions, 0 deletions
istl/indicessyncer.hh
with
11 additions
and
0 deletions
istl/indicessyncer.hh
+
11
−
0
View file @
468fd5b4
...
...
@@ -391,6 +391,7 @@ namespace Dune
typedef
typename
T
::
GlobalIndex
GlobalIndex
;
typedef
typename
SLList
<
GlobalIndex
,
A
>::
iterator
GlobalIndexIterator
;
assert
(
globalMap
.
size
()
==
remoteIndices
.
remoteIndices_
.
size
());
// Repair pointers to index set in remote indices.
typename
std
::
map
<
int
,
SLList
<
GlobalIndex
,
A
>
>::
iterator
global
=
globalMap
.
begin
();
RemoteIterator
end
=
remoteIndices
.
remoteIndices_
.
end
();
...
...
@@ -404,8 +405,13 @@ namespace Dune
RemoteIndexIterator
riEnd
=
remote
->
second
.
first
->
end
();
RemoteIndexIterator
rIndex
=
remote
->
second
.
first
->
begin
();
GlobalIndexIterator
gIndex
=
global
->
second
.
begin
();
GlobalIndexIterator
gEnd
=
global
->
second
.
end
();
IndexIterator
index
=
indexSet
.
begin
();
int
gsize
=
global
->
second
.
size
();
int
rsize
=
remote
->
second
.
first
->
size
();
assert
(
rIndex
==
riEnd
||
gIndex
!=
global
->
second
.
end
());
while
(
rIndex
!=
riEnd
)
{
// Search for the index in the set.
assert
(
gIndex
!=
global
->
second
.
end
());
...
...
@@ -718,6 +724,8 @@ namespace Dune
// update the sequence number
remoteIndices_
.
sourceSeqNo_
=
remoteIndices_
.
destSeqNo_
=
indexSet_
.
seqNo
();
remoteIndices_
.
built_
=
true
;
}
...
...
@@ -815,10 +823,13 @@ namespace Dune
inline
void
IndicesSyncer
<
T
>::
insertIntoRemoteIndexList
(
int
process
,
const
GlobalIndex
&
global
,
char
attribute
)
{
std
::
cout
<<
"Inserting from "
<<
process
<<
" "
<<
global
<<
" "
<<
attribute
<<
std
::
endl
;
// There might be cases where there no remote indices for that process yet
typename
IteratorsMap
::
iterator
found
=
iteratorsMap_
.
find
(
process
);
if
(
found
==
iteratorsMap_
.
end
()
)
{
std
::
cout
<<
"Discovered new neighbour "
<<
process
<<
std
::
endl
;
RemoteIndexList
*
rlist
=
new
RemoteIndexList
();
remoteIndices_
.
remoteIndices_
.
insert
(
std
::
make_pair
(
process
,
std
::
make_pair
(
rlist
,
rlist
)));
Iterators
iterators
=
Iterators
(
*
rlist
,
globalMap_
[
process
],
oldMap_
[
process
]);
...
...
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