forked from OPM/opm-simulators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
modelTests.cmake
117 lines (106 loc) · 3.43 KB
/
modelTests.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
opm_set_test_driver(${PROJECT_SOURCE_DIR}/tests/run-vtu-test.sh "--simulation")
opm_add_test(art2dgf
NO_COMPILE
EXE_NAME $<TARGET_FILE:art2dgf>
DRIVER_ARGS --plain
TEST_ARGS data/fracture-raw.art
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
foreach(tgt lens_immiscible_ecfv_ad
lens_immiscible_ecfv_ad_23
lens_immiscible_ecfv_ad_trans
lens_immiscible_vcfv_ad
lens_immiscible_vcfv_fd)
opm_add_test(${tgt}
NO_COMPILE
EXE_NAME $<TARGET_FILE:${tgt}>
TEST_ARGS --end-time=3000
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
endforeach()
opm_add_test(waterair_pvs_ni
NO_COMPILE
EXE_NAME $<TARGET_FILE:waterair_pvs_ni>
TEST_ARGS --grid-global-refinements=1
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
set(PLAIN_TGT
co2injection_flash_ecfv
co2injection_flash_ni_ecfv
co2injection_flash_ni_vcfv
co2injection_flash_vcfv
co2injection_immiscible_ecfv
co2injection_immiscible_ni_ecfv
co2injection_immiscible_ni_vcfv
co2injection_immiscible_vcfv
co2injection_ncp_ecfv
co2injection_ncp_ni_vcfv
co2injection_ncp_vcfv
co2injection_pvs_ecfv
co2injection_pvs_ni_vcfv
co2injection_pvs_vcfv
co2injection_ncp_ni_ecfv
co2injection_pvs_ni_ecfv
co2_ptflash_ecfv
cuvette_pvs
diffusion_flash
diffusion_ncp
diffusion_pvs
groundwater_immiscible
infiltration_pvs
lens_richards_ecfv
lens_richards_vcfv
obstacle_immiscible
obstacle_ncp
obstacle_pvs
outflow_pvs
powerinjection_darcy_ad
powerinjection_darcy_fd
powerinjection_forchheimer_ad
powerinjection_forchheimer_fd
tutorial1
)
if(dune-alugrid_FOUND)
list(APPEND PLAIN_TGT
finger_immiscible_ecfv
finger_immiscible_vcfv
)
endif()
foreach(tgt ${PLAIN_TGT})
opm_add_test(${tgt}
NO_COMPILE
EXE_NAME $<TARGET_FILE:${tgt}>
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
endforeach()
foreach(tgt reservoir_blackoil_ecfv
reservoir_blackoil_vcfv
reservoir_ncp_ecfv
reservoir_ncp_vcfv)
opm_add_test(${tgt}
NO_COMPILE
EXE_NAME $<TARGET_FILE:${tgt}>
TEST_ARGS --end-time=8750000
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
endforeach()
if(dune-alugrid_FOUND)
opm_add_test(fracture_discretefracture
NO_COMPILE
EXE_NAME $<TARGET_FILE:fracture_discretefracture>
TEST_ARGS --end-time=400
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
endif()
if(dune-alugrid_FOUND AND dune-fem_FOUND)
opm_add_test(finger_immiscible_ecfv_adaptive
NO_COMPILE
EXE_NAME $<TARGET_FILE:finger_immiscible_ecfv>
TEST_ARGS --enable-grid-adaptation=true --end-time=25e3 --enable-async-vtk-output=false
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
endif()
opm_add_test(obstacle_immiscible_parameters
NO_COMPILE
EXE_NAME $<TARGET_FILE:obstacle_immiscible>
DRIVER_ARGS --parameters
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
opm_add_test(obstacle_pvs_restart
NO_COMPILE
EXE_NAME $<TARGET_FILE:obstacle_pvs>
TEST_ARGS --pvs-verbosity=2 --end-time=30000
DRIVER_ARGS --restart
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/tests)