Add dimension. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gtvaradddim (var, dimord, dimvar, err) |
Add dimension.
Definition in file gtvaradddim.f90.
| subroutine gtvaradddim | ( | type(gt_variable), intent(in) | var, |
| integer, intent(in) | dimord, | ||
| type(gt_variable), intent(in) | dimvar, | ||
| logical, intent(out) | err | ||
| ) |
Add dimension to variable
Adds dimension dimvar at position dimord in variable var. Dimensions at dimord and after shift one position back. If dimord is greater than the number of valid dimensions of var, it is treated as if (valid_dimensions + 1) was given.
If an error occurs, outputs a message and terminates the program. If err is provided, returns .true. and program does not terminate.
| [in] | var | Variable handle |
| [in] | dimord | Dimension order number for insertion |
| [in] | dimvar | Dimension variable to add |
| [out] | err | Error flag |
Definition at line 55 of file gtvaradddim.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_trace::endsub(), gtdata_internal_map::map_lookup(), gtdata_internal_map::map_resize(), gtdata_internal_map::map_set(), and gtdata_internal_map::map_set_ndims().