Go to the source code of this file.
|
subroutine | gtvargetslice (var, dimord, start, count, stride, count_compact) |
|
◆ gtvargetslice()
subroutine gtvargetslice |
( |
type(gt_variable), intent(in) |
var, |
|
|
integer, intent(in) |
dimord, |
|
|
integer, intent(out), optional |
start, |
|
|
integer, intent(out), optional |
count, |
|
|
integer, intent(out), optional |
stride, |
|
|
logical, intent(in), optional |
count_compact |
|
) |
| |
Definition at line 14 of file gtvargetslice.f90.
References gtdata_internal_map::dimord_skip_compact(), and gtdata_internal_map::map_lookup().
Referenced by gtvargetsliceall().
33 integer,
intent(in):: dimord
34 integer,
intent(out),
optional:: start
35 integer,
intent(out),
optional:: count
36 integer,
intent(out),
optional:: stride
37 logical,
intent(in),
optional:: count_compact
39 integer:: vid, udimord, ndims
43 if (
present(count_compact)) allmode = count_compact
45 if (vid < 0 .or. ndims <= 0)
goto 999
53 if (udimord < 1 .or. udimord >
size(map))
goto 997
55 if (
present(start)) start = map(udimord)%start
56 if (
present(count)) count = map(udimord)%count
57 if (
present(stride)) stride = map(udimord)%stride
64 if (
present(start)) start = -1
65 if (
present(count)) count = -1
66 if (
present(stride)) stride = -1
integer function dimord_skip_compact(dimord, map)
subroutine, public map_lookup(var, vid, map, ndims)