mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[svn-r14410] code cleaning
This commit is contained in:
parent
b8b215b34a
commit
4c2256e946
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user