Go to the source code of this file.
◆ gtvarcopyattrall()
subroutine gtvarcopyattrall |
( |
type(gt_variable), intent(inout) |
to, |
|
|
type(gt_variable), intent(inout) |
from, |
|
|
logical, intent(out), optional |
err, |
|
|
logical, intent(in), optional |
global |
|
) |
| |
Definition at line 14 of file gtvarcopyattrall.f90.
References dc_url::gt_plus, gtvarcopyattr(), and dc_types::string.
28 use dc_present
,only:present_and_true, present_and_false
31 use dc_trace
, only: beginsub, endsub, dbgmessage
33 type(gt_variable),
intent(inout):: to
34 type(gt_variable),
intent(inout):: from
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.
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.
character, parameter, public gt_plus
subroutine gtvarcopyattr(to, attrname, from, err)
Provides kind type parameter values.
integer, parameter, public string
Character length for string.