Constrain I/O range. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gtvarlimit_iiii (var, dimord, start, count, stride, err) |
| subroutine | gtvarlimit (var, string, err) |
| subroutine | limit_one (string) |
Constrain I/O range.
Definition in file gtvarlimit.f90.
| subroutine gtvarlimit | ( | type(gt_variable), intent(inout) | var, |
| character(len = *), intent(in) | string, | ||
| logical, intent(out), optional | err | ||
| ) |
Constrain I/O range (string specification)
Constrains the I/O range of variable var dimensions using range specification expressions in comma notation:
Here, <dim> is a dimension number or name, <lower> and <upper> are coordinate values or grid numbers prefixed with "^", and <stride> is a grid count.
If an error occurs, outputs a message and terminates. If err is provided, returns .true. and does not terminate.
| [in,out] | var | Variable handle |
| [in] | string | Range specification string |
| [out] | err | Error flag (optional) |
Definition at line 213 of file gtvarlimit.f90.
References dc_trace::beginsub(), dc_trace::endsub(), dc_url::gt_comma, gtdata_internal_map::gtvar_dump(), and limit_one().
| subroutine gtvarlimit_iiii | ( | type(gt_variable), intent(inout) | var, |
| integer, intent(in) | dimord, | ||
| integer, intent(in), optional | start, | ||
| integer, intent(in), optional | count, | ||
| integer, intent(in), optional | stride, | ||
| logical, intent(out), optional | err | ||
| ) |
Constrain I/O range (numeric specification)
Constrains the I/O range of variable var dimensions. After calling Limit, Slice cannot set the I/O range outside the constrained range. This allows scanning a portion of the variable using Slice_Next.
The specification limits the dimord-th dimension of var to start point start, total count count, and interval stride.
If an error occurs, outputs a message and terminates. If err is provided, returns .true. and does not terminate.
Limit is a generic name for 2 subroutines; string specification using comma notation is also available.
| [in,out] | var | Variable handle |
| [in] | dimord | Dimension order number |
| [in] | start | Start index (optional) |
| [in] | count | Total grid count (optional) |
| [in] | stride | Interval (optional) |
| [out] | err | Error flag (optional) |
Definition at line 71 of file gtvarlimit.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_trace::endsub(), gtdata_internal_map::map_lookup(), gtdata_internal_map::map_set(), and dc_error::storeerror().
| subroutine gtvarlimit::limit_one | ( | character(len = *), intent(in) | string | ) |
Definition at line 240 of file gtvarlimit.f90.
References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_trace::endsub(), dc_url::gt_circumflex, dc_url::gt_colon, dc_url::gt_equal, dc_types::sp_eps, and dc_types::token.