17 use netcdf
, only: nf90_ebaddim, nf90_noerr, nf90_inq_dimid
22 character(*),
intent(in):: dimname
24 integer:: stat, dimid, i
25 character(*),
parameter:: subname =
'GDNcSearchDim' 27 call beginsub(subname,
'var=%d dimname=%c', i=(/var%id/), c1=trim(dimname))
30 if (stat /= nf90_noerr)
goto 999
32 stat = nf90_inq_dimid(ent%fileid, dimname, dimid)
33 if (stat /= nf90_noerr)
goto 999
35 if (dimid == ent%dimid)
then 40 if (.not.
associated(ent%dimids))
then 44 do, i = 1,
size(ent%dimids)
45 if (ent%dimids(i) == dimid)
then 52 call endsub(subname,
'result=%d', i=(/result/))
integer function, public vtable_lookup(var, entry)
subroutine, public beginsub(name, fmt, i, r, d, L, n, c1, c2, c3, ca, version)
integer function gdncsearchdim(var, dimname)
integer, parameter, public gt_enomoredims
subroutine, public endsub(name, fmt, i, r, d, L, n, c1, c2, c3, ca)