Loading...
Searching...
No Matches
historyaxiscreate.f90
Go to the documentation of this file.
1!= GT_HISTORY_AXIS 変数の作成
2!= Constructor of GT_HISTORY_AXIS
3!
4! Authors:: Yasuhiro MORIKAWA
5! Version:: $Id: historyaxiscreate.f90,v 1.2 2009-05-25 09:45:20 morikawa Exp $
6! Tag Name:: $Name: $
7! Copyright:: Copyright (C) GFD Dennou Club, 2000-2009. All rights reserved.
8! License:: See COPYRIGHT[link:../../../COPYRIGHT]
9!
10 subroutine historyaxiscreate1( axis, &
11 & name, size, longname, units, xtype)
12 !
13 !== GT_HISTORY_AXIS 型変数作成
14 !
15 ! GT_HISTORY_AXIS 型変数を作成します。
16 ! このサブルーチンによる設定の後、
17 ! HistoryCreate の *axes* に与えます。
18 ! さらに属性を付加する場合には HistoryAxisAddAttr
19 ! を用いてください。
20 !
21 ! Constructor of GT_HISTORY_AXIS
22 !
23 use dc_types, only: string, token, dp
24 use dc_trace, only: beginsub, endsub, dbgmessage
26 use gtool_history_internal, only: default
27 implicit none
28 type(gt_history_axis),intent(out) :: axis
29 character(*) , intent(in):: name ! 次元変数名
30 integer, intent(in):: size ! 次元長 (配列サイズ)
31 character(*) , intent(in):: longname ! 次元変数の記述的名称
32 character(*) , intent(in):: units ! 次元変数の単位
33 character(*) , intent(in):: xtype ! 次元変数の型
34 character(len = *), parameter:: subname = "HistoryAxisCreate1"
35 continue
36 call beginsub(subname)
37 axis % name = name
38 axis % length = size
39 axis % longname = longname
40 axis % units = units
41 axis % xtype = xtype
42 call endsub(subname)
43 end subroutine historyaxiscreate1
44
45 subroutine historyaxiscreate2( axis, &
46 & name, size, longname, units, xtype)
47 !
48 ! 使用方法は HistoryAxisCreate と同様です.
49 !
50 ! Usage is same as "HistoryAxisCreate".
51 !
52 !--
53 ! 総称名 Create として提供するためのサブルーチンです.
54 ! 機能は HistoryAxisCreate1 と同じです.
55 !++
56 use dc_types, only: string, token, dp
57 use dc_trace, only: beginsub, endsub, dbgmessage
59 use gtool_history_internal, only: default
60 implicit none
61 type(gt_history_axis),intent(out) :: axis
62 character(*) , intent(in):: name ! 次元変数名
63 integer, intent(in):: size ! 次元長 (配列サイズ)
64 character(*) , intent(in):: longname ! 次元変数の記述的名称
65 character(*) , intent(in):: units ! 次元変数の単位
66 character(*) , intent(in):: xtype ! 次元変数の型
67 character(len = *), parameter:: subname = "HistoryAxisCreate2"
68 continue
69 call beginsub(subname)
70 axis % name = name
71 axis % length = size
72 axis % longname = longname
73 axis % units = units
74 axis % xtype = xtype
75 call endsub(subname)
76 end subroutine historyaxiscreate2
subroutine historyaxiscreate1(axis, name, size, longname, units, xtype)
subroutine historyaxiscreate2(axis, name, size, longname, units, xtype)
Provides kind type parameter values.
Definition dc_types.f90:49
integer, parameter, public token
Character length for word, token
Definition dc_types.f90:109
integer, parameter, public string
Character length for string
Definition dc_types.f90:118
integer, parameter, public dp
Double Precision Real number
Definition dc_types.f90:83
type(gt_history), target, save default