summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_filters.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-04-07 17:45:40 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-04-07 17:45:40 (GMT)
commit8ba0c76fe5e1989c503f395e3c1aafa3dff7c53b (patch)
tree18eb3be7fb637974337624fa38f2f0322c5cad78 /tools/h5repack/h5repack_filters.c
parente3cdaeab1c75130cd0d20af7d2949dd83f50a344 (diff)
downloadhdf5-8ba0c76fe5e1989c503f395e3c1aafa3dff7c53b.zip
hdf5-8ba0c76fe5e1989c503f395e3c1aafa3dff7c53b.tar.gz
hdf5-8ba0c76fe5e1989c503f395e3c1aafa3dff7c53b.tar.bz2
[svn-r12211] Purpose:
new feature Description some more check in related to the print of compression ratios: print warning messages after the print of the dataset name and compression: Solution: Platforms tested: linux solaris AIX Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack_filters.c')
-rw-r--r--tools/h5repack/h5repack_filters.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/h5repack/h5repack_filters.c b/tools/h5repack/h5repack_filters.c
index a3ba70d..9f3b192 100644
--- a/tools/h5repack/h5repack_filters.c
+++ b/tools/h5repack/h5repack_filters.c
@@ -191,8 +191,7 @@ int apply_filters(const char* name, /* object name from traverse list */
hsize_t *dims, /* dimensions of dataset */
hid_t dcpl_id, /* dataset creation property list */
hid_t type_id, /* dataset datatype */
- pack_opt_t *options, /* repack options */
- int *apply_f)
+ pack_opt_t *options) /* repack options */
{
int nfilters; /* number of filters in DCPL */
hsize_t chsize[64]; /* chunk size in elements */
@@ -200,11 +199,9 @@ int apply_filters(const char* name, /* object name from traverse list */
int i;
pack_info_t obj;
- if (rank==0)
- {
- *apply_f=0;
+ if (rank==0) /* scalar dataset, do not apply */
return 0;
- }
+
/*-------------------------------------------------------------------------
* initialize the assigment object