108 flipFaceFlux_(false),
132 neighbour_(neighbour),
133 masterPointID_(masterPointID),
134 masterEdgeID_(masterEdgeID),
135 masterFaceID_(masterFaceID),
136 flipFaceFlux_(flipFaceFlux),
141 if (face_.
size() < 3)
148 " const label owner,"
149 " const label neighbour,\n"
150 " const label masterPointID,\n"
151 " const label masterEdgeID,\n"
152 " const label masterFaceID,\n"
153 " const bool flipFaceFlux,\n"
154 " const label patchID,\n"
155 " const label zoneID,\n"
156 " const bool zoneFlip\n"
158 ) <<
"Invalid face: less than 3 points. "
159 <<
"This is not allowed.\n"
161 <<
" masterPointID:" << masterPointID_
162 <<
" masterEdgeID:" << masterEdgeID_
163 <<
" masterFaceID:" << masterFaceID_
164 <<
" patchID:" << patchID_
165 <<
" owner:" << owner_
166 <<
" neighbour:" << neighbour_
177 " const label owner,"
178 " const label neighbour,\n"
179 " const label masterPointID,\n"
180 " const label masterEdgeID,\n"
181 " const label masterFaceID,\n"
182 " const bool flipFaceFlux,\n"
183 " const label patchID,\n"
184 " const label zoneID,\n"
185 " const bool zoneFlip\n"
187 ) <<
"Face contains invalid vertex ID: " << face_ <<
". "
188 <<
"This is not allowed.\n"
190 <<
" masterPointID:" << masterPointID_
191 <<
" masterEdgeID:" << masterEdgeID_
192 <<
" masterFaceID:" << masterFaceID_
193 <<
" patchID:" << patchID_
194 <<
" owner:" << owner_
195 <<
" neighbour:" << neighbour_
199 if (
min(owner_, neighbour_) >= 0 && owner_ == neighbour_)
206 " const label owner,"
207 " const label neighbour,\n"
208 " const label masterPointID,\n"
209 " const label masterEdgeID,\n"
210 " const label masterFaceID,\n"
211 " const bool flipFaceFlux,\n"
212 " const label patchID,\n"
213 " const label zoneID,\n"
214 " const bool zoneFlip\n"
216 ) <<
"Face owner and neighbour are identical. "
217 <<
"This is not allowed.\n"
219 <<
" masterPointID:" << masterPointID_
220 <<
" masterEdgeID:" << masterEdgeID_
221 <<
" masterFaceID:" << masterFaceID_
222 <<
" patchID:" << patchID_
223 <<
" owner:" << owner_
224 <<
" neighbour:" << neighbour_
228 if (neighbour_ >= 0 && patchID >= 0)
235 " const label owner,"
236 " const label neighbour,\n"
237 " const label masterPointID,\n"
238 " const label masterEdgeID,\n"
239 " const label masterFaceID,\n"
240 " const bool flipFaceFlux,\n"
241 " const label patchID,\n"
242 " const label zoneID,\n"
243 " const bool zoneFlip\n"
245 ) <<
"Patch face has got a neighbour. Patch ID: " << patchID
246 <<
". This is not allowed.\n"
248 <<
" masterPointID:" << masterPointID_
249 <<
" masterEdgeID:" << masterEdgeID_
250 <<
" masterFaceID:" << masterFaceID_
251 <<
" patchID:" << patchID_
252 <<
" owner:" << owner_
253 <<
" neighbour:" << neighbour_
257 if (owner_ < 0 && zoneID < 0)
264 " const label owner,"
265 " const label neighbour,\n"
266 " const label patchID,\n"
267 " const label zoneID"
269 ) <<
"Face has no owner and is not in a zone. "
270 <<
"This is not allowed.\n"
273 <<
" masterPointID:" << masterPointID_
274 <<
" masterEdgeID:" << masterEdgeID_
275 <<
" masterFaceID:" << masterFaceID_
276 <<
" patchID:" << patchID_
277 <<
" owner:" << owner_
278 <<
" neighbour:" << neighbour_
282 if (zoneID_ == -1 && zoneFlip)
289 " const label owner,"
290 " const label neighbour,\n"
291 " const label masterPointID,\n"
292 " const label masterEdgeID,\n"
293 " const label masterFaceID,\n"
294 " const label patchID,\n"
295 " const label zoneID,\n"
296 " const bool zoneFlip\n"
298 ) <<
"Specified zone flip for a face that does not "
299 <<
"belong to zone. This is not allowed.\n"
301 <<
" masterPointID:" << masterPointID_
302 <<
" masterEdgeID:" << masterEdgeID_
303 <<
" masterFaceID:" << masterFaceID_
304 <<
" patchID:" << patchID_
305 <<
" owner:" << owner_
306 <<
" neighbour:" << neighbour_
343 return masterPointID_ >= 0;
349 return masterEdgeID_ >= 0;
355 return masterFaceID_ >= 0;
367 return masterPointID_;
373 return masterEdgeID_;
379 return masterFaceID_;
385 return flipFaceFlux_;
391 return patchID_ >= 0;
409 return zoneID_ >= 0 && owner_ < 0 && neighbour_ < 0;