MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / calcSuperFaces

Function calcSuperFaces

src/meshTools/cellFeatures/cellFeatures.C:219–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217
218
219void Foam::cellFeatures::calcSuperFaces() const
220{
221 // Determine superfaces by edge walking across non-feature edges
222
223 const labelList& cFaces = mesh_.cells()[celli_];
224
225 // Mapping from old to super face:
226 // <not found> : not visited
227 // >=0 : superFace
228 Map<label> toSuperFace(10*cFaces.size());
229
230 label superFacei = 0;
231
232 forAll(cFaces, cFacei)
233 {
234 label facei = cFaces[cFacei];
235
236 if (!toSuperFace.found(facei))
237 {
238 walkSuperFace
239 (
240 facei,
241 superFacei,
242 toSuperFace
243 );
244 superFacei++;
245 }
246 }
247
248 // Construct superFace-to-oldface mapping.
249

Callers 1

cellFeaturesClass · 0.85

Calls 2

walkSuperFaceFunction · 0.85
foundMethod · 0.45

Tested by

no test coverage detected