33void Foam::primitiveMesh::calcCells
77 forAll(cellFaceAddr, celli)
79 cellFaceAddr[celli].
setSize(ncf[celli]);
85 label celli = own[facei];
87 cellFaceAddr[celli][ncf[celli]++] = facei;
92 label celli = nei[facei];
96 cellFaceAddr[celli][ncf[celli]++] = facei;
102void Foam::primitiveMesh::calcCells()
const
108 Pout<<
"primitiveMesh::calcCells() : calculating cells"
117 <<
"cells already calculated"
123 cfPtr_ = std::make_unique<cellList>(nCells());
124 auto& cellFaceAddr = *cfPtr_;
void setSize(label n)
Alias for resize().
void size(const label n)
Older name for setAddressableSize.
label nCells() const noexcept
Number of mesh cells.
const cellList & cells() const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Namespace for handling debugging switches.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
List< label > labelList
A List of labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< cell > cellList
List of cell.
errorManip< error > abort(error &err)
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
UList< label > labelUList
A UList of labels.
#define forAll(list, i)
Loop across all elements in list.