mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Using ony relative differences when comparing.
This commit is contained in:
@@ -15,8 +15,8 @@ def compare_files( flow_file , ref_file , kw_list):
|
|||||||
flow_kw = flow[kw][0]
|
flow_kw = flow[kw][0]
|
||||||
ref_kw = ref[kw][0]
|
ref_kw = ref[kw][0]
|
||||||
|
|
||||||
if not flow_kw.equal_numeric( ref_kw , epsilon = 1e-3 ):
|
if not flow_kw.equal_numeric( ref_kw , abs_epsilon = 0 , rel_epsilon = 1e-2):
|
||||||
sys.exit("Keyword:%s was different in flow simulation and reference")
|
sys.exit("Keyword:%s was different in flow simulation and reference" % kw)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user