Copy a GT_HISTORY_VARINFO variable . More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | historyvarinfocopy1 (varinfo_dest, varinfo_src, err, name, dims, longname, units, xtype) |
| subroutine | historyvarinfocopy2 (varinfo_dest, varinfo_src, err, name, dims, longname, units, xtype) |
Copy a GT_HISTORY_VARINFO variable
.
Definition in file historyvarinfocopy.f90.
| subroutine historyvarinfocopy1 | ( | type(gt_history_varinfo), intent(out) | varinfo_dest, |
| type(gt_history_varinfo), intent(in) | varinfo_src, | ||
| logical, intent(out), optional | err, | ||
| character(*), intent(in), optional | name, | ||
| character(*), dimension(:), intent(in), optional, target | dims, | ||
| character(*), intent(in), optional | longname, | ||
| character(*), intent(in), optional | units, | ||
| character(*), intent(in), optional | xtype ) |
Copy a GT_HISTORY_VARINFO variable
Copies varinfo_src to varinfo_dest. varinfo_src must be initialized by HistoryVarinfoCreate. Use HistoryVarinfoAddAttr to add further attributes. If err is given, the program does not abort on error; instead err is set to .true. Arguments after err are override values applied during the copy.
| [out] | varinfo_dest | Destination GT_HISTORY_VARINFO variable |
| [in] | varinfo_src | Source GT_HISTORY_VARINFO variable |
| [out] | err | Exception handling flag (optional) |
| [in] | name | Variable name override (optional) |
| [in] | dims | Dependent dimensions override (optional) |
| [in] | longname | Descriptive name override (optional) |
| [in] | units | Units override (optional) |
| [in] | xtype | Type override (optional) |
Definition at line 52 of file historyvarinfocopy.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_error::dc_ealreadyinit, dc_error::dc_enotinit, dc_error::dc_noerr, dc_trace::endsub(), dc_string::joinchar(), dc_error::storeerror(), dc_types::string, and dc_types::token.
| subroutine historyvarinfocopy2 | ( | type(gt_history_varinfo), intent(out) | varinfo_dest, |
| type(gt_history_varinfo), intent(in) | varinfo_src, | ||
| logical, intent(out), optional | err, | ||
| character(*), intent(in), optional | name, | ||
| character(*), dimension(:), intent(in), optional, target | dims, | ||
| character(*), intent(in), optional | longname, | ||
| character(*), intent(in), optional | units, | ||
| character(*), intent(in), optional | xtype ) |
Definition at line 129 of file historyvarinfocopy.f90.
References dc_trace::beginsub(), and dc_trace::endsub().