diff options
author | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2014-06-27 22:11:36 (GMT) |
---|---|---|
committer | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2014-06-27 22:11:36 (GMT) |
commit | 83162d7d906266edfb380c5c96adde81e7f04400 (patch) | |
tree | d327591f332f4ea4744c9106c936ef183b146f7c | |
parent | cb0eab825402c931fc65ba7671385706c479ccba (diff) | |
download | hdf5-83162d7d906266edfb380c5c96adde81e7f04400.zip hdf5-83162d7d906266edfb380c5c96adde81e7f04400.tar.gz hdf5-83162d7d906266edfb380c5c96adde81e7f04400.tar.bz2 |
[svn-r25371] Add some more debug info
-rw-r--r-- | src/H5FF.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -5124,6 +5124,18 @@ H5Dquery_ff(hid_t dset_id, hid_t query_id, hid_t scope_id, hid_t rcxt_id) HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "failed to apply query on Dataset") ret_value = udata.space_query; + + { + hsize_t start_coord[H5S_MAX_RANK + 1], end_coord[H5S_MAX_RANK + 1], nelmts; + + if (FAIL == H5Sget_select_bounds(ret_value, start_coord, end_coord)) + HGOTO_ERROR(H5E_DATASPACE, H5E_CANTSELECT, FAIL, "unable to get bounds"); + if (0 == (nelmts = (hsize_t) H5Sget_select_npoints(ret_value))) + HGOTO_ERROR(H5E_DATASPACE, H5E_BADVALUE, FAIL, "invalid number of elements"); + printf("Created dataspace from index with %llu elements [(%llu, %llu):(%llu, %llu)]\n", + nelmts, start_coord[0], start_coord[1], end_coord[0], end_coord[1]); + } + } done: |