gtool5 Fortran 90/95 Library
1.0.0-rc5
日本語
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Loading...
Searching...
No Matches
gtdata
gtvarslicendims.f90
Go to the documentation of this file.
1
!> @file gtvarslicendims.f90
2
!>
3
!> @copyright Copyright (C) GFD Dennou Club, 2000-2026. All rights reserved. <br/>
4
!> License is BSD-2-Clause. See [COPYRIGHT](@ref COPYRIGHT) in detail
5
!>
6
!> @en
7
!> @brief Get number of slice dimensions (not implemented)
8
!> @enden
9
!>
10
!> @ja
11
!> @brief スライス次元数の取得 (未実装)
12
!> @endja
13
!>
14
15
!>
16
!> @en
17
!> @brief Get number of slice dimensions
18
!>
19
!> @note This subroutine is not implemented yet.
20
!> @param[inout] var Variable handle
21
!> @param[in] ndims Number of dimensions
22
!> @param[in] shape Shape array (optional)
23
!> @param[out] err Error flag (optional)
24
!> @enden
25
!>
26
!> @ja
27
!> @brief スライス次元数の取得
28
!>
29
!> @note このサブルーチンは未実装です。
30
!> @param[inout] var 変数ハンドル
31
!> @param[in] ndims 次元数
32
!> @param[in] shape 形状配列 (省略可能)
33
!> @param[out] err エラーフラグ (省略可能)
34
!> @endja
35
!>
36
subroutine
gtvarslicendims
(var, ndims, shape, err)
37
use
gtdata_types
,
only
:
gt_variable
38
use
gtdata_generic
,
only
:
inquire
,
get_slice
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'
54
end subroutine
gtvarslicendims
subroutine gtvarslicendims(var, ndims, shape, err)
Definition
gtvarslicendims.f90:37
gtdata_generic::get_slice
Definition
gtdata_generic.f90:535
gtdata_generic::inquire
Definition
gtdata_generic.f90:667
gtdata_generic
Definition
gtdata_generic.f90:187
gtdata_types
Definition
gtdata_types.f90:39
gtdata_types::gt_variable
Definition
gtdata_types.f90:46
Generated on
for gtool5 Fortran 90/95 Library by
1.15.0