63 integer,
intent(in):: dimord
64 logical,
intent(out):: err
67 integer:: id, nd, ndimsp, stat, vid
68 character(*),
parameter:: subname =
'GTVarAddDim'
74 call endsub(subname,
"negative dimord=%d invalid", i=(/dimord/))
81 call endsub(subname,
"dimvar invalid")
85 call endsub(subname,
"dimvar nondimensional")
88 call endsub(subname,
"dimvar multidimensional")
98 if (dimord > ndimsp + 1)
then
103 allocate(map(nd + 1))
106 map(id+1: nd+1) = map(id: nd)
110 call inquire(dimvar, url=map(id)%url)
111 map(id)%allcount = tmpmap%allcount
112 map(id)%offset = tmpmap%offset
113 map(id)%step = tmpmap%step
114 map(id)%start = tmpmap%start
115 map(id)%count = tmpmap%count
116 map(id)%stride = tmpmap%stride
119 call map_set(var, map=map, stat=stat)
120 if (stat /= 0)
goto 999
subroutine gtvaradddim(var, dimord, dimvar, err)
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)
subroutine, public map_lookup(var, vid, map, ndims)
subroutine map_set_ndims(var, ndims, stat)
subroutine map_set(var, map, stat)
subroutine map_resize(var, ndims)