49 label facei = changedFaces[i];
55 label edgeI = fEdges[fEdgeI];
57 if (!borderEdge_[edgeI] && (edgeRegion[edgeI] == -1))
59 edgeRegion[edgeI] = nZones_;
61 changedEdges[changedI++] = edgeI;
66 changedEdges.setSize(changedI);
79 label edgeI = changedEdges[i];
81 const labelList& eFaces = pp_.edgeFaces()[edgeI];
85 label facei = eFaces[eFacei];
87 if (
operator[](facei) == -1)
89 operator[](facei) = nZones_;
91 changedFaces[changedI++] = facei;
96 changedFaces.setSize(changedI);
102 void Foam::patchZones::markZone(
label facei)
114 changedEdges = faceToEdge(changedFaces, edgeZone);
118 Info<<
"From changedFaces:" << changedFaces.size()
119 <<
" to changedEdges:" << changedEdges.size()
123 if (changedEdges.empty())
128 changedFaces = edgeToFace(changedEdges);
132 Info<<
"From changedEdges:" << changedEdges.size()
133 <<
" to changedFaces:" << changedFaces.size()
137 if (changedEdges.empty())
155 borderEdge_(borderEdge),
164 <<
"borderEdge boolList not same size as number of edges" <<
endl
165 <<
"borderEdge:" << borderEdge.
size() <<
endl
166 <<
"nEdges :" << pp_.
nEdges()
175 for (; facei < pp_.
size(); facei++)
177 if (
operator[](facei) == -1)
187 if (facei == pp_.
size())
#define forAll(list, i)
Loop across all elements in list.
void size(const label)
Override size to be inconsistent with allocated storage.
label nEdges() const
Return number of edges in patch.
const labelListList & faceEdges() const
Return face-edge addressing.
label size() const
Return the number of elements in the UList.
label & operator[](const label)
Return element of UList.
Calculates zone number for every face of patch.
patchZones(const primitivePatch &pp, const boolList &borderEdge)
Fills *this with zone of face. Zone is area.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
defineTypeNameAndDebug(combustionModel, 0)