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

Function addSet

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

Source from the content-addressed store, hash-verified

187
188
189void pointZoneSet::addSet(const topoSet& set)
190{
191 DynamicList<label> newAddressing(addressing_);
192
193 const pointZoneSet& fSet = refCast<const pointZoneSet>(set);
194
195 forAll(fSet.addressing(), i)
196 {
197 label pointi = fSet.addressing()[i];
198
199 if (!found(pointi))
200 {
201 newAddressing.append(pointi);
202 }
203 }
204
205 addressing_.transfer(newAddressing);
206 updateSet();
207}
208
209
210void pointZoneSet::deleteSet(const topoSet& set)

Callers

nothing calls this directly

Calls 5

updateSetFunction · 0.70
forAllFunction · 0.50
foundFunction · 0.50
appendMethod · 0.45
transferMethod · 0.45

Tested by

no test coverage detected