| 165 | |
| 166 | |
| 167 | void 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 | |
| 188 | void cellZoneSet::addSet(const topoSet& set) |