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

Method GetAMRBlockSourceIndex

Common/DataModel/vtkOverlappingAMR.cxx:253–265  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

251
252//------------------------------------------------------------------------------
253int vtkOverlappingAMR::GetAMRBlockSourceIndex(unsigned int level, unsigned int id)
254{
255 vtkOverlappingAMRMetaData* oamrMetaData = this->GetOverlappingAMRMetaData();
256 if (oamrMetaData)
257 {
258 unsigned int index = oamrMetaData->GetAbsoluteBlockIndex(level, id);
259 return oamrMetaData->GetAMRBlockSourceIndex(index);
260 }
261 else
262 {
263 return -1;
264 }
265}
266
267//------------------------------------------------------------------------------
268void vtkOverlappingAMR::Audit()

Callers 2

LoadRequestedBlocksMethod · 0.45
AssignAndLoadBlocksMethod · 0.45

Calls 2

GetAbsoluteBlockIndexMethod · 0.45

Tested by

no test coverage detected