mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-06 14:16:45 -05:00
Using ony relative differences when comparing.
This commit is contained in:
1 parent
bd63d37af3
commit
27535d8c8e
1 file changed
+2
-2
@@ -15,8 +15,8 @@ def compare_files( flow_file , ref_file , kw_list):
|
||||
flow_kw = flow[kw][0]
|
||||
ref_kw = ref[kw][0]
|
||||
|
||||
if not flow_kw.equal_numeric( ref_kw , epsilon = 1e-3 ):
|
||||
sys.exit("Keyword:%s was different in flow simulation and reference")
|
||||
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" % kw)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user