Character type attribute input. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gtvargetattrcc (var, name, value, default) |
Character type attribute input.
This subroutine is provided through gtdata_generic.
Definition in file gtvargetattrsc.f90.
| subroutine gtvargetattrcc | ( | type(gt_variable), intent(in) | var, |
| character(len = *), intent(in) | name, | ||
| character(len = *), intent(out) | value, | ||
| character(len = *), intent(in), optional | default ) |
Get character attribute value
When receiving as character type, truncates or pads with blanks to match the receiving variable's length, same as normal character assignment. Uses default value if attribute does not exist.
| [in] | var | Variable handle |
| [in] | name | Attribute name |
| [out] | value | Retrieved attribute value |
| [in] | default | Default value (optional) |
Definition at line 45 of file gtvargetattrsc.f90.
References dc_trace::beginsub(), dc_trace::endsub(), dc_types::string, and gtdata_internal_map::var_class().