gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
historyaxiscreate.f90
Go to the documentation of this file.
1!> @file historyaxiscreate.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 Constructor of GT_HISTORY_AXIS
9!> @enden
10!>
11!> @ja
12!> @brief GT_HISTORY_AXIS 変数の作成
13!> @endja
14
15!>
16!> @en
17!> @brief Create a GT_HISTORY_AXIS variable
18!>
19!> Creates a GT_HISTORY_AXIS variable.
20!> After setting with this subroutine,
21!> pass it to the axes argument of HistoryCreate.
22!> To add attributes, use HistoryAxisAddAttr.
23!> @param[out] axis Axis information
24!> @param[in] name Dimension variable name
25!> @param[in] size Dimension length (array size)
26!> @param[in] longname Descriptive name of dimension variable
27!> @param[in] units Units of dimension variable
28!> @param[in] xtype Type of dimension variable
29!> @enden
30!>
31!> @ja
32!> @brief GT_HISTORY_AXIS 型変数作成
33!>
34!> GT_HISTORY_AXIS 型変数を作成します。
35!> このサブルーチンによる設定の後、
36!> HistoryCreate の axes に与えます。
37!> さらに属性を付加する場合には HistoryAxisAddAttr
38!> を用いてください。
39!> @param[out] axis 座標軸情報
40!> @param[in] name 次元変数名
41!> @param[in] size 次元長 (配列サイズ)
42!> @param[in] longname 次元変数の記述的名称
43!> @param[in] units 次元変数の単位
44!> @param[in] xtype 次元変数の型
45!> @endja
46!>
47 subroutine historyaxiscreate1( axis, &
48 & name, size, longname, units, xtype)
49 !
50 use dc_trace, only: beginsub, endsub
51 use dc_string, only: cprintft
53 implicit none
54 type(gt_history_axis),intent(out) :: axis
55 character(*) , intent(in):: name ! 次元変数名
56 integer, intent(in):: size ! 次元長 (配列サイズ)
57 character(*) , intent(in):: longname ! 次元変数の記述的名称
58 character(*) , intent(in):: units ! 次元変数の単位
59 character(*) , intent(in):: xtype ! 次元変数の型
60 character(len = *), parameter:: subname = "HistoryAxisCreate1"
61 continue
62 call beginsub(subname)
63 axis % name = cprintft('%c', c1=name)
64 axis % length = size
65 axis % longname = longname
66 axis % units = units
67 axis % xtype = cprintft('%c', c1=xtype)
68 call endsub(subname)
69 end subroutine historyaxiscreate1
70
71!> @en
72 !> @brief Create a GT_HISTORY_AXIS variable (generic interface)
73 !>
74 !> Usage is same as HistoryAxisCreate.
75 !> @enden
76 !> @ja
77 !> @brief GT_HISTORY_AXIS 型変数作成 (総称インターフェース)
78 !>
79 !> 使用方法は HistoryAxisCreate と同様です。
80 !> @endja
81 subroutine historyaxiscreate2( axis, &
82 & name, size, longname, units, xtype)
83 use dc_trace, only: beginsub, endsub
84 use dc_string, only: cprintft
86 implicit none
87 type(gt_history_axis),intent(out) :: axis
88 character(*) , intent(in):: name ! 次元変数名
89 integer, intent(in):: size ! 次元長 (配列サイズ)
90 character(*) , intent(in):: longname ! 次元変数の記述的名称
91 character(*) , intent(in):: units ! 次元変数の単位
92 character(*) , intent(in):: xtype ! 次元変数の型
93 character(len = *), parameter:: subname = "HistoryAxisCreate2"
94 continue
95 call beginsub(subname)
96 axis % name = cprintft('%c', c1=name)
97 axis % length = size
98 axis % longname = longname
99 axis % units = units
100 axis % xtype = cprintft('%c', c1=xtype)
101 call endsub(subname)
102 end subroutine historyaxiscreate2
subroutine historyaxiscreate1(axis, name, size, longname, units, xtype)
subroutine historyaxiscreate2(axis, name, size, longname, units, xtype)
文字型変数の操作
Definition dc_string.f90:83
デバッグ時の追跡用モジュール
Definition dc_trace.f90:150
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
Definition dc_trace.f90:457
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:580