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

Method GetGhostedExtent

Filters/Geometry/vtkStructuredAMRGridConnectivity.cxx:287–299  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

285
286//------------------------------------------------------------------------------
287void vtkStructuredAMRGridConnectivity::GetGhostedExtent(int gridID, int ext[6])
288{
289 assert("pre: grid ID is out-of-bounds!" && (gridID >= 0) &&
290 (gridID < static_cast<int>(this->NumberOfGrids)));
291 assert("pre: ghosted-extents vector has not been allocated" &&
292 (this->NumberOfGrids == this->GhostedExtents.size() / 6));
293 assert("pre: Number of ghost layers should not be 0" && (this->NumberOfGhostLayers > 0));
294
295 for (int i = 0; i < 6; ++i)
296 {
297 ext[i] = this->GhostedExtents[gridID * 6 + i];
298 }
299}
300
301//------------------------------------------------------------------------------
302void vtkStructuredAMRGridConnectivity::SetGhostedExtent(int gridID, int ext[6])

Calls 2

assertFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected