diff options
Diffstat (limited to 'tools/h5repack/h5repack.c')
-rw-r--r-- | tools/h5repack/h5repack.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c index 75684fc..91ade4f 100644 --- a/tools/h5repack/h5repack.c +++ b/tools/h5repack/h5repack.c @@ -430,22 +430,15 @@ static int check_options(pack_opt_t *options) /*-------------------------------------------------------------------------------- - * verify alignment options; both threshold and alignment sizes must be present + * verify alignment options; threshold is zero default but alignment not *--------------------------------------------------------------------------------- */ -#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; } |