27 use gtdata_generic,
only: attr_rewind, attr_next,
gtvarcopyattr
28 use dc_present,
only:present_and_true, present_and_false
31 use dc_trace,
only: beginsub, endsub, dbgmessage
35 logical,
intent(out),
optional:: err
36 logical,
intent(in),
optional:: global
37 character(len = *),
parameter:: subnam =
"GTVarCopyAttrAll"
38 character(len = STRING):: aname
41 if (
present(err)) err = .false.
43 call attr_rewind(from)
45 call attr_next(from, aname,
end)
47 if ( (present_and_false(global)) .and. (aname(1:1) == gt_plus) )
then
48 call dbgmessage(
"Ignored attr=%c", c1=aname)
51 call dbgmessage(
"Copied attr=%c", c1=aname)
53 if (present_and_true(err)) err = .false.