diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-01-13 18:12:47 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-01-13 18:12:47 (GMT) |
commit | d83a48e4f99ad3b4f9a86249bd4c3fb1dd342954 (patch) | |
tree | 7fcf966aa46266b392fab548c35164fdf6b576c9 /tools | |
parent | 00edaf52c5c31134dcaf4fbdc1933104d510236f (diff) | |
download | hdf5-d83a48e4f99ad3b4f9a86249bd4c3fb1dd342954.zip hdf5-d83a48e4f99ad3b4f9a86249bd4c3fb1dd342954.tar.gz hdf5-d83a48e4f99ad3b4f9a86249bd4c3fb1dd342954.tar.bz2 |
[svn-r8056] Purpose:
h5repack change
Description:
changed the default size of chunks when defining a new dataset to apply a filter
this size is now equal to the current dimensions. previously , it was set to half this
value, and it was causing write calls to fail on some files (probably a bug)
Solution:
Platforms tested:
linux
solaris
AIX
Misc. update:
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5repack/h5repack_copy.c | 2 | ||||
-rw-r--r-- | tools/h5repack/testh5repack_main.c | 16 |
2 files changed, 3 insertions, 15 deletions
diff --git a/tools/h5repack/h5repack_copy.c b/tools/h5repack/h5repack_copy.c index 3ca7c11..6b5a393 100644 --- a/tools/h5repack/h5repack_copy.c +++ b/tools/h5repack/h5repack_copy.c @@ -287,7 +287,7 @@ int do_copy_file(hid_t fidin, { obj.chunk.rank=rank; for (j=0; j<rank; j++) - obj.chunk.chunk_lengths[j] = dims[j] / 2; + obj.chunk.chunk_lengths[j] = dims[j]; } if (apply_filters(dcpl_id,H5Tget_size(mtype_id),options,&obj)<0) continue; diff --git a/tools/h5repack/testh5repack_main.c b/tools/h5repack/testh5repack_main.c index 1cd3762..d2ca603 100644 --- a/tools/h5repack/testh5repack_main.c +++ b/tools/h5repack/testh5repack_main.c @@ -50,8 +50,6 @@ test_copy(void) TEST_ERROR; if (h5repack_verify(FNAME1OUT,&pack_options)<=0) TEST_ERROR; - if (h5repack_cmpdcpl(FNAME1,FNAME1OUT)<=0) - TEST_ERROR; if (h5repack_end (&pack_options)<0) TEST_ERROR; @@ -66,8 +64,6 @@ test_copy(void) TEST_ERROR; if (h5repack_verify(FNAME2OUT,&pack_options)<=0) TEST_ERROR; - if (h5repack_cmpdcpl(FNAME2,FNAME2OUT)<=0) - TEST_ERROR; if (h5repack_end (&pack_options)<0) TEST_ERROR; PASSED(); @@ -81,9 +77,7 @@ test_copy(void) TEST_ERROR; if (h5repack_verify(FNAME3OUT,&pack_options)<=0) TEST_ERROR; - if (h5repack_cmpdcpl(FNAME3,FNAME3OUT)<=0) - TEST_ERROR; - if (h5repack_end (&pack_options)<0) + if (h5repack_end (&pack_options)<0) TEST_ERROR; PASSED(); @@ -138,8 +132,6 @@ test_filter_deflate(void) TEST_ERROR; if (h5repack_verify(FNAME4OUT,&pack_options)<=0) TEST_ERROR; - if (h5repack_cmpdcpl(FNAME4,FNAME4OUT)<=0) - TEST_ERROR; if (h5repack_end (&pack_options)<0) TEST_ERROR; @@ -573,8 +565,6 @@ test_layout_contiguous(void) TEST_ERROR; if (h5repack_verify(FNAME4OUT,&pack_options)<=0) TEST_ERROR; - if (h5repack_cmpdcpl(FNAME4,FNAME4OUT)<=0) - TEST_ERROR; if (h5repack_end (&pack_options)<0) TEST_ERROR; @@ -593,9 +583,7 @@ test_layout_contiguous(void) TEST_ERROR; if (h5repack_verify(FNAME4OUT,&pack_options)<=0) TEST_ERROR; - if (h5repack_cmpdcpl(FNAME4,FNAME4OUT)<=0) - TEST_ERROR; - if (h5repack_end (&pack_options)<0) + if (h5repack_end (&pack_options)<0) TEST_ERROR; PASSED(); |