41 zones[zoneI].start() =
count;
45 if (count < this->size())
48 <<
"more faces " << this->size() <<
" than zones " <<
count
49 <<
" ... extending final zone"
52 zones.
last().size() +=
count - this->size();
54 else if (
count > this->size())
57 <<
"more zones " <<
count <<
" than faces " << this->size()
78 this->storedFaces().transfer(oldFaces);
95 this->storedFaces().transfer(newFaces);
116 if (srfZones[zoneI].size() || !cullEmpty)
118 zones[nZone] =
surfZone(srfZones[zoneI], nZone);
141 if (sizes[zoneI] || !cullEmpty)
150 start += sizes[zoneI];
172 if (sizes[zoneI] || !cullEmpty)
181 start += sizes[zoneI];
192 this->storedZones().clear();
#define forAll(list, i)
Loop across all elements in list.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void size(const label)
Override size to be inconsistent with allocated storage.
void clear()
Clear the list, i.e. set size to zero.
void setSize(const label)
Reset size of List.
virtual void addZones(const UList< surfZone > &, const bool cullEmpty=false)
Add surface zones.
void sortFacesAndStore(List< Face > &&unsortedFaces, List< label > &&zoneIds, const bool sorted)
Sort faces by zones and store sorted faces.
virtual void removeZones()
Remove 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...
label size() const
Return the number of elements in the UList.
T & last()
Return the last element of the list.
A surface zone on a MeshedSurface.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define WarningInFunction
Report a warning using Foam::Warning.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
label count(const ListType &l, typename ListType::const_reference x)
Count the number of occurrences of a value in a list.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.