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

Method GetGridLevel

Filters/Geometry/vtkStructuredAMRGridConnectivity.h:642–648  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

640
641//------------------------------------------------------------------------------
642inline int vtkStructuredAMRGridConnectivity::GetGridLevel(int gridIdx)
643{
644 assert("pre: grid Index is out-of-bounds!" && (gridIdx < static_cast<int>(this->NumberOfGrids)));
645 assert("pre: grid levels vector has not been allocated" &&
646 (this->GridLevels.size() == this->NumberOfGrids));
647 return (this->GridLevels[gridIdx]);
648}
649
650//------------------------------------------------------------------------------
651inline void vtkStructuredAMRGridConnectivity::SetRefinementRatioAtLevel(int level, int r)

Calls 2

assertFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected