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

Method BlankCells

Filters/AMR/vtkParallelAMRUtilities.cxx:113–139  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

111
112//------------------------------------------------------------------------------
113void vtkParallelAMRUtilities::BlankCells(
114 vtkOverlappingAMR* amr, vtkMultiProcessController* myController)
115{
116 vtkOverlappingAMRMetaData* amrMData = amr->GetOverlappingAMRMetaData();
117 if (!amrMData)
118 {
119 vtkErrorWithObjectMacro(amr, "Could not recover AMR Meta Data, aborting");
120 return;
121 }
122
123 if (!amrMData->HasRefinementRatio())
124 {
125 amrMData->GenerateRefinementRatio();
126 }
127 if (!amrMData->HasChildrenInformation())
128 {
129 amrMData->GenerateParentChildInformation();
130 }
131
132 std::vector<int> processorMap;
133 vtkParallelAMRUtilities::DistributeProcessInformation(amr, myController, processorMap);
134 unsigned int numLevels = amr->GetNumberOfLevels();
135 for (unsigned int i = 0; i < numLevels; i++)
136 {
137 vtkAMRUtilities::BlankGridsAtLevel(amr, i, amrMData->GetChildrenAtLevel(i), processorMap);
138 }
139}
140VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 6

HasRefinementRatioMethod · 0.80
GetNumberOfLevelsMethod · 0.45

Tested by

no test coverage detected