CMakeLists.txt 2.85 KB
Newer Older
Thomas Fetzer's avatar
[CMake]    
Thomas Fetzer committed
1
2
add_input_file_links()

Christoph Grueninger's avatar
[CMake]    
Christoph Grueninger committed
3
# build target for the CO2 test problem
4
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
add_dumux_test(test_boxco2 test_boxco2 test_boxco2.cc
9
               python ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
10
11
                 --script fuzzy
                 --files ${CMAKE_SOURCE_DIR}/test/references/co2box-reference.vtu
12
                         ${CMAKE_CURRENT_BINARY_DIR}/heterogeneousbox-00019.vtu
13
14
                 --command "${CMAKE_CURRENT_BINARY_DIR}/test_boxco2"
                 --zeroThreshold {"porosity":1})
Christoph Grueninger's avatar
Christoph Grueninger committed
15

16
add_dumux_test(test_ccco2 test_ccco2 test_ccco2.cc
17
               python ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
18
19
                 --script fuzzy
                 --files ${CMAKE_SOURCE_DIR}/test/references/co2cc-reference.vtu
20
                         ${CMAKE_CURRENT_BINARY_DIR}/heterogeneouscc-00018.vtu
21
                 --command "${CMAKE_CURRENT_BINARY_DIR}/test_ccco2")
Christoph Grueninger's avatar
Christoph Grueninger committed
22

23
add_dumux_test(test_restartco2 test_boxco2 test_boxco2.cc
24
               python ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
25
26
                 --script fuzzy
                 --files ${CMAKE_SOURCE_DIR}/test/references/co2box-reference.vtu
27
                         ${CMAKE_CURRENT_BINARY_DIR}/heterogeneousbox-00019.vtu
28
29
                 --command "${CMAKE_CURRENT_BINARY_DIR}/test_boxco2 -ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_restartco2.input"
                 --zeroThreshold {"porosity":1})
30

31
# the restart test has to run after the test that produces the restart file
32
set_tests_properties(test_restartco2 PROPERTIES DEPENDS test_boxco2)
33

34
# build target for the CO2 non-isothermal test problem
35
add_dumux_test(test_boxco2ni test_boxco2ni test_boxco2ni.cc
36
               python ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
37
38
                 --script fuzzy
                 --files ${CMAKE_SOURCE_DIR}/test/references/co2nibox-reference.vtu
39
                         ${CMAKE_CURRENT_BINARY_DIR}/heterogeneousboxni-00019.vtu
40
41
                 --command "${CMAKE_CURRENT_BINARY_DIR}/test_boxco2ni"
                 --zeroThreshold {"porosity":1})
42
43

add_dumux_test(test_ccco2ni test_ccco2ni test_ccco2ni.cc
44
               python ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
45
46
                 --script fuzzy
                 --files ${CMAKE_SOURCE_DIR}/test/references/co2nicc-reference.vtu
47
                         ${CMAKE_CURRENT_BINARY_DIR}/heterogeneousccni-00018.vtu
48
                 --command "${CMAKE_CURRENT_BINARY_DIR}/test_ccco2ni")
49
50


51
52
53
54
55
56
57
58
59
60
61
62

#install sources
install(FILES
heterogeneousco2tables.hh
heterogeneousproblem.hh
heterogeneousproblemni.hh
heterogeneousspatialparameters.hh
test_boxco2.cc
test_boxco2ni.cc
test_ccco2.cc
test_ccco2ni.cc
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dumux/test/implicit/co2)