[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:
This commit is contained in:
Pedro Vicente Nunes 2004-01-13 13:12:47 -05:00
parent 00edaf52c5
commit d83a48e4f9
2 changed files with 3 additions and 15 deletions

View File

@ -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;

View File

@ -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();