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

Function addSet

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

Source from the content-addressed store, hash-verified

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