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

Function deleteSet

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

Source from the content-addressed store, hash-verified

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