Skip to content
Snippets Groups Projects
Commit bc80e333 authored by Rebecca Neumann's avatar Rebecca Neumann
Browse files

make indicessyncer compatible with ALU

[[Imported from SVN: r6441]]
parent 0882e092
No related branches found
No related tags found
No related merge requests found
......@@ -523,13 +523,21 @@ namespace Dune
// Search for the index in the set.
assert(gIndex != global->second.end());
while(*index < *gIndex)
while(!(index->global() == gIndex->first
&& index->local().attribute() == gIndex->second)) {
++index;
// this is only needed for ALU, where there may exist
// more entries with the same global index in the remote index set
// than in the index set
if (index->global() > gIndex->first) {
index=indexSet.begin();
}
}
assert(index != indexSet.end() && *index == *gIndex);
rIndex->localIndex_ = &(*index);
++index;
++rIndex;
++gIndex;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment