Skip to content
Snippets Groups Projects
Commit c178021e authored by mattijs's avatar mattijs
Browse files

sorted addressing

parent 821635d1
Branches
Tags
No related merge requests found
......@@ -50,6 +50,10 @@ addToRunTimeSelectionTable(topoSet, cellZoneSet, set);
void cellZoneSet::updateSet()
{
labelList order;
sortedOrder(addressing_, order);
inplaceReorder(order, addressing_);
cellSet::clearStorage();
cellSet::resize(2*addressing_.size());
forAll(addressing_, i)
......
......@@ -58,9 +58,6 @@ class cellZoneSet
labelList addressing_;
// Private Member Functions
public:
//- Runtime type information
......@@ -115,7 +112,7 @@ public:
return addressing_;
}
//- Make cellSet part consistent with addressing
//- Sort addressing and make cellSet part consistent with addressing
void updateSet();
//- Invert contents. (insert all members 0..maxLen-1 which were not in
......
......@@ -50,6 +50,11 @@ addToRunTimeSelectionTable(topoSet, faceZoneSet, set);
void faceZoneSet::updateSet()
{
labelList order;
sortedOrder(addressing_, order);
inplaceReorder(order, addressing_);
inplaceReorder(order, flipMap_);
faceSet::clearStorage();
faceSet::resize(2*addressing_.size());
forAll(addressing_, i)
......@@ -145,7 +150,7 @@ void faceZoneSet::invert(const label maxLen)
if (!found(faceI))
{
addressing_[n] = faceI;
flipMap_[n] = true; //? or false?
flipMap_[n] = false; //? or true?
n++;
}
}
......
......@@ -129,7 +129,7 @@ public:
}
//- Make faceSet part consistent with addressing
//- Sort addressing and make faceSet part consistent with addressing
void updateSet();
//- Invert contents. (insert all members 0..maxLen-1 which were not in
......
......@@ -50,6 +50,10 @@ addToRunTimeSelectionTable(topoSet, pointZoneSet, set);
void pointZoneSet::updateSet()
{
labelList order;
sortedOrder(addressing_, order);
inplaceReorder(order, addressing_);
pointSet::clearStorage();
pointSet::resize(2*addressing_.size());
forAll(addressing_, i)
......
......@@ -115,7 +115,7 @@ public:
return addressing_;
}
//- Make pointSet part consistent with addressing
//- Sort addressing and make pointSet part consistent with addressing
void updateSet();
//- Invert contents. (insert all members 0..maxLen-1 which were not in
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment