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

Function subset

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

Source from the content-addressed store, hash-verified

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