summaryrefslogtreecommitdiffstats
path: root/tools/h5diff/h5diff_common.c
diff options
context:
space:
mode:
authorJonathan Kim <jkm@hdfgroup.org>2011-03-31 21:43:46 (GMT)
committerJonathan Kim <jkm@hdfgroup.org>2011-03-31 21:43:46 (GMT)
commit553e452ce4f49a81d41a06b8eb8072bd47d30c59 (patch)
tree18fc63ff0d098ee4cfee23628cff326560927a9c /tools/h5diff/h5diff_common.c
parentd03182a94e4e40fd9a14be55d5701c14ae85ec38 (diff)
downloadhdf5-553e452ce4f49a81d41a06b8eb8072bd47d30c59.zip
hdf5-553e452ce4f49a81d41a06b8eb8072bd47d30c59.tar.gz
hdf5-553e452ce4f49a81d41a06b8eb8072bd47d30c59.tar.bz2
[svn-r20384] Purpose:
Fixed Bug 2184 - GMQS: h5diff - incorrect calculation code for --use-system-epsilon option Description: Merged from HDF5 1.8 branch r20369. Fixed h5diff for --use-system-epsilon option: the calculation changed from ( |a - b| / b ) to ( |a - b| ). This was decided for better performance and was corrected only in HDF5 trunk, so 1.8 got updated. Also comments for equal_XXX() function were updated correctly. Also help page and RM got updated correctly. Also add test cases for testing the differences w/wo the option. Tested: jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Windows (32-LE)
Diffstat (limited to 'tools/h5diff/h5diff_common.c')
-rw-r--r--tools/h5diff/h5diff_common.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/h5diff/h5diff_common.c b/tools/h5diff/h5diff_common.c
index da420b0..e0af7f6 100644
--- a/tools/h5diff/h5diff_common.c
+++ b/tools/h5diff/h5diff_common.c
@@ -485,17 +485,11 @@ void usage(void)
printf(" number.\n");
printf(" -p R, --relative=R Print difference if (|(a-b)/b| > R), R is a positive\n");
printf(" number.\n");
- printf(" --use-system-epsilon Print difference if (|a-b| > EPSILON),\n");
- printf(" where EPSILON (FLT_EPSILON or FLT_EPSILON) is the\n");
- printf(" system epsilon value. \n");
- printf(" If the system epsilon is not defined, use the value\n");
- printf(" below:\n");
+ printf(" --use-system-epsilon Print difference if (|a-b| > EPSILON), EPSILON is\n");
+ printf(" a system epsilon value.\n");
+ printf(" The system epsilon values are defined as below:\n");
printf(" FLT_EPSILON = 1.19209E-07 for float\n");
printf(" DBL_EPSILON = 2.22045E-16 for double\n");
- printf(" -d, -p, and --use-system-epsilon options are used for\n");
- printf(" comparing floating point values.\n");
- printf(" By default, strict equality is used. Use -p or -d to\n");
- printf(" set specific tolerance.\n");
printf(" --exclude-path \"path\" Exclude the specified path to an object when\n");
printf(" comparing files or groups. If a group is excluded,\n");
printf(" all member objects will also be excluded.\n");