From 936220f85cb5eabb8144b004a9731f2622aeefdc Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Mon, 30 Apr 2018 13:43:30 +0200 Subject: [PATCH] Add test case for thermal simulator in flow --- compareECLFiles.cmake | 7 +++++++ tests/update_reference_data.sh | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/compareECLFiles.cmake b/compareECLFiles.cmake index df3f2fc80..b01e3c3fd 100644 --- a/compareECLFiles.cmake +++ b/compareECLFiles.cmake @@ -188,6 +188,13 @@ add_test_compareECLFiles(CASENAME spe1_nowells REL_TOL ${rel_tol} DIR spe1) +add_test_compareECLFiles(CASENAME spe1_thermal + FILENAME SPE1CASE2_THERMAL + SIMULATOR flow + ABS_TOL ${abs_tol} + REL_TOL ${rel_tol} + DIR spe1) + foreach(SIM flow flow_legacy) add_test_compareECLFiles(CASENAME spe3 FILENAME SPE3CASE1 diff --git a/tests/update_reference_data.sh b/tests/update_reference_data.sh index 38fab5268..7aade24b0 100755 --- a/tests/update_reference_data.sh +++ b/tests/update_reference_data.sh @@ -89,6 +89,15 @@ for test_name in ${tests}; do EGRID INIT SMSPEC UNRST UNSMRY fi + if grep -q "spe1thermal" <<< $test_name + then + copyToReferenceDir \ + $configuration/build-opm-simulators/tests/results/flow+spe1_thermal/ \ + $OPM_TESTS_ROOT/spe1/opm-simulation-reference/flow \ + SPE1CASE2_THERMAL \ + EGRID INIT SMSPEC UNRST UNSMRY + fi + if grep -q "msw_2d_h" <<< $test_name then copyToReferenceDir \