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

Function updateMesh

src/meshTools/sets/topoSets/cellZoneSet.C:292–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290
291
292void cellZoneSet::updateMesh(const mapPolyMesh& morphMap)
293{
294 // cellZone
295 labelList newAddressing(addressing_.size());
296
297 label n = 0;
298 forAll(addressing_, i)
299 {
300 label celli = addressing_[i];
301 label newCelli = morphMap.reverseCellMap()[celli];
302 if (newCelli >= 0)
303 {
304 newAddressing[n] = newCelli;
305 n++;
306 }
307 }
308 newAddressing.setSize(n);
309
310 addressing_.transfer(newAddressing);
311
312 updateSet();
313}
314
315
316void cellZoneSet::writeDebug

Callers

nothing calls this directly

Calls 4

updateSetFunction · 0.70
forAllFunction · 0.50
setSizeMethod · 0.45
transferMethod · 0.45

Tested by

no test coverage detected