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

Method GetNumberOfBlocks

Common/DataModel/vtkAMRMetaData.cxx:71–79  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

69
70//------------------------------------------------------------------------------
71unsigned int vtkAMRMetaData::GetNumberOfBlocks(unsigned int level) const
72{
73 if (level >= this->GetNumberOfLevels())
74 {
75 vtkErrorMacro("Invalid level to GetNumberOfBlocks");
76 return 0;
77 }
78 return this->NumBlocks[level + 1] - this->NumBlocks[level];
79}
80
81//------------------------------------------------------------------------------
82unsigned int vtkAMRMetaData::GetNumberOfBlocks() const

Callers 15

GenerateBlockLevelMethod · 0.95
RequestDataMethod · 0.45
GetTotalNumberOfBlocksFunction · 0.45
GetNumberOfDataSetsFunction · 0.45
GetNumberOfDataSetsFunction · 0.45
GetTotalNumberOfBlocksFunction · 0.45
VisitMethod · 0.45
StripGhostLayersMethod · 0.45

Calls 2

GetNumberOfLevelsMethod · 0.95
backMethod · 0.80

Tested by 4

TestOverlappingAMRFunction · 0.36
TestNonOverlappingAMRFunction · 0.36