gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
Functions/Subroutines
historyaxiscreate.f90 File Reference

Constructor of GT_HISTORY_AXIS . More...

Go to the source code of this file.

Functions/Subroutines

subroutine historyaxiscreate1 (axis, name, size, longname, units, xtype)
 
subroutine historyaxiscreate2 (axis, name, size, longname, units, xtype)
 

Detailed Description

Constructor of GT_HISTORY_AXIS

.

Author
Yasuhiro MORIKAWA

Definition in file historyaxiscreate.f90.

Function/Subroutine Documentation

◆ historyaxiscreate1()

subroutine historyaxiscreate1 ( type(gt_history_axis), intent(out)  axis,
character(*), intent(in)  name,
integer, intent(in)  size,
character(*), intent(in)  longname,
character(*), intent(in)  units,
character(*), intent(in)  xtype 
)

Create a GT_HISTORY_AXIS variable

Creates a GT_HISTORY_AXIS variable. After setting with this subroutine, pass it to the axes argument of HistoryCreate. To add attributes, use HistoryAxisAddAttr.

Parameters
[out]axisAxis information
[in]nameDimension variable name
[in]sizeDimension length (array size)
[in]longnameDescriptive name of dimension variable
[in]unitsUnits of dimension variable
[in]xtypeType of dimension variable

Definition at line 47 of file historyaxiscreate.f90.

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)
Handling character types.
Definition dc_string.f90:83
Debug tracing module.
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

References dc_trace::beginsub(), and dc_trace::endsub().

Here is the call graph for this function:

◆ historyaxiscreate2()

subroutine historyaxiscreate2 ( type(gt_history_axis), intent(out)  axis,
character(*), intent(in)  name,
integer, intent(in)  size,
character(*), intent(in)  longname,
character(*), intent(in)  units,
character(*), intent(in)  xtype 
)

Create a GT_HISTORY_AXIS variable (generic interface)

Usage is same as HistoryAxisCreate.

Definition at line 81 of file historyaxiscreate.f90.

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)

References dc_trace::beginsub(), and dc_trace::endsub().

Here is the call graph for this function: