gtvarslicendims.f90

Path: src/gtvarslicendims.f90
Last Update: Wed Jul 20 18:22:24 JST 2005

Methods

Included Modules

gtdata_types gtdata_generic

Public Instance methods

var :type(GT_VARIABLE), intent(inout)
ndims :integer, intent(in)
shape(:) :integer, intent(in), optional
err :logical, intent(out), optional

[Source]

subroutine GTVarSliceNDims(var, ndims, shape, err)

    implicit none
    type(GT_VARIABLE), intent(inout):: var
    integer, intent(in):: ndims
    integer, intent(in), optional:: shape(:)
    logical, intent(out), optional:: err
    integer:: nd
    integer, allocatable:: vcount(:)
    call Inquire(var, alldims=nd)
    allocate(vcount(nd))
    call Get_Slice(var, count=vcount(:))
    if (present(err)) err = .true.
    stop 'gtvarslicendims: not implemented'
end subroutine

[Validate]