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

Function deleteSet

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

Source from the content-addressed store, hash-verified

208
209
210void pointZoneSet::deleteSet(const topoSet& set)
211{
212 DynamicList<label> newAddressing(addressing_.size());
213
214 const pointZoneSet& fSet = refCast<const pointZoneSet>(set);
215
216 forAll(addressing_, i)
217 {
218 label pointi = addressing_[i];
219
220 if (!fSet.found(pointi))
221 {
222 // Not found in fSet so add
223 newAddressing.append(pointi);
224 }
225 }
226
227 addressing_.transfer(newAddressing);
228 updateSet();
229}
230
231
232void pointZoneSet::sync(const polyMesh& mesh)

Callers

nothing calls this directly

Calls 6

updateSetFunction · 0.70
forAllFunction · 0.50
sizeMethod · 0.45
foundMethod · 0.45
appendMethod · 0.45
transferMethod · 0.45

Tested by

no test coverage detected