diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-04-06 21:14:01 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-04-06 21:14:01 (GMT) |
commit | e6310e08692c631e95a9d827a0f7ec0ddf12d82a (patch) | |
tree | 75d57db2b33100f5e22e479c49c63503cb841b60 /tools/h5repack/h5repack_copy.c | |
parent | aabcaea388957914df5f506399c43b5d994e7a3b (diff) | |
download | hdf5-e6310e08692c631e95a9d827a0f7ec0ddf12d82a.zip hdf5-e6310e08692c631e95a9d827a0f7ec0ddf12d82a.tar.gz hdf5-e6310e08692c631e95a9d827a0f7ec0ddf12d82a.tar.bz2 |
[svn-r12208] Purpose:
new feature
Description:
some more formatting for the new printout of compression ratios
Solution:
Platforms tested:
linux
solaris
AIX
Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack_copy.c')
-rw-r--r-- | tools/h5repack/h5repack_copy.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/h5repack/h5repack_copy.c b/tools/h5repack/h5repack_copy.c index 82553d5..666a7fa 100644 --- a/tools/h5repack/h5repack_copy.c +++ b/tools/h5repack/h5repack_copy.c @@ -375,7 +375,7 @@ int do_copy_objects(hid_t fidin, goto error; if (next) - fprintf(stderr,"warning: <%s> has external files, ignoring read...\n", + fprintf(stderr," <warning: %s has external files, ignoring read...>\n", travt->objs[i].name ); /*------------------------------------------------------------------------- @@ -387,6 +387,8 @@ int do_copy_objects(hid_t fidin, */ if (next==0 && h5tools_canreadf((travt->objs[i].name),dcpl_id)==1) { + apply_s=1; + apply_f=1; /*------------------------------------------------------------------------- * references are a special case @@ -417,7 +419,7 @@ int do_copy_objects(hid_t fidin, * check for datasets too small *------------------------------------------------------------------------- */ - apply_s=1; + if (nelmts*msize < options->threshold ) apply_s=0; @@ -426,7 +428,7 @@ int do_copy_objects(hid_t fidin, *------------------------------------------------------------------------- */ if (apply_s){ - if (apply_filters(travt->objs[i].name,rank,dims,dcpl_out,mtype_id,options)<0) + if (apply_filters(travt->objs[i].name,rank,dims,dcpl_out,mtype_id,options,&apply_f)<0) goto error; } @@ -443,7 +445,7 @@ int do_copy_objects(hid_t fidin, dset_out=H5Dcreate(fidout,travt->objs[i].name,mtype_id,space_id,dcpl_out); } H5E_END_TRY; - apply_f=1; + if (dset_out==FAIL) { if ((dset_out=H5Dcreate(fidout,travt->objs[i].name,mtype_id,space_id,dcpl_id))<0) |