summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-01-14 21:12:51 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-01-14 21:12:51 (GMT)
commit4c2256e94691bc3e15c1f053b069f3ce0495a435 (patch)
tree3705f790e03c3f6020ae37dca2e8ac499bdc3256 /tools
parentb8b215b34ae6403f067798fecd7357f6bf3aa310 (diff)
downloadhdf5-4c2256e94691bc3e15c1f053b069f3ce0495a435.zip
hdf5-4c2256e94691bc3e15c1f053b069f3ce0495a435.tar.gz
hdf5-4c2256e94691bc3e15c1f053b069f3ce0495a435.tar.bz2
[svn-r14410] code cleaning
Diffstat (limited to 'tools')
-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