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

Method ReleaseNcData

IO/NetCDF/vtkMPASReader.cxx:1005–1035  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1003
1004//------------------------------------------------------------------------------
1005void vtkMPASReader::ReleaseNcData()
1006{
1007 this->Internals->pointVars.clear();
1008 this->Internals->pointArrays.clear();
1009 this->Internals->cellVars.clear();
1010 this->Internals->cellArrays.clear();
1011
1012 this->PointDataArraySelection->RemoveAllArrays();
1013 this->CellDataArraySelection->RemoveAllArrays();
1014 this->UpdateDimensions(true); // Reset extra dimension list.
1015
1016 delete[] this->PointX;
1017 this->PointX = nullptr;
1018 delete[] this->PointY;
1019 this->PointY = nullptr;
1020 delete[] this->PointZ;
1021 this->PointZ = nullptr;
1022
1023 delete[] this->OrigConnections;
1024 this->OrigConnections = nullptr;
1025 delete[] this->ModConnections;
1026 this->ModConnections = nullptr;
1027 delete[] this->CellMap;
1028 this->CellMap = nullptr;
1029 delete[] this->PointMap;
1030 this->PointMap = nullptr;
1031 delete[] this->MaximumLevelPoint;
1032 this->MaximumLevelPoint = nullptr;
1033
1034 this->Internals->close();
1035}
1036
1037//------------------------------------------------------------------------------
1038// Verify that the file exists, get dimension sizes and variables

Callers 1

RequestInformationMethod · 0.95

Calls 4

UpdateDimensionsMethod · 0.95
RemoveAllArraysMethod · 0.80
clearMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected