Commit 5b596ed1 authored by Shane Snyder's avatar Shane Snyder
Browse files

Merge branch 'snyder/dev-issue315-hdf5-selections' into 'master'

only call HDF5 hyperslab functions on hyperslab selections

Closes #315

See merge request !107
parents 141e2fa6 39dce232
......@@ -654,7 +654,7 @@ herr_t DARSHAN_DECL(H5Dread)(hid_t dataset_id, hid_t mem_type_id, hid_t mem_spac
rec_ref->dataset_rec->counters[H5D_REGULAR_HYPERSLAB_SELECTS] += 1;
else if(file_sel_type == H5S_SEL_POINTS)
rec_ref->dataset_rec->counters[H5D_POINT_SELECTS] += 1;
else
else if (file_sel_type == H5S_SEL_HYPERSLABS)
{
if(H5Sis_regular_hyperslab(file_space_id))
{
......@@ -775,7 +775,7 @@ herr_t DARSHAN_DECL(H5Dwrite)(hid_t dataset_id, hid_t mem_type_id, hid_t mem_spa
rec_ref->dataset_rec->counters[H5D_REGULAR_HYPERSLAB_SELECTS] += 1;
else if(file_sel_type == H5S_SEL_POINTS)
rec_ref->dataset_rec->counters[H5D_POINT_SELECTS] += 1;
else
else if (file_sel_type == H5S_SEL_HYPERSLABS)
{
if(H5Sis_regular_hyperslab(file_space_id))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment