CMakeLists.txt 5.84 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
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_2p_incompressible_cc-reference.vtu
13
                               ${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa-00007.vtu
14
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa params.input -Problem.Name test_2p_incompressible_tpfa")
15

16
17
18
19
20
21
22
23
24
25
dumux_add_test(NAME test_2p_incompressible_tpfa_analytic
              SOURCES main.cc
              LABELS porousmediumflow 2p
              COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleTpfa DIFFMETHOD=DiffMethod::analytic
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_2p_incompressible_cc-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa_analytic-00007.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa_analytic params.input -Problem.Name test_2p_incompressible_tpfa_analytic -Newton.EnablePartialReassembly false")

26
# using tpfa
27
dumux_add_test(NAME test_2p_incompressible_tpfa_restart
28
              TARGET test_2p_incompressible_tpfa
29
              LABELS porousmediumflow 2p
30
31
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
32
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_2p_incompressible_cc-reference.vtu
33
34
                               ${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa_restart-00002.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa params.input -Problem.Name test_2p_incompressible_tpfa_restart  -TimeLoop.DtInitial 603.14 -Restart.Time 2054.01 -Restart.File test_2p_incompressible_tpfa-00005.vtu")
35

36
37
38
# 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
39
# using box
40
dumux_add_test(NAME test_2p_incompressible_box
41
              LABELS porousmediumflow 2p
42
              SOURCES main.cc
43
              COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleBox
44
45
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
46
47
48
                       --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
49

50
# using box with interface solver
51
dumux_add_test(NAME test_2p_incompressible_box_ifsolver
52
              LABELS porousmediumflow 2p
53
              SOURCES main.cc
54
55
56
57
              COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleBox
              COMPILE_DEFINITIONS ENABLEINTERFACESOLVER=true
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
58
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_2p_incompressible_box_ifsolver-reference.vtu
59
                               ${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_box_ifsolver-00017.vtu
60
61
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_box_ifsolver params.input
                                                                                                  -Problem.Name test_2p_incompressible_box_ifsolver
62
63
64
                                                                                                  -Problem.UseNonConformingOutput true")

# using tpfa with an oil-wet lens
65
dumux_add_test(NAME test_2p_incompressible_tpfa_oilwet
66
              LABELS porousmediumflow 2p
67
              SOURCES main.cc
68
69
70
              COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleTpfa
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
71
72
73
74
                       --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
75
                                                                                                 -Problem.EnableGravity false
76
77
                                                                                                 -SpatialParams.LensIsOilWet true
                                                                                                 -TimeLoop.DtInitial 130")
78

79
# using mpfa
80
dumux_add_test(NAME test_2p_incompressible_mpfa
81
              LABELS porousmediumflow 2p
82
              SOURCES main.cc
83
              COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleMpfa
84
85
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
86
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_2p_incompressible_cc-reference.vtu
87
                               ${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_mpfa-00007.vtu
88
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_mpfa params.input -Problem.Name test_2p_incompressible_mpfa")