35void 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)
84 if (!curCellEdges.contains(edgei))
86 curCellEdges.push_back(edgei);
93 DynamicList<label>& curCellEdges = ce[nei[facei]];
97 for (
const label edgei : curEdges)
100 if (!curCellEdges.contains(edgei))
102 curCellEdges.push_back(edgei);
107 cePtr_ = std::make_unique<labelListList>(ce.size());
108 auto& cellEdgeAddr = *cePtr_;
113 cellEdgeAddr[celli].transfer(ce[celli]);
Various functions to operate on Lists.
virtual const labelList & faceOwner() const =0
Face face-owner addressing.
const labelListList & cellEdges() const
virtual const labelList & faceNeighbour() const =0
Face face-neighbour addressing.
label nCells() const noexcept
Number of mesh cells.
const labelListList & faceEdges() const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
#define forAll(list, i)
Loop across all elements in list.