5 use netcdf
, only: nf90_enotnc
9 integer,
intent(in):: fileid
10 logical,
intent(out),
optional:: err
12 character(*),
parameter:: subname =
"GDNcFileReopen" 14 call beginsub(subname,
'file=%d', i=(/fileid/))
18 if (identptr % id == fileid)
then 19 identptr % count = identptr % count + 1
20 if (
present(err)) err = .false.
21 call endsub(subname,
'count=%d', i=(/identptr % count/))
24 identptr => identptr % next
25 if (.not.
associated(identptr))
exit 28 call storeerror(nf90_enotnc,
'GDNcFileReopen', err, cause_i=fileid)
29 call endsub(subname,
'err')
subroutine gdncfilereopen(fileid, err)
subroutine, public storeerror(number, where, err, cause_c, cause_i)
type(gd_nc_file_id_entry), pointer, save id_head
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)