Go to the source code of this file.
|
subroutine | historyaxiscopy1 (axis_dest, axis_src, err, name, length, longname, units, xtype) |
|
subroutine | historyaxiscopy2 (axis_dest, axis_src, err, name, length, longname, units, xtype) |
|
◆ historyaxiscopy1()
subroutine historyaxiscopy1 |
( |
type(gt_history_axis), intent(out) |
axis_dest, |
|
|
type(gt_history_axis), intent(in) |
axis_src, |
|
|
logical, intent(out), optional |
err, |
|
|
character(*), intent(in), optional |
name, |
|
|
integer, intent(in), optional |
length, |
|
|
character(*), intent(in), optional |
longname, |
|
|
character(*), intent(in), optional |
units, |
|
|
character(*), intent(in), optional |
xtype |
|
) |
| |
Definition at line 12 of file historyaxiscopy.f90.
27 use gtool_history_types, only: gt_history, gt_history_axis, gt_history_varinfo, gt_history_attr
28 use gtool_history_internal
, only: default, copy_attrs
29 use dc_trace
, only: beginsub, endsub, dbgmessage
30 use dc_present
,only: present_select
32 type(gt_history_axis),
intent(out) :: axis_dest
33 type(gt_history_axis),
intent(in) :: axis_src
34 logical,
intent(out),
optional :: err
35 character(*) ,
intent(in),
optional:: name
36 integer,
intent(in),
optional:: length
37 character(*) ,
intent(in),
optional:: longname
38 character(*) ,
intent(in),
optional:: units
39 character(*) ,
intent(in),
optional:: xtype
40 character(*),
parameter:: subname =
"HistoryAxisCopy1" 42 call beginsub(subname)
43 axis_dest % name = present_select(
'', axis_src % name, name)
44 axis_dest % length = present_select(.false., axis_src % length, length)
45 axis_dest % longname = present_select(
'', axis_src % longname, longname)
46 axis_dest % units = present_select(
'', axis_src % units, units)
47 axis_dest % xtype = present_select(
'', axis_src % xtype, xtype)
49 if (
associated( axis_src % attrs ) )
then 50 allocate( axis_dest % attrs(
size( axis_src % attrs) ) )
51 call copy_attrs( from = axis_src % attrs, &
52 & to = axis_dest % attrs, err = err)
◆ historyaxiscopy2()
subroutine historyaxiscopy2 |
( |
type(gt_history_axis), intent(out) |
axis_dest, |
|
|
type(gt_history_axis), intent(in) |
axis_src, |
|
|
logical, intent(out), optional |
err, |
|
|
character(*), intent(in), optional |
name, |
|
|
integer, intent(in), optional |
length, |
|
|
character(*), intent(in), optional |
longname, |
|
|
character(*), intent(in), optional |
units, |
|
|
character(*), intent(in), optional |
xtype |
|
) |
| |
Definition at line 61 of file historyaxiscopy.f90.
70 use gtool_history_types, only: gt_history, gt_history_axis, gt_history_varinfo, gt_history_attr
71 use gtool_history_generic
, only: historyaxiscopy
72 use dc_trace
, only: beginsub, endsub, dbgmessage
74 type(gt_history_axis),
intent(out) :: axis_dest
75 type(gt_history_axis),
intent(in) :: axis_src
76 logical,
intent(out),
optional :: err
77 character(*) ,
intent(in),
optional:: name
78 integer,
intent(in),
optional:: length
79 character(*) ,
intent(in),
optional:: longname
80 character(*) ,
intent(in),
optional:: units
81 character(*) ,
intent(in),
optional:: xtype
82 character(*),
parameter:: subname =
"HistoryAxisCopy2" 84 call beginsub(subname)
85 call historyaxiscopy(axis_dest, axis_src, err, &
86 & name, length, longname, units, xtype)