diff options
author | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2014-06-27 07:16:45 (GMT) |
---|---|---|
committer | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2014-06-27 07:16:45 (GMT) |
commit | 439b45a1b66d4a8645c901ec7abe2370a2c91d81 (patch) | |
tree | 70b56b4ef6777b368f3d4a4a8656cbefca5100a7 | |
parent | 2259c8feac26baf4d8baca74ce2f52945732aab1 (diff) | |
download | hdf5-439b45a1b66d4a8645c901ec7abe2370a2c91d81.zip hdf5-439b45a1b66d4a8645c901ec7abe2370a2c91d81.tar.gz hdf5-439b45a1b66d4a8645c901ec7abe2370a2c91d81.tar.bz2 |
[svn-r25363] Add debug output to H5Dquery_ff when index is used
-rw-r--r-- | src/H5FF.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -5064,6 +5064,17 @@ H5Dquery_ff(hid_t dset_id, hid_t query_id, hid_t scope_id, hid_t rcxt_id) if(FAIL == H5D__apply_index_query(idx_handle, idx_class, query_id, xxpl_id, &ret_value)) HGOTO_ERROR(H5E_INDEX, H5E_CANTCLOSEOBJ, FAIL, "cannot query index"); + + { + 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]); + } } else #endif |