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]);
List< labelList > labelListList
A List of labelList.
#define forAll(list, i)
Loop across all elements in list.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Various functions to operate on Lists.
virtual const labelList & faceNeighbour() const =0
Face face-neighbour addressing.
List< label > labelList
A List of labels.
errorManip< error > abort(error &err)
prefixOSstream Pout(cout,"Pout")
const labelListList & cellEdges() const
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurence of given element and return index,.
virtual const labelList & faceOwner() const =0
Face face-owner addresing.
const labelListList & faceEdges() const