mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
sorted addressing
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user