Functions/Subroutines
historyaxisclear.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine historyaxisclear (axis)
 

Function/Subroutine Documentation

◆ historyaxisclear()

subroutine historyaxisclear ( type(gt_history_axis), intent(inout)  axis)

Definition at line 11 of file historyaxisclear.f90.

References dc_types::dp, dc_types::string, and dc_types::token.

11  !
12  !== GT_HISTORY_AXIS 型変数初期化
13  !
14  ! *axis* で与えられた変数を HistoryAxisCreate による初期設定よりも
15  ! さらに前の状態に初期化します。
16  !
17  ! Destructor of GT_HISTORY_AXIS
18  !
19  use gtool_history_types, only: gt_history, gt_history_axis, gt_history_varinfo, gt_history_attr
20  use gtool_history_internal, only: default
21  use dc_trace, only: beginsub, endsub, dbgmessage
22  use dc_types, only: string, token, dp
23  implicit none
24  type(gt_history_axis),intent(inout) :: axis
25  character(len = *), parameter:: subname = "HistoryAxisClear1"
26  call beginsub(subname)
27  axis % name = ""
28  axis % length = 0
29  axis % longname = ""
30  axis % units = ""
31  axis % xtype = ""
32  if (associated(axis % attrs)) then
33  deallocate(axis % attrs)
34  end if
35  call endsub(subname)
integer, parameter, public token
Character length for word, token.
Definition: dc_types.f90:109
integer, parameter, public dp
Double Precision Real number.
Definition: dc_types.f90:83
Provides kind type parameter values.
Definition: dc_types.f90:49
integer, parameter, public string
Character length for string.
Definition: dc_types.f90:118