Copy attribute. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gtvarcopyattr (to, attrname, from, err) |
Copy attribute.
Definition in file gtvarcopyattr.f90.
| subroutine gtvarcopyattr | ( | type(gt_variable), intent(inout) | to, |
| character(len = *), intent(in) | attrname, | ||
| type(gt_variable), intent(in) | from, | ||
| logical, intent(out), optional | err | ||
| ) |
Copy single attribute from one variable to another
Copies attribute attrname of variable from to variable to. If an error occurs during copying, outputs a message and terminates the program. If err is provided, returns .true. in that argument and program does not terminate.
Copy_Attr is a generic name for 2 subroutines; there is also a method to copy all attributes of a variable at once.
| [in,out] | to | Destination variable handle |
| [in] | attrname | Attribute name to copy |
| [in] | from | Source variable handle |
| [out] | err | Error flag (optional) |
Definition at line 55 of file gtvarcopyattr.f90.
References dc_trace::beginsub(), dc_error::dc_noerr, dc_trace::endsub(), dc_error::storeerror(), dc_types::string, and gtdata_internal_map::var_class().