gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
historyautoputaxis.f90
Go to the documentation of this file.
1!--
2! *** Caution!! ***
3!
4! This file is generated from "historyautoputaxis.rb2f90" by Ruby 3.3.8.
5! Please do not edit this file directly.
6!
7! [JAPANESE]
8!
9! ※※※ 注意!!! ※※※
10!
11! このファイルは "historyautoputaxis.rb2f90" から Ruby 3.3.8
12! によって自動生成されたファイルです.
13! このファイルを直接編集しませんようお願い致します.
14!
15!
16!++
17!> @file historyautoputaxis.f90
18!>
19!> @author Yasuhiro MORIKAWA
20!> @copyright Copyright (C) GFD Dennou Club, 2008-2026. All rights reserved. <br/>
21!> License is BSD-2-Clause. See [COPYRIGHT](@ref COPYRIGHT) in detail
22!>
23!> @en
24!> @brief Settings of data of axes
25!> @enden
26!>
27!> @ja
28!> @brief 座標データの設定
29!> @endja
30
31 !> @en
32 !> @brief Set data of an axis.
33 !>
34 !> @param[in] dim Name of axis.
35 !> Note that this value must be set
36 !> as *dims* of HistoryAutoCreate.
37 !> @param[in] array Data of axis.
38 !> Integer, single or double precision are
39 !> acceptable as data type.
40 !> Note that when this is output to a file,
41 !> data type is converted into *xtypes*
42 !> specified in HistoryAutoCreate.
43 !> @enden
44 !>
45 !> @ja
46 !> @brief 座標データを設定します.
47 !>
48 !> @param[in] dim 座標の名称.
49 !> ただし, ここで指定するものは,
50 !> HistoryAutoCreate の *dims* で
51 !> 既に指定されていなければなりません.
52 !> @param[in] array 座標データ.
53 !> データ型は整数, 単精度実数型,
54 !> 倍精度実数型のどれでもかまいません.
55 !> ただし, ファイルへ出力される際には,
56 !> HistoryAutoCreate の *xtypes* で指定した
57 !> データ型へ変換されます.
58 !> @endja
60 & dim, array & ! (in)
61 & )
63 use gtool_history, only: historyaxisinquire, historyaxisaddattr, &
64 & historyvarinfocreate
65 use dc_trace, only: beginsub, endsub
66 use dc_error, only: storeerror, dc_noerr, &
68 use dc_types, only: string
69
70 implicit none
71 character(*), intent(in):: dim
72 ! 座標の名称.
73 !
74 ! ただし, ここで指定するもの
75 ! は, HistoryAutoCreate の *dims*
76 ! 既に指定されていなければなりません.
77 !
78 ! Name of axis.
79 !
80 ! Note that this value must be set
81 ! as "dims" of "HistoryAutoCreate".
82 !
83 real, intent(in):: array(:)
84 ! 座標データ
85 !
86 ! データ型は整数, 単精度実数型,
87 ! 倍精度実数型のどれでもかまいません.
88 ! ただし, ファイルへ出力される際には,
89 ! HistoryAutoCreate の *xtypes* で指定した
90 ! データ型へ変換されます.
91 !
92 ! Data of axis
93 !
94 ! Integer, single or double precision are
95 ! acceptable as data type.
96 ! Note that when this is output to a file,
97 ! data type is converted into "xtypes"
98 ! specified in "HistoryAutoCreate"
99 !
100
101 character(STRING):: name
102 integer:: stat, i
103 character(STRING):: cause_c
104 character(*), parameter:: subname = "HistoryAutoPutAxisReal"
105 continue
106 call beginsub(subname, 'dim=<%c>', c1=trim(dim) )
107 stat = dc_noerr
108 cause_c = ""
109
110 ! 初期設定チェック
111 ! Check initialization
112 !
113 if ( .not. initialized ) then
114 stat = dc_enotinit
115 cause_c = 'gtool_historyauto'
116 goto 999
117 end if
118
119 do i = 1, numdims
120 call historyaxisinquire( &
121 & axis = gthst_axes(i), & ! (in)
122 & name = name ) ! (out)
123 if ( trim(dim) == trim(name) ) then
124 data_axes(i) % a_axis = array
125 goto 999
126 end if
127 end do
128
129 stat = hst_enoaxisname
130 cause_c = dim
131
132999 continue
133 call storeerror(stat, subname, cause_c = cause_c)
134 call endsub(subname)
135 end subroutine historyautoputaxisreal
136
137
138
139 !> @en
140 !> @brief Set data of an axis.
141 !>
142 !> @param[in] dim Name of axis.
143 !> Note that this value must be set
144 !> as *dims* of HistoryAutoCreate.
145 !> @param[in] array Data of axis.
146 !> Integer, single or double precision are
147 !> acceptable as data type.
148 !> Note that when this is output to a file,
149 !> data type is converted into *xtypes*
150 !> specified in HistoryAutoCreate.
151 !> @enden
152 !>
153 !> @ja
154 !> @brief 座標データを設定します.
155 !>
156 !> @param[in] dim 座標の名称.
157 !> ただし, ここで指定するものは,
158 !> HistoryAutoCreate の *dims* で
159 !> 既に指定されていなければなりません.
160 !> @param[in] array 座標データ.
161 !> データ型は整数, 単精度実数型,
162 !> 倍精度実数型のどれでもかまいません.
163 !> ただし, ファイルへ出力される際には,
164 !> HistoryAutoCreate の *xtypes* で指定した
165 !> データ型へ変換されます.
166 !> @endja
168 & dim, array & ! (in)
169 & )
171 use gtool_history, only: historyaxisinquire, historyaxisaddattr, &
172 & historyvarinfocreate
173 use dc_trace, only: beginsub, endsub
174 use dc_error, only: storeerror, dc_noerr, &
176 use dc_types, only: string, dp
177
178 implicit none
179 character(*), intent(in):: dim
180 ! 座標の名称.
181 !
182 ! ただし, ここで指定するもの
183 ! は, HistoryAutoCreate の *dims*
184 ! 既に指定されていなければなりません.
185 !
186 ! Name of axis.
187 !
188 ! Note that this value must be set
189 ! as "dims" of "HistoryAutoCreate".
190 !
191 real(DP), intent(in):: array(:)
192 ! 座標データ
193 !
194 ! データ型は整数, 単精度実数型,
195 ! 倍精度実数型のどれでもかまいません.
196 ! ただし, ファイルへ出力される際には,
197 ! HistoryAutoCreate の *xtypes* で指定した
198 ! データ型へ変換されます.
199 !
200 ! Data of axis
201 !
202 ! Integer, single or double precision are
203 ! acceptable as data type.
204 ! Note that when this is output to a file,
205 ! data type is converted into "xtypes"
206 ! specified in "HistoryAutoCreate"
207 !
208
209 character(STRING):: name
210 integer:: stat, i
211 character(STRING):: cause_c
212 character(*), parameter:: subname = "HistoryAutoPutAxisDouble"
213 continue
214 call beginsub(subname, 'dim=<%c>', c1=trim(dim) )
215 stat = dc_noerr
216 cause_c = ""
217
218 ! 初期設定チェック
219 ! Check initialization
220 !
221 if ( .not. initialized ) then
222 stat = dc_enotinit
223 cause_c = 'gtool_historyauto'
224 goto 999
225 end if
226
227 do i = 1, numdims
228 call historyaxisinquire( &
229 & axis = gthst_axes(i), & ! (in)
230 & name = name ) ! (out)
231 if ( trim(dim) == trim(name) ) then
232 data_axes(i) % a_axis = array
233 goto 999
234 end if
235 end do
236
237 stat = hst_enoaxisname
238 cause_c = dim
239
240999 continue
241 call storeerror(stat, subname, cause_c = cause_c)
242 call endsub(subname)
243 end subroutine historyautoputaxisdouble
244
245
246
247 !> @en
248 !> @brief Set data of an axis.
249 !>
250 !> @param[in] dim Name of axis.
251 !> Note that this value must be set
252 !> as *dims* of HistoryAutoCreate.
253 !> @param[in] array Data of axis.
254 !> Integer, single or double precision are
255 !> acceptable as data type.
256 !> Note that when this is output to a file,
257 !> data type is converted into *xtypes*
258 !> specified in HistoryAutoCreate.
259 !> @enden
260 !>
261 !> @ja
262 !> @brief 座標データを設定します.
263 !>
264 !> @param[in] dim 座標の名称.
265 !> ただし, ここで指定するものは,
266 !> HistoryAutoCreate の *dims* で
267 !> 既に指定されていなければなりません.
268 !> @param[in] array 座標データ.
269 !> データ型は整数, 単精度実数型,
270 !> 倍精度実数型のどれでもかまいません.
271 !> ただし, ファイルへ出力される際には,
272 !> HistoryAutoCreate の *xtypes* で指定した
273 !> データ型へ変換されます.
274 !> @endja
276 & dim, array & ! (in)
277 & )
279 use gtool_history, only: historyaxisinquire, historyaxisaddattr, &
280 & historyvarinfocreate
281 use dc_trace, only: beginsub, endsub
282 use dc_error, only: storeerror, dc_noerr, &
284 use dc_types, only: string
285
286 implicit none
287 character(*), intent(in):: dim
288 ! 座標の名称.
289 !
290 ! ただし, ここで指定するもの
291 ! は, HistoryAutoCreate の *dims*
292 ! 既に指定されていなければなりません.
293 !
294 ! Name of axis.
295 !
296 ! Note that this value must be set
297 ! as "dims" of "HistoryAutoCreate".
298 !
299 integer, intent(in):: array(:)
300 ! 座標データ
301 !
302 ! データ型は整数, 単精度実数型,
303 ! 倍精度実数型のどれでもかまいません.
304 ! ただし, ファイルへ出力される際には,
305 ! HistoryAutoCreate の *xtypes* で指定した
306 ! データ型へ変換されます.
307 !
308 ! Data of axis
309 !
310 ! Integer, single or double precision are
311 ! acceptable as data type.
312 ! Note that when this is output to a file,
313 ! data type is converted into "xtypes"
314 ! specified in "HistoryAutoCreate"
315 !
316
317 character(STRING):: name
318 integer:: stat, i
319 character(STRING):: cause_c
320 character(*), parameter:: subname = "HistoryAutoPutAxisInt"
321 continue
322 call beginsub(subname, 'dim=<%c>', c1=trim(dim) )
323 stat = dc_noerr
324 cause_c = ""
325
326 ! 初期設定チェック
327 ! Check initialization
328 !
329 if ( .not. initialized ) then
330 stat = dc_enotinit
331 cause_c = 'gtool_historyauto'
332 goto 999
333 end if
334
335 do i = 1, numdims
336 call historyaxisinquire( &
337 & axis = gthst_axes(i), & ! (in)
338 & name = name ) ! (out)
339 if ( trim(dim) == trim(name) ) then
340 data_axes(i) % a_axis = array
341 goto 999
342 end if
343 end do
344
345 stat = hst_enoaxisname
346 cause_c = dim
347
348999 continue
349 call storeerror(stat, subname, cause_c = cause_c)
350 call endsub(subname)
351 end subroutine historyautoputaxisint
352
353
354!--
355! vi:set readonly sw=4 ts=8:
356!
357!Local Variables:
358!mode: f90
359!buffer-read-only: t
360!End:
361!
362!++
subroutine historyautoputaxisdouble(dim, array)
subroutine historyautoputaxisreal(dim, array)
subroutine historyautoputaxisint(dim, array)
エラー処理用モジュール
Definition dc_error.f90:454
subroutine, public storeerror(number, where, err, cause_c, cause_i)
Definition dc_error.f90:891
integer, parameter, public dc_enotinit
-400 以下: dc ユーティリティのエラー
Definition dc_error.f90:534
integer, parameter, public hst_enoaxisname
Definition dc_error.f90:565
integer, parameter, public dc_noerr
エラー等を保持
Definition dc_error.f90:468
デバッグ時の追跡用モジュール
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
種別型パラメタを提供します。
Definition dc_types.f90:55
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition dc_types.f90:137
integer, parameter, public dp
倍精度実数型変数
Definition dc_types.f90:92
type(gt_history_axis), dimension(1:nf90_max_dims), target, save, public gthst_axes
type(gt_history_axis_data), dimension(1:nf90_max_dims), target, save, public data_axes