11 & name, length, longname, units, xtype)
28 use gtool_history_internal,
only:
default, copy_attrs
29 use dc_trace,
only: beginsub, endsub, dbgmessage
30 use dc_present,
only: present_select
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)
60 & name, length, longname, units, xtype)
71 use gtool_history_generic,
only: historyaxiscopy
72 use dc_trace,
only: beginsub, endsub, dbgmessage
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)
subroutine historyaxiscopy2(axis_dest, axis_src, err, name, length, longname, units, xtype)
subroutine historyaxiscopy1(axis_dest, axis_src, err, name, length, longname, units, xtype)