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

Method SetGhostedExtent

Filters/Geometry/vtkStructuredAMRGridConnectivity.cxx:302–314  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

300
301//------------------------------------------------------------------------------
302void vtkStructuredAMRGridConnectivity::SetGhostedExtent(int gridID, int ext[6])
303{
304 assert("pre: grid ID is out-of-bounds!" && (gridID >= 0) &&
305 (gridID < static_cast<int>(this->NumberOfGrids)));
306 assert("pre: ghosted-extents vector has not been allocated" &&
307 (this->NumberOfGrids == this->GhostedExtents.size() / 6));
308 assert("pre: Number of ghost layers should not be 0" && (this->NumberOfGhostLayers > 0));
309
310 for (int i = 0; i < 6; ++i)
311 {
312 this->GhostedExtents[gridID * 6 + i] = ext[i];
313 }
314}
315
316//------------------------------------------------------------------------------
317void vtkStructuredAMRGridConnectivity::CreateGhostLayers(int N)

Callers 1

CreateGhostedExtentMethod · 0.95

Calls 2

assertFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected