mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
124ef64faf
Added a relative error formula to deal with floating point uncertainty in the comparison of floats and double types. Added new tests for this feature to the file generator program and to the shell script
12 lines
588 B
Plaintext
12 lines
588 B
Plaintext
#############################
|
|
Expected output for 'h5diff h5diff_basic1.h5 h5diff_basic1.h5 /g1/fp1 g1/fp2 -v'
|
|
#############################
|
|
Dataset: </g1/fp1> and </g1/fp2>
|
|
position fp1 fp2 difference
|
|
------------------------------------------------------------
|
|
[ 0 1 ] 1e-05 2e-05 1e-05
|
|
[ 1 0 ] 1e-05 9e-06 9.99999e-07
|
|
[ 1 1 ] 0 1e-05 1e-05
|
|
[ 2 0 ] 1e-05 0 1e-05
|
|
4 differences found
|