33 void Foam::primitiveMesh::calcCellCells()
const 39 Pout<<
"primitiveMesh::calcCellCells() : calculating cellCells" 56 <<
"cellCells already calculated" 82 forAll(cellCellAddr, celli)
84 cellCellAddr[celli].setSize(ncc[celli]);
90 label ownCelli = own[facei];
91 label neiCelli = nei[facei];
93 cellCellAddr[ownCelli][ncc[ownCelli]++] = neiCelli;
94 cellCellAddr[neiCelli][ncc[neiCelli]++] = ownCelli;
116 DynamicList<label>& storage
121 return cellCells()[celli];
127 const cell& cFaces =
cells()[celli];
131 for (
const label facei : cFaces)
133 if (facei < nInternalFaces())
135 if (own[facei] == celli)
137 storage.push_back(nei[facei]);
141 storage.push_back(own[facei]);
153 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.
List< labelList > labelListList
List of labelList.
#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.
List< label > labelList
A List of labels.
const labelListList & cellCells() const
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
static constexpr const zero Zero
Global zero (0)