51 label facei = changedFaces[i];
57 label edgeI = fEdges[fEdgeI];
59 if (!borderEdge_[edgeI] && (edgeRegion[edgeI] == -1))
61 edgeRegion[edgeI] = nZones_;
63 changedEdges[changedI++] = edgeI;
68 changedEdges.setSize(changedI);
81 label edgeI = changedEdges[i];
83 const labelList& eFaces = pp_.edgeFaces()[edgeI];
87 label facei = eFaces[eFacei];
89 if (
operator[](facei) == -1)
91 operator[](facei) = nZones_;
93 changedFaces[changedI++] = facei;
98 changedFaces.setSize(changedI);
104 void Foam::patchZones::markZone(label facei)
116 changedEdges = faceToEdge(changedFaces, edgeZone);
120 Info<<
"From changedFaces:" << changedFaces.size()
121 <<
" to changedEdges:" << changedEdges.size()
125 if (changedEdges.empty())
130 changedFaces = edgeToFace(changedEdges);
134 Info<<
"From changedEdges:" << changedEdges.size()
135 <<
" to changedFaces:" << changedFaces.size()
139 if (changedEdges.empty())
157 borderEdge_(borderEdge),
163 if (borderEdge.size() != pp_.
nEdges())
166 <<
"borderEdge boolList not same size as number of edges" <<
endl 167 <<
"borderEdge:" << borderEdge.size() <<
endl 168 <<
"nEdges :" << pp_.
nEdges()
177 for (; facei < pp_.size(); facei++)
179 if (
operator[](facei) == -1)
189 if (facei == pp_.size())
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
label & operator[](const label i)
Return element of UList.
errorManip< error > abort(error &err)
label nEdges() const
Number of edges in patch.
int debug
Static debugging option.
defineTypeNameAndDebug(combustionModel, 0)
PrimitivePatch< SubList< face >, const pointField & > primitivePatch
A PrimitivePatch with a SubList addressing for the faces, const reference for the point field...
messageStream Info
Information stream (stdout output on master, null elsewhere)
const labelListList & faceEdges() const
Return face-edge addressing.
List< label > labelList
A List of labels.
patchZones(const primitivePatch &pp, const boolList &borderEdge)
Fills *this with zone of face. Zone is area.
List< bool > boolList
A List of bools.