gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
gtvarslicendims.f90 File Reference

Get number of slice dimensions (not implemented) . More...

Go to the source code of this file.

Functions/Subroutines

subroutine gtvarslicendims (var, ndims, shape, err)

Detailed Description

Get number of slice dimensions (not implemented)

.

Definition in file gtvarslicendims.f90.

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 )

Get number of slice dimensions

Note
This subroutine is not implemented yet.
Parameters
[in,out]varVariable handle
[in]ndimsNumber of dimensions
[in]shapeShape array (optional)
[out]errError flag (optional)

Definition at line 36 of file gtvarslicendims.f90.

37 use gtdata_types, only: gt_variable
39 implicit none
40 type(GT_VARIABLE), intent(inout):: var
41 integer, intent(in):: ndims
42 integer, intent(in), optional:: shape(:)
43 logical, intent(out), optional:: err
44 integer:: nd
45 integer, allocatable:: vcount(:)
46 if (ndims < 0) then
47 if (present(shape)) continue
48 end if
49 call inquire(var, alldims=nd)
50 allocate(vcount(nd))
51 call get_slice(var, count=vcount(:))
52 if (present(err)) err = .true.
53 stop 'gtvarslicendims: not implemented'