summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-08-29 20:35:51 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-08-29 20:35:51 (GMT)
commit13f357a94693c720bf101119103902c63b027706 (patch)
treea450afdd25662e4d22a952ccf5e4daed0234f2be /tools/h5repack/h5repack.c
parentca4379362b95dc8cc81152b8d994b72e7ca65eea (diff)
downloadhdf5-13f357a94693c720bf101119103902c63b027706.zip
hdf5-13f357a94693c720bf101119103902c63b027706.tar.gz
hdf5-13f357a94693c720bf101119103902c63b027706.tar.bz2
[svn-r15558] 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.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c
index 73f78f6..91ade4f 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,18 @@ static int check_options(pack_opt_t *options)
options->ublock_filename);
return -1;
}
-
+
+
+ /*--------------------------------------------------------------------------------
+ * verify alignment options; threshold is zero default but alignment not
+ *---------------------------------------------------------------------------------
+ */
+
+ if ( options->alignment == 0 && options->threshold != 0 )
+ {
+ error_msg(progname, "alignment for H5Pset_alignment missing\n");
+ return -1;
+ }
return 0;
}