CMakeLists.txt 1.9 KB
Newer Older
Dennis Gläser's avatar
Dennis Gläser committed
1
dune_symlink_to_source_files(FILES "test_2p.input")
2

Dennis Gläser's avatar
Dennis Gläser committed
3
4
# using tpfa
dune_add_test(NAME test_2p_incompressible_tpfa
Dennis Gläser's avatar
Dennis Gläser committed
5
              SOURCES test_2p_cc.cc
Dennis Gläser's avatar
Dennis Gläser committed
6
              COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleTpfa
7
8
9
10
11
              COMMAND python ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
                             --script fuzzy
                             --files ${CMAKE_SOURCE_DIR}/test/references/lenscc-reference.vtu
                                     ${CMAKE_CURRENT_BINARY_DIR}/2p_tpfa-00008.vtu
                             --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa test_2p.input -Problem.Name 2p_tpfa")
12

Dennis Gläser's avatar
Dennis Gläser committed
13
14
# using box
dune_add_test(NAME test_2p_incompressible_box
Dennis Gläser's avatar
Dennis Gläser committed
15
              SOURCES test_2p_box.cc
16
17
18
19
20
              COMMAND python ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
                             --script fuzzy
                             --files ${CMAKE_SOURCE_DIR}/test/references/lensbox-reference.vtu
                                     ${CMAKE_CURRENT_BINARY_DIR}/2p_box-00007.vtu
                             --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_box test_2p.input -Problem.Name 2p_box")
Dennis Gläser's avatar
Dennis Gläser committed
21

22
23
# using mpfa
dune_add_test(NAME test_2p_incompressible_mpfa
Dennis Gläser's avatar
Dennis Gläser committed
24
              SOURCES test_2p_cc.cc
25
              COMPILE_DEFINITIONS TYPETAG=TwoPIncompressibleMpfa
26
27
28
29
30
              COMMAND python ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
                             --script fuzzy
                             --files ${CMAKE_SOURCE_DIR}/test/references/lenscc-reference.vtu
                                     ${CMAKE_CURRENT_BINARY_DIR}/2p_mpfa-00008.vtu
                             --command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_mpfa test_2p.input -Problem.Name 2p_mpfa")
31

Dennis Gläser's avatar
Dennis Gläser committed
32
set(CMAKE_BUILD_TYPE Release)
33
34
35
36
37
38
39
40

#install sources
install(FILES
problem.hh
spatialparams.hh
test_2p_box.cc
test_2p_cc.cc
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dumux/test/implicit/2p/incompressible)