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

Method ExtendGhostLayers

Common/ExecutionModel/vtkExtentRCBPartitioner.cxx:228–266  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

226
227//------------------------------------------------------------------------------
228void vtkExtentRCBPartitioner::ExtendGhostLayers(int ext[6])
229{
230 if (this->NumberOfGhostLayers == 0)
231 {
232 return;
233 }
234
235 switch (this->DataDescription)
236 {
237 case vtkStructuredData::VTK_STRUCTURED_X_LINE:
238 this->GetGhostedExtent(ext, 0, 1);
239 break;
240 case vtkStructuredData::VTK_STRUCTURED_Y_LINE:
241 this->GetGhostedExtent(ext, 2, 3);
242 break;
243 case vtkStructuredData::VTK_STRUCTURED_Z_LINE:
244 this->GetGhostedExtent(ext, 4, 5);
245 break;
246 case vtkStructuredData::VTK_STRUCTURED_XY_PLANE:
247 this->GetGhostedExtent(ext, 0, 1);
248 this->GetGhostedExtent(ext, 2, 3);
249 break;
250 case vtkStructuredData::VTK_STRUCTURED_YZ_PLANE:
251 this->GetGhostedExtent(ext, 2, 3);
252 this->GetGhostedExtent(ext, 4, 5);
253 break;
254 case vtkStructuredData::VTK_STRUCTURED_XZ_PLANE:
255 this->GetGhostedExtent(ext, 0, 1);
256 this->GetGhostedExtent(ext, 4, 5);
257 break;
258 case vtkStructuredData::VTK_STRUCTURED_XYZ_GRID:
259 this->GetGhostedExtent(ext, 0, 1);
260 this->GetGhostedExtent(ext, 2, 3);
261 this->GetGhostedExtent(ext, 4, 5);
262 break;
263 default:
264 assert("pre: unsupported data-description, code should not reach here!" && false);
265 }
266}
267
268//------------------------------------------------------------------------------
269int vtkExtentRCBPartitioner::GetNumberOfNodes(int ext[6])

Callers 1

PartitionMethod · 0.95

Calls 2

assertFunction · 0.50
GetGhostedExtentMethod · 0.45

Tested by

no test coverage detected