Move I/O range. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gtvarslicenext (var, dimord, err, stat) |
Move I/O range.
This subroutine is provided as gtdata_generic#Slice_Next through gtdata_generic.
Definition in file gtvarslicenext.f90.
| subroutine gtvarslicenext | ( | type(gt_variable), intent(inout) | var, |
| integer, intent(in), optional | dimord, | ||
| logical, intent(out), optional | err, | ||
| integer, intent(out), optional | stat ) |
Advance I/O range to next slice
Moves the dimension range by incrementing the start value of the dimord-th dimension of variable var by stride * count. If dimord is omitted, this operation is performed on any dimension. On success, stat becomes 0.
By setting a Slice with start and stride values of 1 for any dimension and sequentially calling Slice_Next, you can scan the entire variable.
If an error occurs while moving the I/O range, outputs a message and terminates the program. If err is provided, returns .true. and program does not terminate.
| [in,out] | var | Variable handle |
| [in] | dimord | Dimension order number (optional) |
| [out] | err | Error flag (optional) |
| [out] | stat | Status (0 on success) (optional) |
Definition at line 63 of file gtvarslicenext.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_error::dc_noerr, dc_trace::endsub(), dc_error::gt_enomoredims, gtdata_internal_map::map_lookup(), gtdata_internal_map::map_set(), and dc_error::storeerror().