CMakeLists.txt 3.25 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.
Timo Koch's avatar
Timo Koch committed
8
9
10
11
12
13
14
15
16
17
dune_add_test(NAME test_co2_box
              SOURCES test_co2_fv.cc
              COMPILE_DEFINITIONS TYPETAG=HeterogeneousBoxTypeTag
              CMAKE_GUARD "( dune-alugrid_FOUND AND DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS )"
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
                       --files ${CMAKE_SOURCE_DIR}/test/references/co2box-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/co2_box-00019.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_co2_box test_co2_fv.input -Problem.Name co2_box"
                       --zeroThreshold {"porosity":1})
18

Timo Koch's avatar
Timo Koch committed
19
20
21
22
23
24
25
26
27
dune_add_test(NAME test_co2_tpfa
              SOURCES test_co2_fv.cc
              COMPILE_DEFINITIONS TYPETAG=HeterogeneousCCTpfaTypeTag
              CMAKE_GUARD "( dune-alugrid_FOUND AND DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS )"
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
                       --files ${CMAKE_SOURCE_DIR}/test/references/co2cc-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/co2_tpfa-00018.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_co2_tpfa test_co2_fv.input -Problem.Name co2_tpfa")
Christoph Grueninger's avatar
Christoph Grueninger committed
28

29
# build target for the CO2 non-isothermal test problem
Timo Koch's avatar
Timo Koch committed
30
31
32
dune_add_test(NAME test_co2ni_box
              SOURCES test_co2_fv.cc
              COMPILE_DEFINITIONS TYPETAG=HeterogeneousNIBoxTypeTag
33
                                  ISOTHERMAL=0
Timo Koch's avatar
Timo Koch committed
34
35
36
37
38
39
40
              CMAKE_GUARD "( dune-alugrid_FOUND AND DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS )"
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
                       --files ${CMAKE_SOURCE_DIR}/test/references/co2nibox-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/co2ni_box-00019.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_co2ni_box test_co2ni_fv.input -Problem.Name co2ni_box"
                       --zeroThreshold {"porosity":1})
41

Timo Koch's avatar
Timo Koch committed
42
43
44
dune_add_test(NAME test_co2ni_tpfa
              SOURCES test_co2_fv.cc
              COMPILE_DEFINITIONS TYPETAG=HeterogeneousNICCTpfaTypeTag
45
                                  ISOTHERMAL=0
Timo Koch's avatar
Timo Koch committed
46
47
48
49
50
51
              CMAKE_GUARD "( dune-alugrid_FOUND AND DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS )"
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
                       --files ${CMAKE_SOURCE_DIR}/test/references/co2nicc-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/co2ni_tpfa-00018.vtu
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_co2ni_tpfa test_co2ni_fv.input -Problem.Name co2ni_tpfa")
52
53
54
55
56
57
58

#install sources
install(FILES
heterogeneousco2tables.hh
heterogeneousproblem.hh
heterogeneousproblemni.hh
heterogeneousspatialparameters.hh
Timo Koch's avatar
Timo Koch committed
59
test_co2_fv.cc
60
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dumux/test/implicit/co2)