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

Function updateMesh

src/meshTools/sets/topoSets/pointZoneSet.C:293–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291
292
293void pointZoneSet::updateMesh(const mapPolyMesh& morphMap)
294{
295 // pointZone
296 labelList newAddressing(addressing_.size());
297
298 label n = 0;
299 forAll(addressing_, i)
300 {
301 label pointi = addressing_[i];
302 label newPointi = morphMap.reversePointMap()[pointi];
303 if (newPointi >= 0)
304 {
305 newAddressing[n] = newPointi;
306 n++;
307 }
308 }
309 newAddressing.setSize(n);
310
311 addressing_.transfer(newAddressing);
312
313 updateSet();
314}
315
316
317void pointZoneSet::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