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

Method GetAbsoluteBlockIndex

Common/DataModel/vtkAMRMetaData.cxx:88–97  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

86
87//------------------------------------------------------------------------------
88int vtkAMRMetaData::GetAbsoluteBlockIndex(unsigned int level, unsigned int relativeBlockIndex) const
89{
90 if (level >= this->GetNumberOfLevels())
91 {
92 vtkErrorMacro("Invalid level to GetAbsoluteBlockIndex: " << level);
93 return -1;
94 }
95
96 return this->NumBlocks[level] + relativeBlockIndex;
97}
98
99//------------------------------------------------------------------------------
100void vtkAMRMetaData::ComputeIndexPair(unsigned int index, unsigned int& level, unsigned int& id)

Callers 15

SetupBlockRequestMethod · 0.45
GetCompositeIndexFunction · 0.45
vtkAMRMetaData.hFile · 0.45
BlankGridsAtLevelMethod · 0.45
SetAMRBoxMethod · 0.45
SetBoundsMethod · 0.45
GetBoundsMethod · 0.45
GetAMRBoxMethod · 0.45
GetOriginMethod · 0.45

Calls 1

GetNumberOfLevelsMethod · 0.95

Tested by 6

TestOverlappingAMRFunction · 0.36
TestNonOverlappingAMRFunction · 0.36
RegisterGridsFunction · 0.36
GetGhostedAMRDataFunction · 0.36