historyaxisinquire.f90
Go to the documentation of this file.
1 != GT_HISTORY_AXIS 変数への問い合わせ
2 != Inquire for a GT_HISTORY_AXIS variable
3 !
4 ! Authors:: Yasuhiro MORIKAWA
5 ! Version:: $Id: historyaxisinquire.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 historyaxisinquire1( axis, &
11  & name, size, longname, units, xtype )
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
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)
47  end subroutine historyaxisinquire1
48 
49  !-------------------------------------------------------------------
50 
51  subroutine historyaxisinquire2( axis, &
52  & name, size, longname, units, xtype)
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
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)
79  end subroutine historyaxisinquire2
type(gt_history), target, save, public default
integer, parameter, public token
単語やキーワードを保持する文字型変数の種別型パラメタ
Definition: dc_types.f90:109
subroutine historyaxisinquire1(axis, name, size, longname, units, xtype)
subroutine historyaxisinquire2(axis, name, size, longname, units, xtype)
integer, parameter, public dp
倍精度実数型変数
Definition: dc_types.f90:83
subroutine, public dbgmessage(fmt, i, r, d, L, n, c1, c2, c3, ca)
Definition: dc_trace.f90:509
subroutine, public beginsub(name, fmt, i, r, d, L, n, c1, c2, c3, ca, version)
Definition: dc_trace.f90:351
種別型パラメタを提供します。
Definition: dc_types.f90:49
subroutine, public endsub(name, fmt, i, r, d, L, n, c1, c2, c3, ca)
Definition: dc_trace.f90:446
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition: dc_types.f90:118