Go to the documentation of this file.
39 template<
class>
class FaceList,
48 const BoolListType& borderEdge,
50 const label currentZone,
63 dynamicLabelList newChangedFaces(2*changedFaces.
size());
67 label faceI = changedFaces[i];
69 const labelList& fEdges = faceEdges[faceI];
73 label edgeI = fEdges[fEdgeI];
75 if (!borderEdge[edgeI])
77 const labelList& eFaceLst = edgeFaces[edgeI];
81 label nbrFaceI = eFaceLst[j];
86 newChangedFaces.
append(nbrFaceI);
88 else if (
faceZone[nbrFaceI] != currentZone)
92 "PatchTools::markZone"
93 "(const boolList&, const label, const label, labelList&)"
96 <<
" at face " << nbrFaceI
97 <<
" connects to zone " << currentZone
98 <<
" at face " << faceI
106 if (newChangedFaces.empty())
112 changedFaces.
transfer(newChangedFaces);
123 template<
class>
class FaceList,
132 const BoolListType& borderEdge,
148 markZone(
p, borderEdge, startFaceI, zoneI,
faceZone);
166 template<
class>
class FaceList,
175 const BoolListType& includeFaces,
192 if (includeFaces[oldFaceI])
198 const Face&
f = localFaces[oldFaceI];
202 const label ptLabel =
f[fp];
203 if (!pointHad[ptLabel])
205 pointHad[ptLabel] =
true;
206 pointMap[pointI++] = ptLabel;
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
#define forAll(list, i)
Loop across all elements in list.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A subset of mesh faces organised as a primitive patch.
void append(const T &)
Append an element at the end of the list.
errorManip< error > abort(error &err)
void setSize(const label)
Reset size of List.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
A list of faces which address into the list of points.