Variable attribute retrieval. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gtvarattrrewind (var) |
| subroutine | gtvarattrnext (var, name, end) |
Variable attribute retrieval.
These subroutines are provided through gtdata_generic.
Definition in file gtvarattrsearch.f90.
| subroutine gtvarattrnext | ( | type(gt_variable), intent(inout), target | var, |
| character(len = *), intent(out) | name, | ||
| logical, intent(out), optional | end ) |
Get attribute list from variable (get next)
See Attr_Rewind.
| [in,out] | var | Variable handle |
| [out] | name | Attribute name |
| [out] | end | .true. when all attributes have been enumerated (optional) |
Definition at line 97 of file gtvarattrsearch.f90.
References gtdata_internal_map::var_class().
| subroutine gtvarattrrewind | ( | type(gt_variable), intent(inout), target | var | ) |
Get attribute list from variable (initialization)
Subroutine used to get a list of attribute names from var. You can get the attribute list using this subroutine and Attr_Next.
To enumerate all attributes for a variable var, first call Attr_Rewind, then call Attr_Next. The first call returns the first attribute, the next call returns the next attribute name. After the last attribute, end == .true..
Example:
| [in,out] | var | Variable handle |
Definition at line 62 of file gtvarattrsearch.f90.
References gtdata_internal_map::var_class().