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

Method CloseNetCDFFile

IO/MINC/vtkMINCImageReader.cxx:262–273  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

260
261//------------------------------------------------------------------------------
262int vtkMINCImageReader::CloseNetCDFFile(int ncid)
263{
264 int status = 0;
265 status = nc_close(ncid);
266 if (status != NC_NOERR)
267 {
268 vtkErrorMacro("Could not close the MINC file:\n" << nc_strerror(status));
269 return 0;
270 }
271
272 return 1;
273}
274
275//------------------------------------------------------------------------------
276// this is a macro so the vtkErrorMacro will report a useful line number

Callers 2

Calls 2

nc_closeFunction · 0.85
nc_strerrorFunction · 0.85

Tested by

no test coverage detected