Adds PDA convergence test

This commit is contained in:
Lew Rossman
2022-02-14 11:19:00 -05:00
parent 070901d6bf
commit a63f553b5f
4 changed files with 18 additions and 12 deletions

View File

@@ -102,7 +102,9 @@ def epanet_mincdd_compare(path_test, path_ref, rtol, atol):
ValueError()
AssertionError()
Modified by L. Rossman (4/20/21)
'''
#Turned off by L. Rossman (4/20/21)
return True
'''
min_cdd = 100.0
@@ -134,7 +136,7 @@ def epanet_mincdd_compare(path_test, path_ref, rtol, atol):
return True
else:
raise AssertionError('min_cdd=%d less than atol=%g' % (min_cdd, atol))
'''
def _log_relative_error(q, c):
'''

View File

@@ -29,8 +29,8 @@ sut_output_path="benchmark/epanet-$3"
nrtest_compare_cmd="nrtest compare"
ref_output_path="benchmark/epanet-$2"
rtol_value=0.1
atol_value=0.0
rtol_value=0.01
atol_value=0.0001
# change current directory to test_suite