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

Function invert

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

Source from the content-addressed store, hash-verified

137// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
138
139void pointZoneSet::invert(const label maxLen)
140{
141 // Count
142 label n = 0;
143
144 for (label pointi = 0; pointi < maxLen; pointi++)
145 {
146 if (!found(pointi))
147 {
148 n++;
149 }
150 }
151
152 // Fill
153 addressing_.setSize(n);
154 n = 0;
155
156 for (label pointi = 0; pointi < maxLen; pointi++)
157 {
158 if (!found(pointi))
159 {
160 addressing_[n] = pointi;
161 n++;
162 }
163 }
164 updateSet();
165}
166
167
168void pointZoneSet::subset(const topoSet& set)

Callers

nothing calls this directly

Calls 3

updateSetFunction · 0.70
foundFunction · 0.50
setSizeMethod · 0.45

Tested by

no test coverage detected