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

Method GetBlockIndexWithinLevel

IO/AMR/vtkAMReXGridReaderInternal.cxx:928–940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926}
927
928int vtkAMReXGridReaderInternal::GetBlockIndexWithinLevel(int blockIdx, int level)
929{
930 if (this->headersAreRead)
931 {
932 int blockIndexWithinLevel = blockIdx;
933 for (int i = 0; i < level; ++i)
934 {
935 blockIndexWithinLevel -= this->Header->levelSize[i];
936 }
937 return blockIndexWithinLevel;
938 }
939 return (-1);
940}
941
942void vtkAMReXGridReaderInternal::GetBlockAttribute(
943 const char* attribute, int blockIdx, vtkDataSet* pDataSet)

Callers 2

GetBlockAttributeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected