Go to the documentation of this file.
41 zones[zoneI].start() = count;
42 count += zones[zoneI].
size();
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);
130 const UList<word>& names,
138 zones.setSize(sizes.size());
141 if (sizes[zoneI] || !cullEmpty)
143 zones[nZone] = surfZone
150 start += sizes[zoneI];
154 zones.setSize(nZone);
169 zones.setSize(sizes.size());
172 if (sizes[zoneI] || !cullEmpty)
174 zones[nZone] = surfZone
181 start += sizes[zoneI];
185 zones.setSize(nZone);
192 this->storedZones().clear();
void checkZones()
Basic sanity check on zones.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
#define forAll(list, i)
Loop across all elements in list.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple container for copying or transferring objects of type <T>.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void removeZones()
Remove surface zones.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void addZones(const UList< surfZone > &, const bool cullEmpty=false)
Add surface zones.
void setSize(const label)
Reset size of List.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A surface zone on a MeshedSurface.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void clear()
Clear the list, i.e. set size to zero.
List< surfZone > surfZoneList
void size(const label)
Override size to be inconsistent with allocated storage.
UList< label > labelUList
#define WarningInFunction
Report a warning using Foam::Warning.
void sortFacesAndStore(const Xfer< List< Face > > &unsortedFaces, const Xfer< List< label > > &zoneIds, const bool sorted)
Sort faces by zones and store sorted faces.
word name(const complex &)
Return a string representation of a complex.