CMakeLists.txt 5.11 KB
Newer Older
1
dune_symlink_to_source_files(FILES "params.input")
2

Dennis Gläser's avatar
Dennis Gläser committed
3
# using tpfa
4
add_executable(test_2p_incompressible_tpfa EXCLUDE_FROM_ALL main.cc)
5
6
target_compile_definitions(test_2p_incompressible_tpfa PUBLIC TYPETAG=TwoPIncompressibleTpfa)

7
dumux_add_test(NAME test_2p_incompressible_tpfa
8
              TARGET test_2p_incompressible_tpfa
9
              LABELS porousmediumflow 2p
10
11
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
12
13
14
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_2p_incompressible_cc-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa-00008.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa params.input -Problem.Name test_2p_incompressible_tpfa")
15

16
# using tpfa
17
dumux_add_test(NAME test_2p_incompressible_tpfa_restart
18
              TARGET test_2p_incompressible_tpfa
19
              LABELS porousmediumflow 2p
20
21
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
22
23
24
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_2p_incompressible_cc-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa_restart-00003.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa params.input -Problem.Name test_2p_incompressible_tpfa_restart  -TimeLoop.DtInitial 526.62 -Restart.Time 1859.95 -Restart.File test_2p_incompressible_tpfa-00005.vtu")
25

26
27
28
# the restart test has to run after the test that produces the corresponding vtu file
set_tests_properties(test_2p_incompressible_tpfa_restart PROPERTIES DEPENDS test_2p_incompressible_tpfa)

Dennis Gläser's avatar
Dennis Gläser committed
29
# using box
30
dumux_add_test(NAME test_2p_incompressible_box
31
              LABELS porousmediumflow 2p
32
              SOURCES main.cc
33
              COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleBox
34
35
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
36
37
38
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_2p_incompressible_box-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_box-00007.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_box params.input -Problem.Name test_2p_incompressible_box")
Dennis Gläser's avatar
Dennis Gläser committed
39

40
# using box with interface solver
41
dumux_add_test(NAME test_2p_incompressible_box_ifsolver
42
              LABELS porousmediumflow 2p
43
              SOURCES main.cc
44
45
46
47
              COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleBox
              COMPILE_DEFINITIONS ENABLEINTERFACESOLVER=true
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
48
49
50
51
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_2p_incompressible_box_ifsolver-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_box_ifsolver-00018.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_box_ifsolver params.input
                                                                                                  -Problem.Name test_2p_incompressible_box_ifsolver
52
53
54
                                                                                                  -Problem.UseNonConformingOutput true")

# using tpfa with an oil-wet lens
55
dumux_add_test(NAME test_2p_incompressible_tpfa_oilwet
56
              LABELS porousmediumflow 2p
57
              SOURCES main.cc
58
59
60
              COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleTpfa
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
61
62
63
64
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_2p_incompressible_tpfa_oilwet-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa_oilwet-00009.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa_oilwet params.input
                                                                                                 -Problem.Name test_2p_incompressible_tpfa_oilwet
65
                                                                                                 -Problem.EnableGravity false
66
67
                                                                                                 -SpatialParams.LensIsOilWet true
                                                                                                 -TimeLoop.DtInitial 130")
68

69
# using mpfa
70
dumux_add_test(NAME test_2p_incompressible_mpfa
71
              LABELS porousmediumflow 2p
72
              SOURCES main.cc
73
              COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleMpfa
74
75
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
76
77
78
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_2p_incompressible_cc-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_mpfa-00008.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_mpfa params.input -Problem.Name test_2p_incompressible_mpfa")