gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
gdncvarclose.f90 File Reference

Close a netCDF variable . More...

Go to the source code of this file.

Functions/Subroutines

subroutine gdncvarclose (var, err)

Detailed Description

Close a netCDF variable

.

Author
GFD Dennou Club

Definition in file gdncvarclose.f90.

Function/Subroutine Documentation

◆ gdncvarclose()

subroutine gdncvarclose ( type(gd_nc_variable), intent(in) var,
logical, intent(out), optional err )

Close a netCDF variable handle

Deletes the variable from the internal table, syncs and closes the file.

Parameters
[in]varVariable handle
[out]errError flag (optional)

Definition at line 33 of file gdncvarclose.f90.

37 use dc_error
38 implicit none
39 type(GD_NC_VARIABLE), intent(in):: var
40 logical, intent(out), optional:: err
41 integer:: fileid
42continue
43 fileid = vtable_delete(var)
44 if (fileid < 0) then
45 call storeerror(fileid, 'GDNcVarClose', err)
46 return
47 endif
48 call gdncfilesync(fileid)
49 call gdncfileclose(fileid, err)
Error handling module.
Definition dc_error.f90:454
subroutine, public storeerror(number, where, err, cause_c, cause_i)
Definition dc_error.f90:891
integer function, public vtable_delete(var)

References dc_error::storeerror(), and gtdata_netcdf_internal::vtable_delete().

Here is the call graph for this function: