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

Function subset

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

Source from the content-addressed store, hash-verified

165
166
167void cellZoneSet::subset(const topoSet& set)
168{
169 DynamicList<label> newAddressing(addressing_.size());
170
171 const cellZoneSet& fSet = refCast<const cellZoneSet>(set);
172
173 forAll(fSet.addressing(), i)
174 {
175 label celli = fSet.addressing()[i];
176
177 if (found(celli))
178 {
179 newAddressing.append(celli);
180 }
181 }
182
183 addressing_.transfer(newAddressing);
184 updateSet();
185}
186
187
188void cellZoneSet::addSet(const topoSet& set)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected