CMakeLists.txt 3.03 KB
Newer Older
Thomas Fetzer's avatar
[CMake]    
Thomas Fetzer committed
1
add_input_file_links()
Timo Koch's avatar
Timo Koch committed
2
dune_symlink_to_source_files(FILES grids)
Thomas Fetzer's avatar
[CMake]    
Thomas Fetzer committed
3

Christoph Grueninger's avatar
[CMake]    
Christoph Grueninger committed
4
# build target for the CO2 test problem
5
6
7
# 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.
8
dumux_add_test(NAME test_co2_box
9
              LABELS porousmediumflow co2
10
              SOURCES main.cc
11
              COMPILE_DEFINITIONS TYPETAG=HeterogeneousBox
12
              CMAKE_GUARD "( dune-alugrid_FOUND )"
Timo Koch's avatar
Timo Koch committed
13
14
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
15
16
17
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_co2_box-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/test_co2_box-00019.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_co2_box params.input -Problem.Name test_co2_box"
Timo Koch's avatar
Timo Koch committed
18
                       --zeroThreshold {"porosity":1})
19

20
dumux_add_test(NAME test_co2_tpfa
21
              LABELS porousmediumflow co2
22
              SOURCES main.cc
23
              COMPILE_DEFINITIONS TYPETAG=HeterogeneousCCTpfa
24
              CMAKE_GUARD "( dune-alugrid_FOUND )"
Timo Koch's avatar
Timo Koch committed
25
26
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
27
28
29
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_co2_tpfa-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/test_co2_tpfa-00018.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_co2_tpfa params.input -Problem.Name test_co2_tpfa")
Christoph Grueninger's avatar
Christoph Grueninger committed
30

31
# build target for the CO2 non-isothermal test problem
32
dumux_add_test(NAME test_co2ni_box
33
              LABELS porousmediumflow co2 co2ni
34
              SOURCES main.cc
35
              COMPILE_DEFINITIONS TYPETAG=HeterogeneousNIBox
36
                                  ISOTHERMAL=0
37
              CMAKE_GUARD "( dune-alugrid_FOUND )"
Timo Koch's avatar
Timo Koch committed
38
39
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
40
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_co2ni_box-reference.vtu
41
                               ${CMAKE_CURRENT_BINARY_DIR}/test_co2ni_box-00019.vtu
42
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_co2ni_box paramsni.input -Problem.Name test_co2ni_box"
Timo Koch's avatar
Timo Koch committed
43
                       --zeroThreshold {"porosity":1})
44

45
dumux_add_test(NAME test_co2ni_tpfa
46
              LABELS porousmediumflow co2 co2ni
47
              SOURCES main.cc
48
              COMPILE_DEFINITIONS TYPETAG=HeterogeneousNICCTpfa
49
                                  ISOTHERMAL=0
50
              CMAKE_GUARD "( dune-alugrid_FOUND )"
Timo Koch's avatar
Timo Koch committed
51
52
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
53
54
55
                       --files ${CMAKE_SOURCE_DIR}/test/references/test_co2ni_tpfa-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/test_co2ni_tpfa-00018.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_co2ni_tpfa paramsni.input -Problem.Name test_co2ni_tpfa")