33 void Foam::primitiveMesh::calcCellCells()
const 39 Pout<<
"primitiveMesh::calcCellCells() : calculating cellCells" 56 <<
"cellCells already calculated" 75 ccPtr_ = std::make_unique<labelListList>(ncc.size());
76 auto& cellCellAddr = *ccPtr_;
81 forAll(cellCellAddr, celli)
83 cellCellAddr[celli].resize(ncc[celli]);
89 label ownCelli = own[facei];
90 label neiCelli = nei[facei];
92 cellCellAddr[ownCelli][ncc[ownCelli]++] = neiCelli;
93 cellCellAddr[neiCelli][ncc[neiCelli]++] = ownCelli;
115 DynamicList<label>& storage
120 return cellCells()[celli];
126 const cell& cFaces =
cells()[celli];
130 for (
const label facei : cFaces)
132 if (facei < nInternalFaces())
134 if (own[facei] == celli)
136 storage.push_back(nei[facei]);
140 storage.push_back(own[facei]);
152 return cellCells(celli, labels_);
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.
#define forAll(list, i)
Loop across all elements in list.
virtual const labelList & faceNeighbour() const =0
Face face-neighbour addressing.
void clear()
Clear the list, i.e. set size to zero.
errorManip< error > abort(error &err)
int debug
Static debugging option.
label nCells() const noexcept
Number of mesh cells.
virtual const labelList & faceOwner() const =0
Face face-owner addressing.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
List< label > labelList
A List of labels.
const labelListList & cellCells() const
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.