Go to the documentation of this file.
37 template<
class>
class FaceList,
51 Pout<<
"PrimitivePatch<Face, FaceList, PointField, PointType>::"
52 <<
"calcLocalPointOrder() : "
53 <<
"calculating local point order"
57 if (localPointOrderPtr_)
63 "PrimitivePatch<Face, FaceList, PointField, PointType>::"
64 "calcLocalPointOrder()"
65 ) <<
"local point order already calculated"
75 localPointOrderPtr_ =
new labelList(meshPoints().size(), -1);
77 labelList& pointOrder = *localPointOrderPtr_;
85 if (!visitedFace[faceI])
95 if (!visitedFace[curFace])
97 visitedFace[curFace] =
true;
102 forAll (curPoints, pointI)
104 if (!visitedPoint[curPoints[pointI]])
106 visitedPoint[curPoints[pointI]] =
true;
108 pointOrder[
nPoints] = curPoints[pointI];
119 if (!visitedFace[nbrs[nbrI]])
121 faceOrder.
append(nbrs[nbrI]);
125 }
while (faceOrder.size());
131 Pout<<
"PrimitivePatch<Face, FaceList, PointField, PointType>::"
132 <<
"calcLocalPointOrder() "
133 <<
"finished calculating local point order"
void append(const T &a)
Add at tail of list.
List< label > labelList
A List of labels.
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void calcLocalPointOrder() const
Calculate local point order.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)
const FieldField< fvPatchField, Type > & ff(const FieldField< fvPatchField, Type > &bf)
prefixOSstream Pout(cout, "Pout")
T & first()
Return the first entry added.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
T removeHead()
Remove and return head.