41 zones[zoneI].start() = count;
42 count += zones[zoneI].
size();
45 if (count < this->size())
49 "MeshedSurface::checkZones()\n" 51 <<
"more faces " << this->size() <<
" than zones " << count
52 <<
" ... extending final zone" 55 zones.
last().size() += count - this->size();
57 else if (count > this->size())
61 "MeshedSurface::checkZones()\n" 63 <<
"more zones " << count <<
" than faces " << this->size()
84 this->storedFaces().transfer(oldFaces);
99 newFaces[faceI].transfer(oldFaces[faceMap[faceI]]);
101 this->storedFaces().transfer(newFaces);
122 if (srfZones[zoneI].size() || !cullEmpty)
124 zones[nZone] =
surfZone(srfZones[zoneI], nZone);
147 if (sizes[zoneI] || !cullEmpty)
156 start += sizes[zoneI];
178 if (sizes[zoneI] || !cullEmpty)
187 start += sizes[zoneI];
198 this->storedZones().clear();
virtual void removeZones()
Remove surface zones.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
word name(const complex &)
Return a string representation of a complex.
T & last()
Return the last element of the list.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
void sortFacesAndStore(const Xfer< List< Face > > &unsortedFaces, const Xfer< List< label > > &zoneIds, const bool sorted)
Sort faces by zones and store sorted faces.
A simple container for copying or transferring objects of type <T>.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void clear()
Clear the list, i.e. set size to zero.
void setSize(const label)
Reset size of List.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
label size() const
Return the number of elements in the UList.
A surface zone on a MeshedSurface.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
virtual void addZones(const UList< surfZone > &, const bool cullEmpty=false)
Add surface zones.
void checkZones()
Basic sanity check on zones.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...