| 207 | |
| 208 | |
| 209 | void cellZoneSet::deleteSet(const topoSet& set) |
| 210 | { |
| 211 | DynamicList<label> newAddressing(addressing_.size()); |
| 212 | |
| 213 | const cellZoneSet& fSet = refCast<const cellZoneSet>(set); |
| 214 | |
| 215 | forAll(addressing_, i) |
| 216 | { |
| 217 | label celli = addressing_[i]; |
| 218 | |
| 219 | if (!fSet.found(celli)) |
| 220 | { |
| 221 | // Not found in fSet so add |
| 222 | newAddressing.append(celli); |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | addressing_.transfer(newAddressing); |
| 227 | updateSet(); |
| 228 | } |
| 229 | |
| 230 | |
| 231 | void cellZoneSet::sync(const polyMesh& mesh) |