Constructor of GT_HISTORY_VARINFO . More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | historyvarinfocreate1 (varinfo, name, dims, longname, units, xtype, time_average, average, err) |
| subroutine | historyvarinfocreate2 (varinfo, name, dims, longname, units, xtype, time_average, average, err) |
Constructor of GT_HISTORY_VARINFO
.
Definition in file historyvarinfocreate.f90.
| subroutine historyvarinfocreate1 | ( | type(gt_history_varinfo), intent(inout) | varinfo, |
| character(*), intent(in) | name, | ||
| character(*), dimension(:), intent(in) | dims, | ||
| character(*), intent(in) | longname, | ||
| character(*), intent(in) | units, | ||
| character(*), intent(in), optional | xtype, | ||
| logical, intent(in), optional | time_average, | ||
| logical, intent(in), optional | average, | ||
| logical, intent(out), optional | err ) |
Create a GT_HISTORY_VARINFO variable
Creates a GT_HISTORY_VARINFO variable. After setting with this subroutine, pass it to the varinfo argument of HistoryAddVariable. To add attributes, use HistoryVarinfoAddAttr.
| [in,out] | varinfo | Variable information |
| [in] | name | Variable name |
| [in] | dims | Dependent dimensions |
| [in] | longname | Descriptive name |
| [in] | units | Units |
| [in] | xtype | Variable type (optional) |
| [in] | time_average | Time average flag (optional) |
| [in] | average | Time average flag (optional, backward compatibility) |
| [out] | err | Error flag (optional) |
Definition at line 53 of file historyvarinfocreate.f90.
References dc_trace::beginsub(), dc_error::dc_ealreadyinit, dc_error::dc_noerr, dc_trace::endsub(), dc_error::storeerror(), dc_types::string, and dc_types::token.
| subroutine historyvarinfocreate2 | ( | type(gt_history_varinfo), intent(inout) | varinfo, |
| character(*), intent(in) | name, | ||
| character(*), dimension(:), intent(in) | dims, | ||
| character(*), intent(in) | longname, | ||
| character(*), intent(in) | units, | ||
| character(*), intent(in), optional | xtype, | ||
| logical, intent(in), optional | time_average, | ||
| logical, intent(in), optional | average, | ||
| logical, intent(out), optional | err ) |
Create a GT_HISTORY_VARINFO variable (generic interface)
Usage is same as HistoryVarinfoCreate.
Definition at line 140 of file historyvarinfocreate.f90.
References dc_trace::beginsub(), and dc_trace::endsub().