Exchange dimension order numbers. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gtvarexchdim (var, dimord1, dimord2, count_compact, err) |
Exchange dimension order numbers.
Definition in file gtvarexchdim.f90.
| subroutine gtvarexchdim | ( | type(gt_variable), intent(in) | var, |
| integer, intent(in) | dimord1, | ||
| integer, intent(in) | dimord2, | ||
| logical, intent(in), optional | count_compact, | ||
| logical, intent(out) | err | ||
| ) |
Exchange dimensions at specified order numbers
Exchanges dimensions at dimension order numbers dimord1 and dimord2 in variable var.
If count_compact is .true., operates including degenerate dimensions.
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] | dimord1 | First dimension order number |
| [in] | dimord2 | Second dimension order number |
| [in] | count_compact | Include degenerate dimensions (optional) |
| [out] | err | Error flag |
Definition at line 56 of file gtvarexchdim.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), gtdata_internal_map::dimord_skip_compact(), dc_trace::endsub(), gtdata_internal_map::map_lookup(), gtdata_internal_map::map_set(), and gtdata_internal_map::map_set_ndims().