summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.c
diff options
context:
space:
mode:
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;
}