diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2015-04-29 03:22:55 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2015-04-29 03:22:55 (GMT) |
commit | a9b2e360653988b417f390e0a66d486fa775f3a2 (patch) | |
tree | a80cb2c83dab88061999f05911ae6b98ea3f4cdc /src/H5Sselect.c | |
parent | f3f74731619798b8e802987b01266348f1fbc027 (diff) | |
download | hdf5-a9b2e360653988b417f390e0a66d486fa775f3a2.zip hdf5-a9b2e360653988b417f390e0a66d486fa775f3a2.tar.gz hdf5-a9b2e360653988b417f390e0a66d486fa775f3a2.tar.bz2 |
[svn-r26962] Add support for unlimited selections to VDS code.
Not tested (except for percival-unlim example)
Fix percival-unlim example
Other bug fixes/cleanup
Tested: Fedora 64
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r-- | src/H5Sselect.c | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c index 52273c7..b22ea64 100644 --- a/src/H5Sselect.c +++ b/src/H5Sselect.c @@ -81,7 +81,7 @@ H5S_select_offset(H5S_t *space, const hssize_t *offset) /* If the selection is 'hyper', update the selection due to changed offset */ if(H5S_GET_SELECT_TYPE(space) == H5S_SEL_HYPERSLABS) - if(H5S__hyper_update_extent_offset(space) < 0) + if(H5S_hyper_clip_to_extent(space) < 0) HGOTO_ERROR(H5E_DATASPACE, H5E_CANTSET, FAIL, "can't update hyperslab") done: @@ -699,6 +699,44 @@ H5S_get_select_offset(const H5S_t *space, hsize_t *offset) /*-------------------------------------------------------------------------- NAME + H5S_get_select_unlim_dim + PURPOSE + Gets the unlimited dimension in the selection, or -1 if there is no + unlimited dimension. + USAGE + int H5S_get_select_unlim_dim(space) + const H5S_t *space; IN: Dataspace pointer of selection to query + RETURNS + Unlimited dimension in the selection, or -1 if there is no unlimited + dimension (never fails) + DESCRIPTION + Gets the unlimited dimension in the selection, or -1 if there is no + unlimited dimension. + GLOBAL VARIABLES + COMMENTS, BUGS, ASSUMPTIONS + Currently only implemented for hyperslab selections, all others + simply return -1. + EXAMPLES + REVISION LOG +--------------------------------------------------------------------------*/ +int +H5S_get_select_unlim_dim(const H5S_t *space) +{ + herr_t ret_value; /* return value */ + + FUNC_ENTER_NOAPI_NOINIT_NOERR + + /* Check args */ + HDassert(space); + + ret_value = (*space->select.type->unlim_dim)(space); + + FUNC_LEAVE_NOAPI(ret_value) +} /* H5S_get_select_unlim_dim() */ + + +/*-------------------------------------------------------------------------- + NAME H5S_select_is_contiguous PURPOSE Determines if a selection is contiguous in the dataspace |