diff options
author | Peter Cao <xcao@hdfgroup.org> | 2009-10-19 14:54:04 (GMT) |
---|---|---|
committer | Peter Cao <xcao@hdfgroup.org> | 2009-10-19 14:54:04 (GMT) |
commit | 0bd377a6d42733eb609d0662aa10c0c95d7b054c (patch) | |
tree | 5be352599dc1870f7f3b4d5884e89aa3b2860a1e | |
parent | fdd59dde1ca6933a5e3914eda79b4a2b51740c67 (diff) | |
download | hdf5-0bd377a6d42733eb609d0662aa10c0c95d7b054c.zip hdf5-0bd377a6d42733eb609d0662aa10c0c95d7b054c.tar.gz hdf5-0bd377a6d42733eb609d0662aa10c0c95d7b054c.tar.bz2 |
[svn-r17681] Add command line options for use-system-epsilon.
-rw-r--r-- | tools/h5diff/h5diff_main.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/h5diff/h5diff_main.c b/tools/h5diff/h5diff_main.c index 993db5e..59da4df 100644 --- a/tools/h5diff/h5diff_main.c +++ b/tools/h5diff/h5diff_main.c @@ -189,6 +189,11 @@ void parse_command_line(int argc, h5diff_exit(EXIT_FAILURE); } options->delta = atof( opt_arg ); + + /* -d 0 is the same as default */ + if (options->delta == 0) + options->d=0; + break; case 'p': @@ -201,6 +206,11 @@ void parse_command_line(int argc, h5diff_exit(EXIT_FAILURE); } options->percent = atof( opt_arg ); + + /* -p 0 is the same as default */ + if (options->percent == 0) + options->p = 0; + break; case 'n': @@ -222,9 +232,18 @@ void parse_command_line(int argc, case 'c': options->m_list_not_cmp = 1; break; + case 'e': + options->use_system_epsilon = 1; + break; + } } + /* if use system epsilon, unset -p and -d option */ + if (options->use_system_epsilon) + options->d = options->p = 0; + + /* check for file names to be processed */ if (argc <= opt_ind || argv[ opt_ind + 1 ] == NULL) { |