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

Method ComputeNeighbors

Filters/Geometry/vtkStructuredAMRGridConnectivity.cxx:266–284  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

264
265//------------------------------------------------------------------------------
266void vtkStructuredAMRGridConnectivity::ComputeNeighbors()
267{
268 // STEP 0: Compute the whole extent w.r.t. level 0 which also computes the
269 // data-description and dimension of the data.
270 this->ComputeWholeExtent();
271
272 // STEP 1: Establish neighbor relation between grids in the AMR hierarchy
273 for (unsigned int i = 0; i < this->NumberOfGrids; ++i)
274 {
275 this->SetBlockTopology(i);
276
277 for (unsigned int j = i + 1; j < this->NumberOfGrids; ++j)
278 {
279 this->EstablishNeighbors(i, j);
280 } // END for all j
281
282 this->FillGhostArrays(i, this->GridPointGhostArrays[i], this->GridCellGhostArrays[i]);
283 } // END for all i
284}
285
286//------------------------------------------------------------------------------
287void vtkStructuredAMRGridConnectivity::GetGhostedExtent(int gridID, int ext[6])

Callers 1

EstablishNeighborsMethod · 0.45

Calls 4

ComputeWholeExtentMethod · 0.95
SetBlockTopologyMethod · 0.95
EstablishNeighborsMethod · 0.95
FillGhostArraysMethod · 0.95

Tested by

no test coverage detected