Commit 4a3e7a41 authored by Timo Koch's avatar Timo Koch
Browse files

[tests] Use the zero threshold to ignore some numerical noise in fuzzy

compare

This is the 1. iteration. The thresholds might have to be adapted for
more tests by knowledgable people

This and the last commit on tests were
reviewed by fetzer


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@15257 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent dc0f1401
......@@ -5,7 +5,8 @@ add_dumux_test(test_stokes2c test_stokes2c test_stokes2c.cc
--script fuzzy
--command "${CMAKE_CURRENT_BINARY_DIR}/test_stokes2c"
--files ${CMAKE_SOURCE_DIR}/test/references/stokes2c-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/stokes2c-00007.vtu)
${CMAKE_CURRENT_BINARY_DIR}/stokes2c-00007.vtu
--zeroThreshold {"v":1e-10})
add_dumux_test(test_stokes2c_diffusion test_stokes2c test_stokes2c.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
......
......@@ -5,4 +5,5 @@ add_dumux_test(test_elastic test_elastic test_elastic.cc
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/elasticmatrix-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/elasticmatrix-00002.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_elastic")
--command "${CMAKE_CURRENT_BINARY_DIR}/test_elastic"
--zeroThreshold {"stress X":1e-10,"stress Y":1e-10,"stress Z":1e-10})
......@@ -35,14 +35,16 @@ add_dumux_test(test_box1pniconduction test_box1pniconduction test_box1pniconduct
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/1pniboxconduction-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/box1pniconduction-00007.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box1pniconduction")
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box1pniconduction"
--zeroThreshold {"velocity":1e-16})
add_dumux_test(test_box1pniconvection test_box1pniconvection test_box1pniconvection.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/1pniboxconvection-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/box1pniconvection-00011.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box1pniconvection")
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box1pniconvection"
--zeroThreshold {"velocity":1e-16})
add_dumux_test(test_cc1pniconduction test_cc1pniconduction test_cc1pniconduction.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
......
......@@ -6,14 +6,16 @@ add_dumux_test(test_box1p2c test_box1p2c test_box1p2c.cc
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/outflowbox-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/outflowbox-00010.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box1p2c")
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box1p2c"
--zeroThreshold {"velocity":1e-16})
add_dumux_test(test_cc1p2c test_cc1p2c test_cc1p2c.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/outflowcc-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/outflowcc-00010.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_cc1p2c")
--command "${CMAKE_CURRENT_BINARY_DIR}/test_cc1p2c"
--zeroThreshold {"velocity":1e-16})
# non-isothermal tests
add_dumux_test(test_box1p2cniconduction test_box1p2cniconduction test_box1p2cniconduction.cc
......@@ -21,21 +23,24 @@ add_dumux_test(test_box1p2cniconduction test_box1p2cniconduction test_box1p2cnic
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/1p2cniboxconduction-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/box1p2cniconduction-00007.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box1p2cniconduction")
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box1p2cniconduction"
--zeroThreshold {"velocity":1e-16})
add_dumux_test(test_box1p2cniconvection test_box1p2cniconvection test_box1p2cniconvection.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/1p2cniboxconvection-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/box1p2cniconvection-00011.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box1p2cniconvection")
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box1p2cniconvection"
--zeroThreshold {"velocity":1e-16})
add_dumux_test(test_cc1p2cniconduction test_cc1p2cniconduction test_cc1p2cniconduction.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/1p2cniccconduction-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/cc1p2cniconduction-00007.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_cc1p2cniconduction")
--command "${CMAKE_CURRENT_BINARY_DIR}/test_cc1p2cniconduction"
--zeroThreshold {"velocity":1e-16})
add_dumux_test(test_cc1p2cniconvection test_cc1p2cniconvection test_cc1p2cniconvection.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
......
......@@ -21,7 +21,8 @@ add_dumux_test(test_box3pniconvection test_box3pniconvection test_box3pniconvect
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/3pniconvectionbox-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_box3pniconvection-00011.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box3pniconvection")
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box3pniconvection"
--zeroThreshold {"velocity":1e-16})
add_dumux_test(test_cc3pniconvection test_cc3pniconvection test_cc3pniconvection.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
......@@ -35,7 +36,8 @@ add_dumux_test(test_box3pniconduction test_box3pniconduction test_box3pniconduct
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/3pniconductionbox-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_box3pniconduction-00007.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box3pniconduction")
--command "${CMAKE_CURRENT_BINARY_DIR}/test_box3pniconduction"
--zeroThreshold {"velocity":1e-16})
add_dumux_test(test_cc3pniconduction test_cc3pniconduction test_cc3pniconduction.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment