summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index 30ed5fc..045d875 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -709,6 +709,11 @@ h5tools_dump_simple_data(FILE *stream, const h5tool_format_t *info, hid_t contai
* Description:
* Select a hyperslab from the dataset DSET using the parameters
* specified in SSET. Dump this out to STREAM.
+ *
+ * hyperslabs select "count" blocks of size "block",
+ * spaced "stride" elements from each other, starting at coordinate
+ * "start".
+ *
* Return:
* On success, return SUCCEED. Otherwise, the function returns FAIL.
* Programmer:
@@ -831,18 +836,11 @@ h5tools_dump_simple_subset(FILE *stream, const h5tool_format_t *info, hid_t dset
temp_start[ i ] = sset->start[ i ];
temp_count[ i ] = sset->count[ i ];
-#if 0
- temp_block[ i ] = 1; /* block size is considered in temp_count later */
-#else
-
-
if (ctx.ndims > 1)
temp_block[ i ] = 1; /* block size is considered in temp_count later */
else
temp_block[ i ] = sset->block[ i ];
-
-#endif
max_start[ i ] = 0;
}
@@ -1008,7 +1006,7 @@ h5tools_dump_simple_subset(FILE *stream, const h5tool_format_t *info, hid_t dset
} /* outer_count */
#if defined (SANITY_CHECK)
- /*assert( printed_points == total_points );*/
+ assert( printed_points == total_points );
#endif