37 void Foam::primitiveMesh::calcCellPoints()
const 41 Pout<<
"primitiveMesh::cellCellPoints() : " 42 <<
"calculating cellPoints" <<
endl;
58 <<
"cellPoints already calculated" 72 auto& cellPointAddr = *cpPtr_;
81 DynamicList<label> currPoints(256);
83 const label loopLen =
nCells();
85 for (label celli = 0; celli < loopLen; ++celli)
88 usedPoints.unset(currPoints);
91 for (
const label facei : cellLst[celli])
93 for (
const label pointi : faceLst[facei])
96 if (usedPoints.set(pointi))
98 currPoints.push_back(pointi);
103 cellPointAddr[celli] = currPoints;
126 DynamicList<label>& storage
131 return cellPoints()[celli];
139 for (
const label facei : cFaces)
141 set.insert(fcs[facei]);
145 if (storage.capacity() <
set.size())
147 storage.setCapacity(
set.size());
150 for (
const label pointi :
set)
152 storage.push_back(pointi);
161 return cellPoints(celli, labelSet_, labels_);
List< cell > cellList
List of cell.
label nPoints() const noexcept
Number of mesh points.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const cellList & cells() const
List< labelList > labelListList
List of labelList.
Various functions to operate on Lists.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
List< face > faceList
List of faces.
void clear()
Clear the list, i.e. set size to zero.
errorManip< error > abort(error &err)
const labelListList & pointCells() const
int debug
Static debugging option.
bool hasPointCells() const noexcept
label nCells() const noexcept
Number of mesh cells.
virtual const faceList & faces() const =0
Return faces.
List< label > labelList
A List of labels.
void invertManyToMany(const label len, const UList< InputIntListType > &input, List< OutputIntListType > &output)
Invert many-to-many.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
const labelListList & cellPoints() const