Go to the documentation of this file.
32 void Foam::primitiveMesh::calcPointPoints()
const
36 Pout<<
"primitiveMesh::calcPointPoints() : "
37 <<
"calculating pointPoints"
54 <<
"pointPoints already calculated"
67 pp[pointi].setSize(pe[pointi].size());
71 if (
e[pe[pointi][ppi]].start() == pointi)
73 pp[pointi][ppi] =
e[pe[pointi][ppi]].end();
75 else if (
e[pe[pointi][ppi]].
end() == pointi)
77 pp[pointi][ppi] =
e[pe[pointi][ppi]].start();
82 <<
"something wrong with edges"
110 if (hasPointPoints())
112 return pointPoints()[pointi];
116 const edgeList& edges = this->edges();
117 const labelList& pEdges = pointEdges()[pointi];
121 if (pEdges.size() > storage.
capacity())
128 storage.
append(edges[pEdges[i]].otherVertex(pointi));
141 return pointPoints(pointi, labels_);
int debug
Static debugging option.
List< edge > edgeList
A List of edges.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label capacity() const noexcept
Size of the underlying storage.
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
const labelListList & pointEdges() const
void clear() noexcept
Clear the addressed list, i.e. set the size to zero.
void setCapacity(const label len)
Alter the size of the underlying storage.
#define forAll(list, i)
Loop across all elements in list.
DynamicList< T, SizeMin > & append(const T &val)
Append an element to the end of this list.
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
errorManip< error > abort(error &err)
List< labelList > labelListList
A List of labelList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionedScalar e
Elementary charge.
const labelListList & pointPoints() const