Go to the documentation of this file.
35 void Foam::primitiveMesh::calcCellEdges()
const
42 Pout<<
"primitiveMesh::calcCellEdges() : "
43 <<
"calculating cellEdges"
60 <<
"cellEdges already calculated"
66 List<DynamicList<label>> ce(
nCells());
77 DynamicList<label>& curCellEdges = ce[own[facei]];
81 for (
const label edgei : curEdges)
90 DynamicList<label>& curCellEdges = ce[nei[facei]];
94 for (
const label edgei : curEdges)
107 cellEdgeAddr[celli].transfer(ce[celli]);
int debug
Static debugging option.
List< label > labelList
A List of labels.
virtual const labelList & faceOwner() const =0
Face face-owner addressing.
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
virtual const labelList & faceNeighbour() const =0
Face face-neighbour addressing.
#define forAll(list, i)
Loop across all elements in list.
label nCells() const noexcept
Number of mesh cells.
const labelListList & cellEdges() const
const labelListList & faceEdges() const
label appendUniq(const T &val)
Append an element if not already in the list.
errorManip< error > abort(error &err)
List< labelList > labelListList
A List of labelList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Various functions to operate on Lists.