------------------------------------------------------------------------------
| 289 | |
| 290 | //------------------------------------------------------------------------------ |
| 291 | void vtkFieldData::SetGhostsToSkip(unsigned char ghostsToSkip) |
| 292 | { |
| 293 | if (this->GhostsToSkip != ghostsToSkip) |
| 294 | { |
| 295 | this->GhostsToSkip = ghostsToSkip; |
| 296 | // We need to wipe the cached ranges. |
| 297 | // We reset the MTime of the ghost array so the field data acts as if the ghost array was |
| 298 | // changed. |
| 299 | for (auto& components : this->Ranges) |
| 300 | { |
| 301 | for (CachedGhostRangeType& cache : components) |
| 302 | { |
| 303 | std::get<1>(cache) = 0; |
| 304 | } |
| 305 | } |
| 306 | for (auto& components : this->FiniteRanges) |
| 307 | { |
| 308 | for (CachedGhostRangeType& cache : components) |
| 309 | { |
| 310 | std::get<1>(cache) = 0; |
| 311 | } |
| 312 | } |
| 313 | this->Modified(); |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | //------------------------------------------------------------------------------ |
| 318 | // Allocate data for each array. |