38 use netcdf,
only: nf90_enotnc
42 integer,
intent(in):: fileid
43 logical,
intent(out),
optional:: err
45 character(*),
parameter:: subname =
"GDNcFileReopen"
47 call beginsub(subname,
'file=%d', i=(/fileid/))
51 if (identptr % id == fileid)
then
52 identptr % count = identptr % count + 1
53 if (
present(err)) err = .false.
54 call endsub(subname,
'count=%d', i=(/identptr % count/))
57 identptr => identptr % next
58 if (.not.
associated(identptr))
exit
61 call storeerror(nf90_enotnc,
'GDNcFileReopen', err, cause_i=fileid)
62 call endsub(subname,
'err')
subroutine gdncfilereopen(fileid, err)
subroutine, public storeerror(number, where, err, cause_c, cause_i)
subroutine, public dbgmessage(fmt, i, r, d, l, n, c1, c2, c3, ca)
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
logical, save id_used
Flag indicating whether id_head has been initialized
type(gd_nc_file_id_entry), pointer, save id_head
ID table for open/close of netCDF files