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

Method GetRefinementRatioAtLevel

Filters/Geometry/vtkStructuredAMRGridConnectivity.h:663–673  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

661
662//------------------------------------------------------------------------------
663inline int vtkStructuredAMRGridConnectivity::GetRefinementRatioAtLevel(int level)
664{
665 assert("pre: RefinementRatios vector is not properly allocated" &&
666 this->RefinementRatios.size() == this->NumberOfLevels);
667 assert("pre: level is out-of-bounds!" && (level >= 0) &&
668 (level < static_cast<int>(this->RefinementRatios.size())));
669 assert(
670 "pre: refinement ratio for level has not been set" && (this->RefinementRatios[level] >= 2));
671
672 return (this->RefinementRatios[level]);
673}
674
675//------------------------------------------------------------------------------
676inline bool vtkStructuredAMRGridConnectivity::HasConstantRefinementRatio()

Callers 3

CoarsenExtentMethod · 0.95
RefineExtentMethod · 0.95
GetCellRefinedExtentMethod · 0.95

Calls 2

assertFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected