33 void 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;
102 void 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 size(const label n)
Older name for setAddressableSize.
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.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const cellList & cells() const
#define forAll(list, i)
Loop across all elements in list.
void setSize(const label n)
Alias for resize()
errorManip< error > abort(error &err)
int debug
Static debugging option.
label nCells() const noexcept
Number of mesh cells.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
static constexpr const zero Zero
Global zero (0)