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

Method GetDimensionSize

IO/NetCDF/vtkMPASReader.cxx:2912–2923  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2910
2911//------------------------------------------------------------------------------
2912int vtkMPASReader::GetDimensionSize(const std::string& dim)
2913{
2914 this->UpdateDimensions();
2915
2916 typedef Internal::DimMetaDataMap::const_iterator Iter;
2917 Iter it = this->Internals->dimMetaDataMap.find(dim);
2918 if (it == this->Internals->dimMetaDataMap.end())
2919 {
2920 return -1;
2921 }
2922 return static_cast<int>(it->second.dimSize);
2923}
2924
2925//------------------------------------------------------------------------------
2926// Set vertical level to be viewed.

Callers

nothing calls this directly

Calls 3

UpdateDimensionsMethod · 0.95
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected