gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
historyaxisinquire.f90
Go to the documentation of this file.
1!> @file historyaxisinquire.f90
2!>
3!> @author Yasuhiro MORIKAWA
4!> @copyright Copyright (C) GFD Dennou Club, 2000-2026. All rights reserved. <br/>
5!> License is BSD-2-Clause. See [COPYRIGHT](@ref COPYRIGHT) in detail
6!>
7!> @en
8!> @brief Inquire for a GT_HISTORY_AXIS variable
9!> @enden
10!>
11!> @ja
12!> @brief GT_HISTORY_AXIS 変数への問い合わせ
13!> @endja
14
15!>
16!> @en
17!> @brief Inquire a GT_HISTORY_AXIS variable
18!>
19!> Retrieves each piece of information from
20!> a GT_HISTORY_AXIS variable.
21!> @param[in] axis Axis information
22!> @param[out] name Dimension variable name (optional)
23!> @param[out] size Dimension length (optional)
24!> @param[out] longname Descriptive name (optional)
25!> @param[out] units Units (optional)
26!> @param[out] xtype Type (optional)
27!> @enden
28!>
29!> @ja
30!> @brief GT_HISTORY_AXIS 型変数への問い合わせ
31!>
32!> GT_HISTORY_AXIS 型の変数内の各情報を参照します。
33!> @param[in] axis 座標軸情報
34!> @param[out] name 次元変数名 (省略可能)
35!> @param[out] size 次元長 (省略可能)
36!> @param[out] longname 次元変数の記述的名称 (省略可能)
37!> @param[out] units 次元変数の単位 (省略可能)
38!> @param[out] xtype 次元変数の型 (省略可能)
39!> @endja
40!>
41 subroutine historyaxisinquire1( axis, &
42 & name, size, longname, units, xtype )
43 !
44 use dc_trace, only: beginsub, endsub
46 implicit none
47 type(gt_history_axis),intent(in) :: axis
48 character(*) , intent(out), optional:: name ! 次元変数名
49 integer, intent(out), optional:: size ! 次元長 (配列サイズ)
50 character(*) , intent(out), optional:: longname ! 次元変数の記述的名称
51 character(*) , intent(out), optional:: units ! 次元変数の単位
52 character(*) , intent(out), optional:: xtype ! 次元変数の型
53 character(len = *), parameter:: subname = "HistoryAxisInquire1"
54 continue
55 call beginsub(subname)
56 if (present(name)) then
57 name = axis % name
58 end if
59 if (present(size)) then
60 size = axis % length
61 end if
62 if (present(longname)) then
63 longname = axis % longname
64 end if
65 if (present(units)) then
66 units = axis % units
67 end if
68 if (present(xtype)) then
69 xtype = axis % xtype
70 end if
71 call endsub(subname)
72 end subroutine historyaxisinquire1
73
74 !-------------------------------------------------------------------
75
76!> @en
77 !> @brief Inquire a GT_HISTORY_AXIS variable (generic interface)
78 !>
79 !> Usage is same as HistoryAxisInquire.
80 !> @enden
81 !> @ja
82 !> @brief GT_HISTORY_AXIS 型変数への問い合わせ (総称インターフェース)
83 !>
84 !> 使用方法は HistoryAxisInquire と同様です。
85 !> @endja
86 subroutine historyaxisinquire2( axis, &
87 & name, size, longname, units, xtype)
88 use dc_trace, only: beginsub, endsub
91 implicit none
92 type(gt_history_axis),intent(in) :: axis
93 character(*) , intent(out), optional:: name ! 次元変数名
94 integer, intent(out), optional:: size ! 次元長 (配列サイズ)
95 character(*) , intent(out), optional:: longname ! 次元変数の記述的名称
96 character(*) , intent(out), optional:: units ! 次元変数の単位
97 character(*) , intent(out), optional:: xtype ! 次元変数の型
98 character(len = *), parameter:: subname = "HistoryAxisInquire2"
99 continue
100 call beginsub(subname)
101 call historyaxisinquire( axis, &
102 & name, size, longname, units, xtype)
103 call endsub(subname)
104 end subroutine historyaxisinquire2
subroutine historyaxisinquire2(axis, name, size, longname, units, xtype)
subroutine historyaxisinquire1(axis, name, size, longname, units, xtype)
Debug tracing module.
Definition dc_trace.f90:150
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
Definition dc_trace.f90:476
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:599