Go to the documentation of this file.
34 Pout<<
"primitiveMesh::calcPointPoints() : "
35 <<
"calculating pointPoints"
52 <<
"pointPoints already calculated"
65 pp[pointI].setSize(pe[pointI].size());
69 if (
e[pe[pointI][ppi]].start() == pointI)
71 pp[pointI][ppi] =
e[pe[pointI][ppi]].end();
73 else if (
e[pe[pointI][ppi]].end() == pointI)
75 pp[pointI][ppi] =
e[pe[pointI][ppi]].start();
80 <<
"something wrong with edges"
108 if (hasPointPoints())
110 return pointPoints()[pointI];
114 const edgeList& edges = this->edges();
115 const labelList& pEdges = pointEdges()[pointI];
126 storage.
append(edges[pEdges[i]].otherVertex(pointI));
139 return pointPoints(pointI, labels_);
label capacity() const
Size of the underlying storage.
labelListList * ppPtr_
Point-points.
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
const labelListList & pointEdges() const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void clear()
Clear the addressed list, i.e. set the size to zero.
void setCapacity(const label)
Alter the size of the underlying storage.
errorManip< error > abort(error &err)
const double e
Elementary charge.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
List< labelList > labelListList
A List of labelList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
prefixOSstream Pout(cout, "Pout")
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
void calcPointPoints() const
Calculate point-point addressing.
const labelListList & pointPoints() const