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

Method GetAttributeOffsetExtraMultiFab

IO/AMR/vtkAMReXGridReaderInternal.cxx:1240–1251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1238}
1239
1240vtkIdType vtkAMReXGridReaderInternal::GetAttributeOffsetExtraMultiFab(
1241 const char* attribute, const int fabIndex)
1242{
1243 std::string attr = attribute;
1244 const auto& vars = this->Header->extraMultiFabVariables[fabIndex];
1245 auto itr = std::find(vars.begin(), vars.end(), attr);
1246 if (itr != vars.end())
1247 {
1248 return itr - vars.begin();
1249 }
1250 return -1;
1251}
1252
1253void vtkAMReXGridReaderInternal::ReadFAB(std::istream& is)
1254{

Callers 1

Calls 3

findFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected