From cd06bc4572f226a7b1007cb2379a2084bdcfbdec Mon Sep 17 00:00:00 2001 From: Kilian Weishaupt Date: Wed, 2 Mar 2016 16:39:17 +0100 Subject: [PATCH] [test][CO2] Ignore vertex-wise defined porosity Ignore the porosity for all box models since it is defined element-wise in these test but the default 2p2c implementation outputs porosity per vertex. Depending on the order of the elements, the porosity would differ in these cases. --- test/porousmediumflow/co2/implicit/CMakeLists.txt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/test/porousmediumflow/co2/implicit/CMakeLists.txt b/test/porousmediumflow/co2/implicit/CMakeLists.txt index d1113b9578..c02c74e33d 100644 --- a/test/porousmediumflow/co2/implicit/CMakeLists.txt +++ b/test/porousmediumflow/co2/implicit/CMakeLists.txt @@ -1,12 +1,17 @@ add_input_file_links() # build target for the CO2 test problem +# Ignore the porosity for all box models since it is defined element-wise in these test +# but the default 2p2c implementation outputs porosity per vertex. +# Depending on the order of the elements, the porosity would differ in these cases. + add_dumux_test(test_boxco2 test_boxco2 test_boxco2.cc python ${CMAKE_SOURCE_DIR}/bin/runtest.py --script fuzzy --files ${CMAKE_SOURCE_DIR}/test/references/co2box-reference.vtu ${CMAKE_CURRENT_BINARY_DIR}/heterogeneousbox-00020.vtu - --command "${CMAKE_CURRENT_BINARY_DIR}/test_boxco2") + --command "${CMAKE_CURRENT_BINARY_DIR}/test_boxco2" + --zeroThreshold {"porosity":1}) add_dumux_test(test_ccco2 test_ccco2 test_ccco2.cc python ${CMAKE_SOURCE_DIR}/bin/runtest.py @@ -20,18 +25,20 @@ add_dumux_test(test_restartco2 test_ccco2 test_ccco2.cc --script fuzzy --files ${CMAKE_SOURCE_DIR}/test/references/co2box-reference.vtu ${CMAKE_CURRENT_BINARY_DIR}/heterogeneousbox-00020.vtu - --command "${CMAKE_CURRENT_BINARY_DIR}/test_boxco2 -ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_restartco2.input") + --command "${CMAKE_CURRENT_BINARY_DIR}/test_boxco2 -ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_restartco2.input" + --zeroThreshold {"porosity":1}) # the restart test has to run after the test that produces the restart file set_tests_properties(test_restartco2 PROPERTIES DEPENDS test_ccco2) - # build target for the CO2 non-isothermal test problem +# build target for the CO2 non-isothermal test problem add_dumux_test(test_boxco2ni test_boxco2ni test_boxco2ni.cc python ${CMAKE_SOURCE_DIR}/bin/runtest.py --script fuzzy --files ${CMAKE_SOURCE_DIR}/test/references/co2nibox-reference.vtu ${CMAKE_CURRENT_BINARY_DIR}/heterogeneousboxni-00020.vtu - --command "${CMAKE_CURRENT_BINARY_DIR}/test_boxco2ni") + --command "${CMAKE_CURRENT_BINARY_DIR}/test_boxco2ni" + --zeroThreshold {"porosity":1}) add_dumux_test(test_ccco2ni test_ccco2ni test_ccco2ni.cc python ${CMAKE_SOURCE_DIR}/bin/runtest.py -- GitLab