33void 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;
121 return cellCells()[celli];
133 label facei = cFaces[i];
135 if (facei < nInternalFaces())
137 if (own[facei] == celli)
139 storage.
append(nei[facei]);
143 storage.
append(own[facei]);
155 return cellCells(celli, labels_);
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void clear() noexcept
Clear the addressed list, i.e. set the size to zero.
void append(const T &val)
Copy append an element to the end of this list.
A cell is defined as a list of faces with extra functionality.
virtual const labelList & faceOwner() const =0
Face face-owner addressing.
virtual const labelList & faceNeighbour() const =0
Face face-neighbour addressing.
const labelListList & cellCells() const
label nCells() const noexcept
Number of mesh cells.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< label > labelList
A List of labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< labelList > labelListList
A List of labelList.
errorManip< error > abort(error &err)
static constexpr const zero Zero
Global zero (0)
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
#define forAll(list, i)
Loop across all elements in list.