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

Function invert

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

Source from the content-addressed store, hash-verified

135// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
136
137void cellZoneSet::invert(const label maxLen)
138{
139 // Count
140 label n = 0;
141
142 for (label celli = 0; celli < maxLen; celli++)
143 {
144 if (!found(celli))
145 {
146 n++;
147 }
148 }
149
150 // Fill
151 addressing_.setSize(n);
152 n = 0;
153
154 for (label celli = 0; celli < maxLen; celli++)
155 {
156 if (!found(celli))
157 {
158 addressing_[n] = celli;
159 n++;
160 }
161 }
162
163 updateSet();
164}
165
166
167void cellZoneSet::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