gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
gtool_history_nmlinfo_types.f90
Go to the documentation of this file.
1!> @file gtool_history_nmlinfo_types.f90
2!>
3!> @author Yasuhiro MORIKAWA
4!> @copyright Copyright (C) GFD Dennou Club, 2007-2026. All rights reserved. <br/>
5!> License is BSD-2-Clause. See [COPYRIGHT](@ref COPYRIGHT) in detail
6!>
7!> @en
8!> @brief Derived data type of "gtool_history_nmlinfo"
9!> @enden
10!>
11!> @ja
12!> @brief gtool_history_nmlinfo から提供される構造データ型
13!> @endja
14
16 !>
17 !> @en
18 !> @brief Derived data type of "gtool_history_nmlinfo"
19 !>
20 !> See gtool_history_nmlinfo for brief of this module.
21 !>
22 !> ### Derived types List
23 !>
24 !> - GTHST_NMLINFO : Derived type that stores information input from NAMELIST.
25 !> This derived type is provided for users.
26 !> - GTHST_NMLINFO_ENTRY : Entry for individual variable in GTHST_NMLINFO.
27 !> This is used internally.
28 !> (Users do not refer this derived type).
29 !> @enden
30 !>
31 !> @ja
32 !> @brief gtool_history_nmlinfo から提供される構造データ型
33 !>
34 !> モジュールの概要については, gtool_history_nmlinfo
35 !> を参照ください.
36 !>
37 !> ### 派生型リスト
38 !>
39 !> - GTHST_NMLINFO : NAMELIST から入力した情報を収めた構造データ型.
40 !> 利用者への提供用.
41 !> - GTHST_NMLINFO_ENTRY : GTHST_NMLINFO 内での個々の変数のためのエントリ.
42 !> 内部用 (利用者は直接参照しない).
43 !> @endja
44 !>
45
46 use gtool_history, only: gt_history
47 use dc_types, only: token, string
48 implicit none
50
52 !
53 ! NAMELIST から取得したヒストリデータの出力情報
54 ! を格納するための構造データ型です.
55 ! まず, gtool_history_nmlinfo_generic::HstNmlInfoCreate
56 ! で "GTHST_NMLINFO" 型の変数を初期設定して下さい.
57 ! 初期設定された "GTHST_NMLINFO" 型の変数を再度利用する際には,
58 ! gtool_history_nmlinfo_generic::HstNmlInfoClose
59 ! によって終了処理を行ってください.
60 !
61 ! This derived type is worked in order to store information about
62 ! data output from NAMELIST.
63 ! Initialize "GTHST_NMLINFO" variable by
64 ! "gtool_history_nmlinfo_generic::HstNmlInfoCreate" before usage.
65 ! If you reuse "GTHST_NMLINFO" variable again for another application,
66 ! terminate by "gtool_history_nmlinfo_generic::HstNmlInfoClose".
67 !
68 logical:: initialized = .false.
69 ! 初期設定フラグ.
70 ! Initialization flag
71 logical:: define_mode = .true.
72 ! 定義状態を表すフラグ.
73 ! Flag that represents define mode
74 type(gthst_nmlinfo_entry), pointer:: gthstnml_list =>null()
75 ! 変数ごとの情報リスト.
76 ! 格納される情報については
77 ! GTHST_NMLINFO_ENTRY を参照のこと.
78 !
79 ! Information list about individual variable
80 ! See "GTHST_NMLINFO_ENTRY"
81 ! about stored information.
82 end type gthst_nmlinfo
83
85 !
86 ! 出力変数ごとの情報を格納するための構造体です.
87 ! この構造体はモジュール内で使用されることを想定しているため,
88 ! モジュール外部からは使用しないでください.
89 !
90 ! Information about individual output variable is stored in
91 ! this derived type.
92 ! It is expected that this derived type is used
93 ! internally, so do not refer from the outside.
94 !
95 character(TOKEN):: name
96 ! 変数名. Variable identifier
97 character(STRING):: file
98 ! ヒストリデータのファイル名.
99 ! History data filenames
100 real, pointer:: interval_value =>null()
101 ! ヒストリデータの出力間隔の数値.
102 ! 負の値を与えると, 出力を抑止します.
103 !
104 ! Numerical value for interval of history data output.
105 ! Negative values suppresses output.
106 character(TOKEN), pointer:: interval_unit =>null()
107 ! ヒストリデータの出力間隔の単位.
108 ! Unit for interval of history data output
109 character(TOKEN), pointer:: precision =>null()
110 ! ヒストリデータの精度.
111 ! Precision of history data
112 logical, pointer:: time_average =>null()
113 ! 出力データの時間平均化フラグ.
114 ! Flag for time average of output data.
115 character(STRING), pointer:: fileprefix =>null()
116 ! ヒストリデータのファイル名の接頭詞.
117 ! Prefixes of history data filenames
118
119 real, pointer:: origin_value =>null()
120 ! 出力開始時刻.
121 ! Start time of output.
122 character(TOKEN), pointer:: origin_unit =>null()
123 ! 出力開始時刻の単位.
124 ! Unit of start time of output.
125 real, pointer:: terminus_value =>null()
126 ! 出力終了時刻.
127 ! End time of output.
128 character(TOKEN), pointer:: terminus_unit =>null()
129 ! 出力終了時刻の単位.
130 ! Unit of end time of output.
131 integer, pointer:: slice_start(:) =>null()
132 ! 空間方向の開始点.
133 ! Start points of spaces.
134 integer, pointer:: slice_end(:) =>null()
135 ! 空間方向の終了点.
136 ! End points of spaces.
137 integer, pointer:: slice_stride(:) =>null()
138 ! 空間方向の刻み幅.
139 ! Strides of spaces.
140 logical, pointer:: space_average(:) =>null()
141 ! 平均化のフラグ.
142 ! Flag of average.
143 integer, pointer:: newfile_intvalue =>null()
144 ! ファイル分割時間間隔.
145 ! Interval of time of separation of a file.
146 character(TOKEN), pointer:: newfile_intunit =>null()
147 ! ファイル分割時間間隔の単位.
148 ! Unit of interval of time of separation of a file.
149
150 logical:: output_step_disable = .false.
151 ! output_step 無効化フラグ.
152 ! "output_step" disable flag
153 logical:: name_invalid = .true.
154 ! 無効な変数名を検知するためのフラグ.
155 ! A flag for detection of invalid variable names
156 type(gt_history), pointer:: history =>null()
157 ! gtool_history モジュール用構造体.
158 ! Derived type for "gtool_history" module
159 type(gthst_nmlinfo_entry), pointer:: next =>null()
160 ! リスト構造のための変数.
161 ! A variable for a list structure
162 end type gthst_nmlinfo_entry
163
Provides kind type parameter values.
Definition dc_types.f90:55
integer, parameter, public token
Character length for word, token
Definition dc_types.f90:128
integer, parameter, public string
Character length for string
Definition dc_types.f90:137