Go to the source code of this file.
◆ gtvardeldim()
subroutine gtvardeldim |
( |
type(gt_variable), intent(in) |
var, |
|
|
integer, intent(in) |
dimord, |
|
|
logical, intent(out) |
err |
|
) |
| |
Definition at line 14 of file gtvardeldim.f90.
References gtdata_internal_map::map_lookup(), gtdata_internal_map::map_set(), and gtdata_internal_map::map_set_ndims().
35 use dc_trace
, only: beginsub, endsub, dbgmessage
37 type(gt_variable),
intent(in):: var
38 integer,
intent(in):: dimord
39 logical,
intent(out):: err
42 integer:: ndimsp, stat
43 character(*),
parameter:: subname =
'GTVarDelDim' 46 call beginsub(subname)
48 call endsub(subname,
"negative dimord=%d invalid", i=(/dimord/))
53 call endsub(subname,
"variable invalid")
55 else if (dimord > ndimsp)
then 56 call endsub(subname,
"dimord=%d not exist", i=(/dimord/))
63 map(dimord: ndimsp-1) = map(dimord+1: ndimsp)
subroutine map_set(var, map, stat)
subroutine map_set_ndims(var, ndims, stat)
subroutine, public map_lookup(var, vid, map, ndims)