33 void Foam::primitiveMesh::calcPointPoints()
const 37 Pout<<
"primitiveMesh::calcPointPoints() : " 38 <<
"calculating pointPoints" 55 <<
"pointPoints already calculated" 68 pp[pointi].setSize(pe[pointi].size());
72 if (
e[pe[pointi][ppi]].start() == pointi)
74 pp[pointi][ppi] =
e[pe[pointi][ppi]].end();
76 else if (
e[pe[pointi][ppi]].
end() == pointi)
78 pp[pointi][ppi] =
e[pe[pointi][ppi]].start();
83 <<
"something wrong with edges" 108 DynamicList<label>& storage
111 if (hasPointPoints())
113 return pointPoints()[pointi];
117 const edgeList& edges = this->edges();
118 const labelList& pEdges = pointEdges()[pointi];
122 if (storage.capacity() < pEdges.size())
124 storage.setCapacity(pEdges.size());
127 for (
const label edgei : pEdges)
129 storage.push_back(edges[edgei].otherVertex(pointi));
142 return pointPoints(pointi, labels_);
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< edge > edgeList
List of edge.
const labelListList & pointEdges() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< labelList > labelListList
List of labelList.
#define forAll(list, i)
Loop across all elements in list.
const dimensionedScalar e
Elementary charge.
void clear()
Clear the list, i.e. set size to zero.
errorManip< error > abort(error &err)
int debug
Static debugging option.
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
const labelListList & pointPoints() const
List< label > labelList
A List of labels.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())