Logical type attribute input. More...
Go to the source code of this file.
Functions/Subroutines | |
| logical function | gtvarattrtrue (var, name, default) |
Logical type attribute input.
Definition in file gtvarattrtrue.f90.
| logical function gtvarattrtrue | ( | type(gt_variable), intent(in) | var, |
| character(len = *), intent(in) | name, | ||
| logical, intent(in), optional | default | ||
| ) |
Get attribute as logical value
Returns the value of attribute name attached to variable var. Can only be used when the attribute value is a logical type attribute.
Returns .false. in the following cases:
If the attribute value cannot be retrieved normally and default is provided, that value is returned. If default is not provided, .false. is returned.
| [in] | var | Variable handle |
| [in] | name | Attribute name |
| [in] | default | Default value (optional) |
Definition at line 62 of file gtvarattrtrue.f90.
References dc_error::gt_enotvar, dc_error::storeerror(), and gtdata_internal_map::var_class().