Skip to content
Snippets Groups Projects
Commit c94878fa authored by Lincoln Sherpa's avatar Lincoln Sherpa Committed by Kilian Weishaupt
Browse files

[test][navierstokes] Use same executable for Stokes/NavierStokes channel test

* rename test
parent fc4ecc99
No related branches found
No related tags found
1 merge request!1214Feature/runtime inertia
...@@ -31,14 +31,37 @@ dune_add_test(NAME test_navierstokes_hydrostaticpressure ...@@ -31,14 +31,37 @@ dune_add_test(NAME test_navierstokes_hydrostaticpressure
--command "${CMAKE_CURRENT_BINARY_DIR}/test_closedsystem test_hydrostaticpressure.input" --command "${CMAKE_CURRENT_BINARY_DIR}/test_closedsystem test_hydrostaticpressure.input"
--zeroThreshold {"velocity_liq \(m/s\)":1e-16}) --zeroThreshold {"velocity_liq \(m/s\)":1e-16})
dune_add_test(NAME test_channel_stokes add_executable(test_channel EXCLUDE_FROM_ALL test_channel.cc)
SOURCES test_channel.cc
dune_add_test(NAME test_stokes_channel
TARGET test_channel
CMAKE_GUARD HAVE_UMFPACK CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/channel-stokes.vtu --files ${CMAKE_SOURCE_DIR}/test/references/channel-stokes.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_channel_stokes-00002.vtu ${CMAKE_CURRENT_BINARY_DIR}/test_channel_stokes-00002.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_channel_stokes") --command "${CMAKE_CURRENT_BINARY_DIR}/test_channel test_channel_stokes.input")
dune_add_test(NAME test_navierstokes_channel
TARGET test_channel
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/channel-navierstokes-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_channel_navierstokes-00002.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_channel test_channel_navierstokes.input -Vtk.WriteFaceData 1")
dune_add_test(NAME test_navierstokes_channel_restart
TARGET test_channel
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/channel-navierstokes-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_channel_navierstokes_restart-00001.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_channel test_channel_navierstokes.input -Vtk.WriteFaceData 1 -TimeLoop.DtInitial 1 -Restart.Time 1 -CellCenter.Restart.File test_channel_navierstokes-00001.vtu -Face.Restart.File test_channel_navierstokes-face-00001.vtp -Problem.Name test_channel_navierstokes_restart")
# the restart test has to run after the test that produces the corresponding vtu file
set_tests_properties(test_navierstokes_channel_restart PROPERTIES DEPENDS test_channel_navierstokes)
add_executable(test_channel_stokesni EXCLUDE_FROM_ALL test_channel.cc) add_executable(test_channel_stokesni EXCLUDE_FROM_ALL test_channel.cc)
target_compile_definitions(test_channel_stokesni PUBLIC "NONISOTHERMAL=1") target_compile_definitions(test_channel_stokesni PUBLIC "NONISOTHERMAL=1")
...@@ -62,28 +85,6 @@ dune_add_test(NAME test_channel_stokesni_conduction ...@@ -62,28 +85,6 @@ dune_add_test(NAME test_channel_stokesni_conduction
--command "${CMAKE_CURRENT_BINARY_DIR}/test_channel_stokesni test_channel_stokesni_conduction.input" --command "${CMAKE_CURRENT_BINARY_DIR}/test_channel_stokesni test_channel_stokesni_conduction.input"
--zeroThreshold {"velocity_liq \(m/s\)":1e-20}) --zeroThreshold {"velocity_liq \(m/s\)":1e-20})
dune_add_test(NAME test_channel_navierstokes
SOURCES test_channel.cc
COMPILE_DEFINITIONS ENABLE_NAVIERSTOKES=1
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/channel-navierstokes-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_channel_navierstokes-00002.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_channel_navierstokes -Vtk.WriteFaceData 1")
dune_add_test(NAME test_channel_navierstokes_restart
TARGET test_channel_navierstokes
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/channel-navierstokes-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_channel_navierstokes_restart-00001.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_channel_navierstokes -Vtk.WriteFaceData 1 -TimeLoop.DtInitial 1 -Restart.Time 1 -CellCenter.Restart.File test_channel_navierstokes-00001.vtu -Face.Restart.File test_channel_navierstokes-face-00001.vtp -Problem.Name test_channel_navierstokes_restart")
# the restart test has to run after the test that produces the corresponding vtu file
set_tests_properties(test_channel_navierstokes_restart PROPERTIES DEPENDS test_channel_navierstokes)
dune_add_test(NAME test_stokes_donea_no_caching dune_add_test(NAME test_stokes_donea_no_caching
SOURCES test_donea.cc SOURCES test_donea.cc
CMAKE_GUARD HAVE_UMFPACK CMAKE_GUARD HAVE_UMFPACK
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment