Loading...
Searching...
No Matches
historyaxisinquire.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine historyaxisinquire1 (axis, name, size, longname, units, xtype)
subroutine historyaxisinquire2 (axis, name, size, longname, units, xtype)

Function/Subroutine Documentation

◆ historyaxisinquire1()

subroutine historyaxisinquire1 ( type(gt_history_axis), intent(in) axis,
character(*), intent(out), optional name,
integer, intent(out), optional size,
character(*), intent(out), optional longname,
character(*), intent(out), optional units,
character(*), intent(out), optional xtype )

Definition at line 10 of file historyaxisinquire.f90.

12 !
13 !== GT_HISTORY_AXIS 型変数への問い合わせ
14 !
15 ! GT_HISTORY_AXIS 型の変数内の各情報を参照します。
16 !
17 use dc_types, only: string, token, dp
18 use dc_trace, only: beginsub, endsub, dbgmessage
20 use gtool_history_internal, only: default
21 implicit none
22 type(GT_HISTORY_AXIS),intent(in) :: axis
23 character(*) , intent(out), optional:: name ! 次元変数名
24 integer, intent(out), optional:: size ! 次元長 (配列サイズ)
25 character(*) , intent(out), optional:: longname ! 次元変数の記述的名称
26 character(*) , intent(out), optional:: units ! 次元変数の単位
27 character(*) , intent(out), optional:: xtype ! 次元変数の型
28 character(len = *), parameter:: subname = "HistoryAxisInquire1"
29 continue
30 call beginsub(subname)
31 if (present(name)) then
32 name = axis % name
33 end if
34 if (present(size)) then
35 size = axis % length
36 end if
37 if (present(longname)) then
38 longname = axis % longname
39 end if
40 if (present(units)) then
41 units = axis % units
42 end if
43 if (present(xtype)) then
44 xtype = axis % xtype
45 end if
46 call endsub(subname)
種別型パラメタを提供します。
Definition dc_types.f90:49
integer, parameter, public token
単語やキーワードを保持する文字型変数の種別型パラメタ
Definition dc_types.f90:109
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition dc_types.f90:118
integer, parameter, public dp
倍精度実数型変数
Definition dc_types.f90:83
type(gt_history), target, save default

References gtool_history_types::default, dc_types::dp, dc_types::string, and dc_types::token.

◆ historyaxisinquire2()

subroutine historyaxisinquire2 ( type(gt_history_axis), intent(in) axis,
character(*), intent(out), optional name,
integer, intent(out), optional size,
character(*), intent(out), optional longname,
character(*), intent(out), optional units,
character(*), intent(out), optional xtype )

Definition at line 51 of file historyaxisinquire.f90.

53 !
54 ! 使用方法は HistoryAxisInquire と同様です.
55 !
56 ! Usage is same as "HistoryAxisInquire".
57 !
58 !--
59 ! 総称名 Inquire として提供するためのサブルーチンです.
60 ! 機能は HistoryAxisInquire1 と同じです.
61 !++
62 !
63 use dc_trace, only: beginsub, endsub, dbgmessage
65 use gtool_history_generic, only: historyaxisinquire
66 implicit none
67 type(GT_HISTORY_AXIS),intent(in) :: axis
68 character(*) , intent(out), optional:: name ! 次元変数名
69 integer, intent(out), optional:: size ! 次元長 (配列サイズ)
70 character(*) , intent(out), optional:: longname ! 次元変数の記述的名称
71 character(*) , intent(out), optional:: units ! 次元変数の単位
72 character(*) , intent(out), optional:: xtype ! 次元変数の型
73 character(len = *), parameter:: subname = "HistoryAxisInquire2"
74 continue
75 call beginsub(subname)
76 call historyaxisinquire( axis, &
77 & name, size, longname, units, xtype)
78 call endsub(subname)