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
e5f6350c
Commit
e5f6350c
authored
14 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Check all indices with this global index.
[[Imported from SVN: r1273]]
parent
82084767
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
dune/istl/indicessyncer.hh
+19
-6
19 additions, 6 deletions
dune/istl/indicessyncer.hh
with
19 additions
and
6 deletions
dune/istl/indicessyncer.hh
+
19
−
6
View file @
e5f6350c
...
...
@@ -1013,17 +1013,30 @@ namespace Dune
//Only add the index if it is unknown.
// Do we know that global index already?
IndexIterator
pos
=
std
::
lower_bound
(
index
,
iEnd
,
IndexPair
(
global
));
index
=
pos
;
if
(
pos
==
iEnd
||
pos
->
global
()
!=
global
||
sourceAttribute
!=
attribute
)
{
// No, we do not. Add it!
if
(
pos
==
iEnd
)
continue
;
if
(
pos
->
global
()
!=
global
)
{
indexSet_
.
add
(
global
,
ParallelLocalIndex
<
Attribute
>
(
numberer
(
global
),
Attribute
(
attribute
),
true
));
index
=
pos
;
}
else
{
// Attributes have to match!
assert
(
attribute
==
pos
->
local
().
attribute
());
continue
;
}
// because of above the global indices match. Add only if the attribute is different
bool
indexIsThere
=
false
;
for
(;
pos
->
global
()
==
global
;
++
pos
)
if
(
sourceAttribute
==
attribute
)
{
indexIsThere
=
true
;
break
;
}
if
(
!
indexIsThere
)
indexSet_
.
add
(
global
,
ParallelLocalIndex
<
Attribute
>
(
numberer
(
global
),
Attribute
(
attribute
),
true
));
}
else
{
insertIntoRemoteIndexList
(
process
,
global
,
attribute
);
}
...
...
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