MCPcopy Create free account
hub / github.com/Kitware/VTK / SetGhostsToSkip

Method SetGhostsToSkip

Common/DataModel/vtkFieldData.cxx:291–315  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

289
290//------------------------------------------------------------------------------
291void 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.

Callers 9

DeepCopyMethod · 0.95
ShallowCopyMethod · 0.95
TestGhostAwareRangeFunction · 0.80
TestFieldDataFailuresFunction · 0.80
MakeTableFunction · 0.80
RequestDataMethod · 0.80

Calls 1

ModifiedMethod · 0.45

Tested by 5

TestGhostAwareRangeFunction · 0.64
TestFieldDataFailuresFunction · 0.64
MakeTableFunction · 0.64