32 void Foam::primitiveMesh::calcCellEdges()
const
39 Pout<<
"primitiveMesh::calcCellEdges() : "
40 <<
"calculating cellEdges"
57 <<
"cellEdges already calculated"
63 List<DynamicList<label, edgesPerCell_>> ce(
nCells());
74 DynamicList<label, edgesPerCell_>& curCellEdges = ce[own[facei]];
80 if (
findIndex(curCellEdges, curEdges[edgeI]) == -1)
83 curCellEdges.append(curEdges[edgeI]);
90 DynamicList<label, edgesPerCell_>& curCellEdges = ce[nei[facei]];
96 if (
findIndex(curCellEdges, curEdges[edgeI]) == -1)
99 curCellEdges.append(curEdges[edgeI]);
110 cellEdgeAddr[celli].transfer(ce[celli]);
Various functions to operate on Lists.
#define forAll(list, i)
Loop across all elements in list.
const labelListList & cellEdges() const
virtual const labelList & faceOwner() const =0
Face face-owner addressing.
virtual const labelList & faceNeighbour() const =0
Face face-neighbour addressing.
const labelListList & faceEdges() const
#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.
errorManip< error > abort(error &err)
List< labelList > labelListList
A List of labelList.
prefixOSstream Pout(cout, "Pout")
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.