diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-03-04 20:41:12 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-03-04 20:41:12 (GMT) |
commit | 40cdbe0b8dc5ad618920d6a33a818cfa42c3f241 (patch) | |
tree | 92830ca7ff7f9c42c890c746a035a4b70f7e5959 /tools/lib | |
parent | 1f10dc7f119e612f91bedbc6a9ecb65f314cc707 (diff) | |
download | hdf5-40cdbe0b8dc5ad618920d6a33a818cfa42c3f241.zip hdf5-40cdbe0b8dc5ad618920d6a33a818cfa42c3f241.tar.gz hdf5-40cdbe0b8dc5ad618920d6a33a818cfa42c3f241.tar.bz2 |
[svn-r29274] HDFFV-9698: fix subsetting issues with h5dump
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/h5tools_dump.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c index b6a53f3..5fb35bf 100644 --- a/tools/lib/h5tools_dump.c +++ b/tools/lib/h5tools_dump.c @@ -1359,7 +1359,7 @@ h5tools_display_simple_subset(FILE *stream, const h5tool_format_t *info, h5tools if (ctx->ndims > 2) { for (i = 0; i < (size_t) ctx->ndims - 2; i++) { - max_start[i] = temp_start[i] + sset->count.data[i]; + max_start[i] = temp_start[i] + sset->count.data[i] * sset->stride.data[i]; temp_count[i] = 1; } } @@ -1401,14 +1401,10 @@ h5tools_display_simple_subset(FILE *stream, const h5tool_format_t *info, h5tools /* increment start dimension */ do { reset_dim = 0; - temp_start[current_outer_dim]++; + temp_start[current_outer_dim] += sset->stride.data[current_outer_dim]; if (temp_start[current_outer_dim] >= max_start[current_outer_dim]) { temp_start[current_outer_dim] = sset->start.data[current_outer_dim]; - /* consider block */ - if (sset->block.data[current_outer_dim] > 1) - temp_start[current_outer_dim]++; - current_outer_dim--; reset_dim = 1; } |