opm-simulators/pyactionComparisons.cmake
Arne Morten Kvarving 220ce99a41 fix typo in test name
2024-07-04 09:32:17 +02:00

117 lines
5.6 KiB
CMake

# Regression tests
opm_set_test_driver(${PROJECT_SOURCE_DIR}/tests/run-comparison.sh "")
# Set absolute tolerance to be used passed to the macros in the following tests
set(abs_tol 1e+5)
set(rel_tol 2e-5)
set(coarse_rel_tol 1e-2)
add_test_compareSeparateECLFiles(CASENAME pyaction_gconprod_insert_kw
DIR1 pyaction
FILENAME1 PYACTION_GCONPROD_INSERT_KW
DIR2 actionx
FILENAME2 ACTIONX_GCONPROD
SIMULATOR flow
ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}
IGNORE_EXTRA_KW BOTH)
add_test_compareSeparateECLFiles(CASENAME pyaction_gconsump_insert_kw
DIR1 pyaction
FILENAME1 PYACTION_GCONSUMP_INSERT_KW
DIR2 actionx
FILENAME2 ACTIONX_GCONSUMP
SIMULATOR flow
ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}
IGNORE_EXTRA_KW BOTH)
add_test_compareSeparateECLFiles(CASENAME pyaction_gruptree_insert_kw
DIR1 pyaction
FILENAME1 PYACTION_GRUPTREE_INSERT_KW
DIR2 actionx
FILENAME2 ACTIONX_GRUPTREE
SIMULATOR flow
ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}
IGNORE_EXTRA_KW BOTH)
add_test_compareSeparateECLFiles(CASENAME pyaction_mult+_insert_kw
DIR1 pyaction
FILENAME1 PYACTION_MULT+_INSERT_KW
DIR2 actionx
FILENAME2 ACTIONX_MULT+
SIMULATOR flow
ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}
IGNORE_EXTRA_KW BOTH)
add_test_compareSeparateECLFiles(CASENAME pyaction_multx+_insert_kw
DIR1 pyaction
FILENAME1 PYACTION_MULTX+_INSERT_KW
DIR2 actionx
FILENAME2 ACTIONX_MULTX+
SIMULATOR flow
ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}
IGNORE_EXTRA_KW BOTH)
add_test_compareSeparateECLFiles(CASENAME pyaction_multx-_insert_kw
DIR1 pyaction
FILENAME1 PYACTION_MULTX-_INSERT_KW
DIR2 actionx
FILENAME2 ACTIONX_MULTX-
SIMULATOR flow
ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}
IGNORE_EXTRA_KW BOTH)
add_test_compareSeparateECLFiles(CASENAME pyaction_next_insert_kw
DIR1 pyaction
FILENAME1 PYACTION_NEXT_INSERT_KW
DIR2 actionx
FILENAME2 ACTIONX_NEXT
SIMULATOR flow
ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}
IGNORE_EXTRA_KW BOTH)
add_test_compareSeparateECLFiles(CASENAME pyaction_wconprod_insert_kw
DIR1 pyaction
FILENAME1 PYACTION_WCONPROD_INSERT_KW
DIR2 actionx
FILENAME2 ACTIONX_WCONPROD
SIMULATOR flow
ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}
IGNORE_EXTRA_KW BOTH)
add_test_compareSeparateECLFiles(CASENAME pyaction_wefac_insert_kw
DIR1 pyaction
FILENAME1 PYACTION_WEFAC_INSERT_KW
DIR2 actionx
FILENAME2 ACTIONX_WEFAC
SIMULATOR flow
ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}
IGNORE_EXTRA_KW BOTH)
add_test_compareSeparateECLFiles(CASENAME pyaction_wsegvalv_insert_kw
DIR1 pyaction
FILENAME1 PYACTION_WSEGVALV_INSERT_KW
DIR2 actionx
FILENAME2 ACTIONX_WSEGVALV
SIMULATOR flow
ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}
IGNORE_EXTRA_KW BOTH)
add_test_compareSeparateECLFiles(CASENAME pyaction_wtest_insert_kw
DIR1 pyaction
FILENAME1 PYACTION_WTEST_INSERT_KW
DIR2 actionx
FILENAME2 ACTIONX_WTEST
SIMULATOR flow
ABS_TOL ${abs_tol}
REL_TOL ${rel_tol}
IGNORE_EXTRA_KW BOTH)