Loading...
Searching...
No Matches
Functions/Subroutines
gtvarslicendims.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine gtvarslicendims (var, ndims, shape, err)
 

Function/Subroutine Documentation

◆ gtvarslicendims()

subroutine gtvarslicendims ( type(gt_variable), intent(inout)  var,
integer, intent(in)  ndims,
integer, dimension(:), intent(in), optional  shape,
logical, intent(out), optional  err 
)

Definition at line 1 of file gtvarslicendims.f90.

3 use gtdata_generic, only: inquire, get_slice
4 implicit none
5 type(GT_VARIABLE), intent(inout):: var
6 integer, intent(in):: ndims
7 integer, intent(in), optional:: shape(:)
8 logical, intent(out), optional:: err
9 integer:: nd
10 integer, allocatable:: vcount(:)
11 call inquire(var, alldims=nd)
12 allocate(vcount(nd))
13 call get_slice(var, count=vcount(:))
14 if (present(err)) err = .true.
15 stop 'gtvarslicendims: not implemented'