Go to the documentation of this file.
32 void Foam::primitiveMesh::calcCells
40 label nCells = inNCells;
48 nCells =
max(nCells, own[facei]);
71 cellFaceAddr.
setSize(ncf.size());
76 forAll(cellFaceAddr, celli)
78 cellFaceAddr[celli].
setSize(ncf[celli]);
84 label celli = own[facei];
86 cellFaceAddr[celli][ncf[celli]++] = facei;
91 label celli = nei[facei];
95 cellFaceAddr[celli][ncf[celli]++] = facei;
101 void Foam::primitiveMesh::calcCells()
const
107 Pout<<
"primitiveMesh::calcCells() : calculating cells"
116 <<
"cells already calculated"
int debug
Static debugging option.
static constexpr const zero Zero
Global zero (0)
virtual const labelList & faceOwner() const =0
Face face-owner addressing.
const cellList & cells() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
An Ostream wrapper for parallel output to std::cout.
virtual const labelList & faceNeighbour() const =0
Face face-neighbour addressing.
#define forAll(list, i)
Loop across all elements in list.
label nCells() const
Number of mesh cells.
List< cell > cellList
A List of cells.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void setSize(const label newSize)
Alias for resize(const label)