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

Method Close

IO/NetCDF/vtkNetCDFUGRIDReader.cxx:703–717  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

701
702//--------------------------------------------------------------------------------------------------
703void vtkNetCDFUGRIDReader::Close()
704{
705 if (this->NcId == -1) // not opened
706 {
707 return;
708 }
709
710 int error{ nc_close(this->NcId) };
711 if (error != NC_NOERR)
712 {
713 vtkErrorMacro("Failed to close file, memory may leak: " << nc_strerror(error));
714 }
715
716 this->NcId = -1;
717}
718
719//--------------------------------------------------------------------------------------------------
720bool vtkNetCDFUGRIDReader::CheckError(int error)

Callers 4

~vtkNetCDFUGRIDReaderMethod · 0.95
RequestInformationMethod · 0.95
RequestDataMethod · 0.95
OpenMethod · 0.95

Calls 2

nc_closeFunction · 0.85
nc_strerrorFunction · 0.85

Tested by

no test coverage detected