From 4c2256e94691bc3e15c1f053b069f3ce0495a435 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Mon, 14 Jan 2008 16:12:51 -0500 Subject: [svn-r14410] code cleaning --- tools/lib/h5tools.c | 14 ++++++-------- 1 file 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 -- cgit v0.12