Copy all attributes. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gtvarcopyattrall (to, from, err, global) |
Copy all attributes.
Definition in file gtvarcopyattrall.f90.
| subroutine gtvarcopyattrall | ( | type(gt_variable), intent(inout) | to, |
| type(gt_variable), intent(inout) | from, | ||
| logical, intent(out), optional | err, | ||
| logical, intent(in), optional | global | ||
| ) |
Copy all attributes from one variable to another
Copies all attributes of variable from to variable to. By default, global attributes are also copied. If global is set to .false., global attributes are not copied.
Copy_Attr is a generic name for 2 subroutines; there is also a method to copy by specifying an attribute.
| [in,out] | to | Destination variable handle |
| [in,out] | from | Source variable handle |
| [out] | err | Error flag (optional) |
| [in] | global | Whether to copy global attributes (optional) |
Definition at line 53 of file gtvarcopyattrall.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_trace::endsub(), dc_url::gt_plus, gtvarcopyattr(), dc_present::present_and_false(), dc_present::present_and_true(), and dc_types::string.