summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-08-28 19:47:26 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-08-28 19:47:26 (GMT)
commitf384b17625179b29475b2ec836c949fe3b9d5e44 (patch)
tree2adc53784220241216b8ef41697c9e984889575d /tools/h5repack/h5repack.c
parenta4c82ed0491ce7e28079cdde9745b8ddfa9d60bc (diff)
downloadhdf5-f384b17625179b29475b2ec836c949fe3b9d5e44.zip
hdf5-f384b17625179b29475b2ec836c949fe3b9d5e44.tar.gz
hdf5-f384b17625179b29475b2ec836c949fe3b9d5e44.tar.bz2
[svn-r15551] 1) There are 2 new command line parameters for h5repack. Together they allow a call to H5Pset_alignment to be made
-t T, --threshold=T Threshold value for H5Pset_alignment -a A, --alignment=A Alignment value for H5Pset_alignment 2) bug fix the printing of the dataset name was not done for references (verbose mode) tested: windows, linux
Diffstat (limited to 'tools/h5repack/h5repack.c')
-rw-r--r--tools/h5repack/h5repack.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c
index 73f78f6..75684fc 100644
--- a/tools/h5repack/h5repack.c
+++ b/tools/h5repack/h5repack.c
@@ -95,7 +95,7 @@ int h5repack_init (pack_opt_t *options,
{
int k, n;
memset(options,0,sizeof(pack_opt_t));
- options->threshold = 1024;
+ options->min_comp = 1024;
options->verbose = verbose;
for ( n = 0; n < H5_REPACK_MAX_NFILTERS; n++)
@@ -427,7 +427,25 @@ static int check_options(pack_opt_t *options)
options->ublock_filename);
return -1;
}
+
+
+ /*--------------------------------------------------------------------------------
+ * verify alignment options; both threshold and alignment sizes must be present
+ *---------------------------------------------------------------------------------
+ */
+#if 0
+ if ( options->alignment != 0 && options->threshold == 0 )
+ {
+ error_msg(progname, "threshold for H5Pset_alignment missing\n");
+ return -1;
+ }
+ if ( options->alignment == 0 && options->threshold != 0 )
+ {
+ error_msg(progname, "alignment for H5Pset_alignment missing\n");
+ return -1;
+ }
+#endif
return 0;
}