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.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c
index eabdb6c..8408778 100644
--- a/tools/h5repack/h5repack.c
+++ b/tools/h5repack/h5repack.c
@@ -416,9 +416,12 @@ static int check_options(pack_opt_t *options)
*/
if ( options->ublock_filename != NULL && options->ublock_size == 0 )
{
- error_msg(progname, "user block size missing for file %s\n",
- options->ublock_filename);
- return -1;
+ if ( options->verbose )
+ {
+ printf("Warning: user block size missing for file %s. Assigning a default size of 1024...\n",
+ options->ublock_filename);
+ options->ublock_size = 1024;
+ }
}
if ( options->ublock_filename == NULL && options->ublock_size != 0 )