CMakeLists.txt 24.1 KB
Newer Older
1
add_input_file_links()
2
dune_symlink_to_source_files(FILES grids)
3

Martin Schneider's avatar
Martin Schneider committed
4
5
add_executable(test_gridmanager_cake_ug EXCLUDE_FROM_ALL test_gridmanager_cake.cc)
target_compile_definitions(test_gridmanager_cake_ug PUBLIC "USEUG=1")
6

Martin Schneider's avatar
Martin Schneider committed
7
8
add_executable(test_gridmanager_cake_alu EXCLUDE_FROM_ALL test_gridmanager_cake.cc)

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
dumux_add_test(NAME test_gridmanager_cake_360_ug
               TARGET test_gridmanager_cake_ug
               LABELS unit io
               CMAKE_GUARD dune-uggrid_FOUND
               COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
               CMD_ARGS --script fuzzy
                        --command "${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_cake_ug -Grid.Name ug-360"
                        --files ${CMAKE_SOURCE_DIR}/test/references/test_gridmanager_cake_3d_360-reference.vtu
                                ${CMAKE_CURRENT_BINARY_DIR}/cake-3d-ug-360.vtu
                                ${CMAKE_SOURCE_DIR}/test/references/test_gridmanager_cake_2d_360-reference.vtu
                                ${CMAKE_CURRENT_BINARY_DIR}/cake-2d-ug-360.vtu
                        --relative 1e-6)

dumux_add_test(NAME test_gridmanager_cake_360_alu
               TARGET test_gridmanager_cake_alu
               LABELS unit io
               CMAKE_GUARD dune-alugrid_FOUND
               COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
               CMD_ARGS --script fuzzy
                        --command "${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_cake_alu -Grid.Name alu-360"
                        --files ${CMAKE_SOURCE_DIR}/test/references/test_gridmanager_cake_3d_360-reference.vtu
                                ${CMAKE_CURRENT_BINARY_DIR}/cake-3d-alu-360.vtu
                                ${CMAKE_SOURCE_DIR}/test/references/test_gridmanager_cake_2d_360-reference.vtu
                                ${CMAKE_CURRENT_BINARY_DIR}/cake-2d-alu-360.vtu
                        --relative 1e-6)

dumux_add_test(NAME test_gridmanager_cake_210_ug
               TARGET test_gridmanager_cake_ug
               LABELS unit io
               CMAKE_GUARD dune-uggrid_FOUND
               COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
               CMD_ARGS --script fuzzy
                        --command "${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_cake_ug -Grid.Name ug-210 -Grid.Angular1 '0.0 210.0'"
                        --files ${CMAKE_SOURCE_DIR}/test/references/test_gridmanager_cake_3d_210-reference.vtu
                                ${CMAKE_CURRENT_BINARY_DIR}/cake-3d-ug-210.vtu
                                ${CMAKE_SOURCE_DIR}/test/references/test_gridmanager_cake_2d_210-reference.vtu
                                ${CMAKE_CURRENT_BINARY_DIR}/cake-2d-ug-210.vtu
                        --relative 1e-6)

dumux_add_test(NAME test_gridmanager_cake_210_alu
               TARGET test_gridmanager_cake_alu
               LABELS unit io
               CMAKE_GUARD dune-alugrid_FOUND
               COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
               CMD_ARGS --script fuzzy
                        --command "${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_cake_alu -Grid.Name alu-210 -Grid.Angular1 '0.0 210.0'"
                        --files ${CMAKE_SOURCE_DIR}/test/references/test_gridmanager_cake_3d_210-reference.vtu
                                ${CMAKE_CURRENT_BINARY_DIR}/cake-3d-alu-210.vtu
                                ${CMAKE_SOURCE_DIR}/test/references/test_gridmanager_cake_2d_210-reference.vtu
                                ${CMAKE_CURRENT_BINARY_DIR}/cake-2d-alu-210.vtu
                        --relative 1e-6)

dumux_add_test(NAME test_gridmanager_cake_360_nowell
               TARGET test_gridmanager_cake_ug
               LABELS unit io
               CMAKE_GUARD dune-uggrid_FOUND
               COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
               CMD_ARGS --script fuzzy
                        --command "${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_cake_ug -Grid.Name nowell-360 -Grid.Radial0 '0.0 0.3 1.0'"
                        --files ${CMAKE_SOURCE_DIR}/test/references/test_gridmanager_cake_3d_360_nowell-reference.vtu
                                ${CMAKE_CURRENT_BINARY_DIR}/cake-3d-nowell-360.vtu
                                ${CMAKE_SOURCE_DIR}/test/references/test_gridmanager_cake_2d_360_nowell-reference.vtu
                                ${CMAKE_CURRENT_BINARY_DIR}/cake-2d-nowell-360.vtu
                        --relative 1e-6)

dumux_add_test(NAME test_gridmanager_subgrid
75
              SOURCES test_gridmanager_subgrid.cc
76
              LABELS unit io
77
78
79
              CMAKE_GUARD dune-subgrid_FOUND
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
80
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_subgrid"
81
                       --files ${CMAKE_SOURCE_DIR}/test/references/subgrid-reference.vtu
82
                               ${CMAKE_CURRENT_BINARY_DIR}/subgrid_circle_yasp.vtu
83
84
                               ${CMAKE_SOURCE_DIR}/test/references/test_gridmanager_subgrid_binary_image.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/subgrid_binary_image.vtu)
Timo Koch's avatar
Timo Koch committed
85

86
87
dune_symlink_to_source_files(FILES "test_gridmanager_gmsh_3d.input"
                                   "test_gridmanager_gmsh_e_markers.input"
88
                                   "test_gridmanager_dgf.input")
Timo Koch's avatar
Timo Koch committed
89

90
91
add_executable(test_gridmanager_gmsh_3d_alu EXCLUDE_FROM_ALL test_gridmanager_gmsh_3d.cc)
target_compile_definitions(test_gridmanager_gmsh_3d_alu PUBLIC GRIDTYPE=Dune::ALUGrid<3,3,Dune::simplex,Dune::nonconforming>)
92

93
dumux_add_test(NAME test_gridmanager_gmsh_3d_alu_sequential
94
              TARGET test_gridmanager_gmsh_3d_alu
95
              LABELS unit io
96
              CMAKE_GUARD dune-alugrid_FOUND
97
98
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
99
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_gmsh_3d_alu -Problem.Name bifurcation_alu -Grid.Refine false"
100
                       --files ${CMAKE_SOURCE_DIR}/test/references/gridmanager-bifurcation-3d-reference.vtu
101
102
                               ${CMAKE_CURRENT_BINARY_DIR}/bifurcation_alu-00000.vtu)

103
dumux_add_test(NAME test_gridmanager_gmsh_3d_alu_parallel
104
              TARGET test_gridmanager_gmsh_3d_alu
Timo Koch's avatar
Timo Koch committed
105
              LABELS unit io parallel
106
              TIMEOUT 300
107
              CMAKE_GUARD dune-alugrid_FOUND
108
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
109
              CMD_ARGS --script fuzzy --zeroThreshold {"rank":100}
110
                       --command "${MPIEXEC} -np 2 ${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_gmsh_3d_alu -Problem.Name bifurcation_alu_parallel -Grid.Refine false"
111
                       --files ${CMAKE_SOURCE_DIR}/test/references/gridmanager-bifurcation-3d-reference.vtu
112
                               ${CMAKE_CURRENT_BINARY_DIR}/s0002-bifurcation_alu_parallel-00000.pvtu)
113

114
115
add_executable(test_gridmanager_gmsh_3d_ug EXCLUDE_FROM_ALL test_gridmanager_gmsh_3d.cc)
target_compile_definitions(test_gridmanager_gmsh_3d_ug PUBLIC GRIDTYPE=Dune::UGGrid<3>)
116

117
dumux_add_test(NAME test_gridmanager_gmsh_3d_ug_sequential
118
              TARGET test_gridmanager_gmsh_3d_ug
119
              LABELS unit io
120
121
122
              CMAKE_GUARD dune-uggrid_FOUND
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
123
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_gmsh_3d_ug -Problem.Name bifurcation_ug"
124
                       --files ${CMAKE_SOURCE_DIR}/test/references/gridmanager-bifurcation-3d-reference.vtu
125
                               ${CMAKE_CURRENT_BINARY_DIR}/bifurcation_ug-00000.vtu
126
                               ${CMAKE_SOURCE_DIR}/test/references/gridmanager-bifurcation-3d-reference-refined.vtu
127
128
                               ${CMAKE_CURRENT_BINARY_DIR}/bifurcation_ug-00001.vtu)

129
dumux_add_test(NAME test_gridmanager_gmsh_3d_ug_parallel
130
              TARGET test_gridmanager_gmsh_3d_ug
Timo Koch's avatar
Timo Koch committed
131
              LABELS unit io parallel
132
              TIMEOUT 300
133
134
              CMAKE_GUARD dune-uggrid_FOUND
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
135
              CMD_ARGS --script fuzzy --zeroThreshold {"rank":100}
136
                       --command "${MPIEXEC} -np 2 ${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_gmsh_3d_ug -Problem.Name bifurcation_ug_parallel -Grid.Refine false"
137
                       --files ${CMAKE_SOURCE_DIR}/test/references/gridmanager-bifurcation-3d-reference.vtu
138
                               ${CMAKE_CURRENT_BINARY_DIR}/s0002-bifurcation_ug_parallel-00000.pvtu)
139

140
add_executable(test_gridmanager_gmsh_e_markers_alu EXCLUDE_FROM_ALL test_gridmanager_gmsh_e_markers.cc)
141
target_compile_definitions(test_gridmanager_gmsh_e_markers_alu PUBLIC GRIDTYPE=Dune::ALUGrid<2,2,Dune::simplex,Dune::nonconforming>)
Timo Koch's avatar
Timo Koch committed
142

143
dumux_add_test(NAME test_gridmanager_gmsh_e_markers_alu_sequential
144
              TARGET test_gridmanager_gmsh_e_markers_alu
145
              LABELS unit io
Timo Koch's avatar
Timo Koch committed
146
147
148
              CMAKE_GUARD dune-alugrid_FOUND
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
149
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_gmsh_e_markers_alu -Problem.Name fracture_alu"
150
                       --files ${CMAKE_SOURCE_DIR}/test/references/gridmanager-fracture-reference.vtu
Timo Koch's avatar
Timo Koch committed
151
                               ${CMAKE_CURRENT_BINARY_DIR}/fracture_alu-00000.vtu
152
                               ${CMAKE_SOURCE_DIR}/test/references/gridmanager-fracture-reference-refined.vtu
Timo Koch's avatar
Timo Koch committed
153
154
                               ${CMAKE_CURRENT_BINARY_DIR}/fracture_alu-00001.vtu)

155
dumux_add_test(NAME test_gridmanager_gmsh_e_markers_alu_parallel
156
              TARGET test_gridmanager_gmsh_e_markers_alu
Timo Koch's avatar
Timo Koch committed
157
              LABELS unit io parallel
158
              TIMEOUT 300
Timo Koch's avatar
Timo Koch committed
159
160
              CMAKE_GUARD "( dune-alugrid_FOUND AND MPI_FOUND )"
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
161
              CMD_ARGS --script fuzzy --zeroThreshold {"rank":100}
162
                      --command "${MPIEXEC} -np 2 ${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_gmsh_e_markers_alu -Problem.Name fracture_alu_parallel"
163
                      --files ${CMAKE_SOURCE_DIR}/test/references/gridmanager-fracture-reference.vtu
164
                              ${CMAKE_CURRENT_BINARY_DIR}/s0002-fracture_alu_parallel-00000.pvtu
165
                              ${CMAKE_SOURCE_DIR}/test/references/gridmanager-fracture-reference-refined.vtu
166
                              ${CMAKE_CURRENT_BINARY_DIR}/s0002-fracture_alu_parallel-00001.pvtu)
Timo Koch's avatar
Timo Koch committed
167

168
169
add_executable(test_gridmanager_gmsh_e_markers_ug EXCLUDE_FROM_ALL test_gridmanager_gmsh_e_markers.cc)
target_compile_definitions(test_gridmanager_gmsh_e_markers_ug PUBLIC GRIDTYPE=Dune::UGGrid<2>)
170

171
dumux_add_test(NAME test_gridmanager_gmsh_e_markers_ug_sequential
172
              TARGET test_gridmanager_gmsh_e_markers_ug
173
              LABELS unit io
174
              CMAKE_GUARD dune-uggrid_FOUND
175
176
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
177
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_gmsh_e_markers_ug -Problem.Name fracture_ug"
178
                       --files ${CMAKE_SOURCE_DIR}/test/references/gridmanager-fracture-reference.vtu
179
                               ${CMAKE_CURRENT_BINARY_DIR}/fracture_ug-00000.vtu
180
                               ${CMAKE_SOURCE_DIR}/test/references/gridmanager-fracture-reference-refined.vtu
181
182
                               ${CMAKE_CURRENT_BINARY_DIR}/fracture_ug-00001.vtu)

183
dumux_add_test(NAME test_gridmanager_gmsh_e_markers_ug_parallel
184
              TARGET test_gridmanager_gmsh_e_markers_ug
Timo Koch's avatar
Timo Koch committed
185
              LABELS unit io parallel
186
              TIMEOUT 300
187
              CMAKE_GUARD "( dune-uggrid_FOUND AND MPI_FOUND )"
188
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
189
              CMD_ARGS --script fuzzy --zeroThreshold {"rank":100}
190
                      --command "${MPIEXEC} -np 2 ${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_gmsh_e_markers_ug -Problem.Name fracture_ug_parallel"
191
                      --files ${CMAKE_SOURCE_DIR}/test/references/gridmanager-fracture-reference.vtu
192
                              ${CMAKE_CURRENT_BINARY_DIR}/s0002-fracture_ug_parallel-00000.pvtu
193
                              ${CMAKE_SOURCE_DIR}/test/references/gridmanager-fracture-reference-refined.vtu
194
                              ${CMAKE_CURRENT_BINARY_DIR}/s0002-fracture_ug_parallel-00001.pvtu)
195

196
197
add_executable(test_gridmanager_dgf_alu EXCLUDE_FROM_ALL test_gridmanager_dgf.cc)
target_compile_definitions(test_gridmanager_dgf_alu PUBLIC GRIDTYPE=Dune::ALUGrid<2,2,Dune::simplex,Dune::conforming>)
Timo Koch's avatar
Timo Koch committed
198

199
dumux_add_test(NAME test_gridmanager_dgf_alu_sequential
200
              TARGET test_gridmanager_dgf_alu
201
              LABELS unit io
Timo Koch's avatar
Timo Koch committed
202
203
204
              CMAKE_GUARD dune-alugrid_FOUND
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
205
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_dgf_alu -Problem.Name co2_alu"
206
                       --files ${CMAKE_SOURCE_DIR}/test/references/gridmanager-co2-simpl-element-reference.vtu
207
                               ${CMAKE_CURRENT_BINARY_DIR}/co2_alu-element-00000.vtu
208
                               ${CMAKE_SOURCE_DIR}/test/references/gridmanager-co2-simpl-element-reference-refined.vtu
209
210
211
                               ${CMAKE_CURRENT_BINARY_DIR}/co2_alu-element-00001.vtu
                               ${CMAKE_SOURCE_DIR}/test/references/gridmanager-co2-simpl-vertex-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/co2_alu-vertex-00000.vtu)
Timo Koch's avatar
Timo Koch committed
212

213
dumux_add_test(NAME test_gridmanager_dgf_alu_parallel
214
              TARGET test_gridmanager_dgf_alu
Timo Koch's avatar
Timo Koch committed
215
              LABELS unit io parallel
216
              TIMEOUT 300
Timo Koch's avatar
Timo Koch committed
217
218
              CMAKE_GUARD "( dune-alugrid_FOUND AND MPI_FOUND )"
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
219
              CMD_ARGS --script fuzzy --zeroThreshold {"rank":100}
220
                       --command "${MPIEXEC} -np 2 ${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_dgf_alu -Problem.Name co2_alu_parallel"
221
                       --files ${CMAKE_SOURCE_DIR}/test/references/gridmanager-co2-simpl-element-reference.vtu
222
                               ${CMAKE_CURRENT_BINARY_DIR}/s0002-co2_alu_parallel-element-00000.pvtu
223
                               ${CMAKE_SOURCE_DIR}/test/references/gridmanager-co2-simpl-element-reference-refined.vtu
224
225
226
                               ${CMAKE_CURRENT_BINARY_DIR}/s0002-co2_alu_parallel-element-00001.pvtu
                               ${CMAKE_SOURCE_DIR}/test/references/gridmanager-co2-simpl-vertex-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/s0002-co2_alu_parallel-vertex-00000.pvtu)
227

228
229
add_executable(test_gridmanager_dgf_ug EXCLUDE_FROM_ALL test_gridmanager_dgf.cc)
target_compile_definitions(test_gridmanager_dgf_ug PUBLIC GRIDTYPE=Dune::UGGrid<2>)
230

231
dumux_add_test(NAME test_gridmanager_dgf_ug_sequential
232
              TARGET test_gridmanager_dgf_ug
233
              LABELS unit io
234
              CMAKE_GUARD dune-uggrid_FOUND
235
236
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
237
                       --command "${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_dgf_ug -Problem.Name co2_ug"
238
                       --files ${CMAKE_SOURCE_DIR}/test/references/gridmanager-co2-quad-element-reference.vtu
239
                               ${CMAKE_CURRENT_BINARY_DIR}/co2_ug-element-00000.vtu
240
                               ${CMAKE_SOURCE_DIR}/test/references/gridmanager-co2-quad-element-reference-refined.vtu
241
242
243
                               ${CMAKE_CURRENT_BINARY_DIR}/co2_ug-element-00001.vtu
                               ${CMAKE_SOURCE_DIR}/test/references/gridmanager-co2-quad-vertex-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/co2_ug-vertex-00000.vtu)
244

245
dumux_add_test(NAME test_gridmanager_dgf_ug_parallel
246
              TARGET test_gridmanager_dgf_ug
Timo Koch's avatar
Timo Koch committed
247
              LABELS unit io parallel
248
              TIMEOUT 300
249
              CMAKE_GUARD "( dune-uggrid_FOUND AND MPI_FOUND )"
250
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
251
              CMD_ARGS --script fuzzy --zeroThreshold {"rank":100}
252
                       --command "${MPIEXEC} -np 2 ${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_dgf_ug -Problem.Name co2_ug_parallel"
253
                       --files ${CMAKE_SOURCE_DIR}/test/references/gridmanager-co2-quad-element-reference.vtu
254
                               ${CMAKE_CURRENT_BINARY_DIR}/s0002-co2_ug_parallel-element-00000.pvtu
255
                               ${CMAKE_SOURCE_DIR}/test/references/gridmanager-co2-quad-element-reference-refined.vtu
256
257
258
                               ${CMAKE_CURRENT_BINARY_DIR}/s0002-co2_ug_parallel-element-00001.pvtu
                               ${CMAKE_SOURCE_DIR}/test/references/gridmanager-co2-quad-vertex-reference.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/s0002-co2_ug_parallel-vertex-00000.pvtu)
259

260
dumux_add_test(NAME test_gridmanager_vtk_foam
261
262
263
264
265
266
267
268
269
270
              SOURCES test_gridmanager_vtk.cc
              LABELS unit io
              COMPILE_DEFINITIONS FOAMGRID
              CMAKE_GUARD dune-foamgrid_FOUND
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
                       --command ${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_vtk_foam
                       --files ${CMAKE_CURRENT_BINARY_DIR}/grids/lupine.vtp
                               ${CMAKE_CURRENT_BINARY_DIR}/test-gridmanager-vtk-foamgrid-0.vtp)

271
dumux_add_test(NAME test_gridmanager_vtk_ug
272
273
274
275
276
277
278
279
280
              SOURCES test_gridmanager_vtk.cc
              LABELS unit io
              COMPILE_DEFINITIONS UGGRID
              CMAKE_GUARD dune-uggrid_FOUND
              COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
              CMD_ARGS --script fuzzy
                       --command ${CMAKE_CURRENT_BINARY_DIR}/test_gridmanager_vtk_ug
                       --files ${CMAKE_CURRENT_BINARY_DIR}/grids/lens.vtu
                               ${CMAKE_CURRENT_BINARY_DIR}/test-gridmanager-vtk-uggrid-0.vtu)
281
282


283
dumux_add_test(NAME test_gmshboundaryflag
284
285
286
287
288
289
              SOURCES test_gmshboundaryflag.cc
              COMPILE_DEFINITIONS ENABLE_CACHING=false
              LABELS unit io
              CMAKE_GUARD "( dune-alugrid_FOUND )"
              )

290
dumux_add_test(NAME test_gmshboundaryflag_caching
291
292
293
294
295
              SOURCES test_gmshboundaryflag.cc
              COMPILE_DEFINITIONS ENABLE_CACHING=true
              LABELS unit io
              CMAKE_GUARD "( dune-alugrid_FOUND )"
              )
Timo Koch's avatar
Timo Koch committed
296

297
dumux_add_test(NAME test_gridmanager_mmesh
Timo Koch's avatar
Timo Koch committed
298
299
300
301
              SOURCES test_gridmanager_mmesh.cc
              LABELS unit io
              CMAKE_GUARD "( dune-mmesh_FOUND )"
              )
Kilian Weishaupt's avatar
Kilian Weishaupt committed
302
303
304
305
306
307

add_executable(test_pnm_gridmanager EXCLUDE_FROM_ALL test_pnm_gridmanager.cc)

dumux_add_test(NAME test_pnm_gridmanager_constant_params
               LABELS unit io porenetwork
               TARGET test_pnm_gridmanager
308
               CMAKE_GUARD dune-foamgrid_FOUND
Kilian Weishaupt's avatar
Kilian Weishaupt committed
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
               COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
               CMD_ARGS      --script fuzzy
                             --files ${CMAKE_SOURCE_DIR}/test/references/pnm_gridmanager-3d-constant.vtp
                                     ${CMAKE_CURRENT_BINARY_DIR}/generic-3dgrid-constant-params.vtp
                                     ${CMAKE_SOURCE_DIR}/test/references/pnm_gridmanager-3d-constant.vtp
                                     ${CMAKE_CURRENT_BINARY_DIR}/dgf-3dgrid-constant-params.vtp
                                     ${CMAKE_SOURCE_DIR}/test/references/pnm_gridmanager-2d-constant.vtp
                                     ${CMAKE_CURRENT_BINARY_DIR}/generic-2dgrid-constant-params.vtp
                                     ${CMAKE_SOURCE_DIR}/test/references/pnm_gridmanager-2d-constant.vtp
                                     ${CMAKE_CURRENT_BINARY_DIR}/dgf-2dgrid-constant-params.vtp
                                     ${CMAKE_SOURCE_DIR}/test/references/pnm_gridmanager-1d-constant.vtp
                                     ${CMAKE_CURRENT_BINARY_DIR}/generic-1dgrid-constant-params.vtp
                                     ${CMAKE_SOURCE_DIR}/test/references/pnm_gridmanager-1d-constant.vtp
                                     ${CMAKE_CURRENT_BINARY_DIR}/dgf-1dgrid-constant-params.vtp
                             --command "${CMAKE_CURRENT_BINARY_DIR}/test_pnm_gridmanager test_pnm_gridmanager-constant-params.input")

dumux_add_test(NAME test_pnm_gridmanager_random_params
               LABELS unit io porenetwork
               TARGET test_pnm_gridmanager
               CMAKE_GUARD dune-foamgrid_FOUND
               COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
               CMD_ARGS      --script fuzzy
                             --files ${CMAKE_SOURCE_DIR}/test/references/pnm_gridmanager-3d-random.vtp
                                     ${CMAKE_CURRENT_BINARY_DIR}/generic-3dgrid-random-params.vtp
                                     ${CMAKE_SOURCE_DIR}/test/references/pnm_gridmanager-3d-random.vtp
                                     ${CMAKE_CURRENT_BINARY_DIR}/dgf-3dgrid-random-params.vtp
                                     ${CMAKE_SOURCE_DIR}/test/references/pnm_gridmanager-2d-random.vtp
                                     ${CMAKE_CURRENT_BINARY_DIR}/generic-2dgrid-random-params.vtp
                                     ${CMAKE_SOURCE_DIR}/test/references/pnm_gridmanager-2d-random.vtp
                                     ${CMAKE_CURRENT_BINARY_DIR}/dgf-2dgrid-random-params.vtp
                                     ${CMAKE_SOURCE_DIR}/test/references/pnm_gridmanager-1d-random.vtp
                                     ${CMAKE_CURRENT_BINARY_DIR}/generic-1dgrid-random-params.vtp
                                     ${CMAKE_SOURCE_DIR}/test/references/pnm_gridmanager-1d-random.vtp
                                     ${CMAKE_CURRENT_BINARY_DIR}/dgf-1dgrid-random-params.vtp
                             --command "${CMAKE_CURRENT_BINARY_DIR}/test_pnm_gridmanager test_pnm_gridmanager-random-params.input")

dumux_add_test(NAME test_pnm_gridmanager_remove_throats_on_boundary_none
               LABELS unit io porenetwork
               TARGET test_pnm_gridmanager
               CMAKE_GUARD dune-foamgrid_FOUND
               COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_pnm_gridmanager
               CMD_ARGS test_remove-troats-on-boundary.input)

dumux_add_test(NAME test_pnm_gridmanager_remove_throats_on_boundary_0
               LABELS unit io porenetwork
               TARGET test_pnm_gridmanager
               CMAKE_GUARD dune-foamgrid_FOUND
               COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_pnm_gridmanager
               CMD_ARGS test_remove-troats-on-boundary.input -Grid.RemoveThroatsOnBoundary 0)

dumux_add_test(NAME test_pnm_gridmanager_remove_throats_on_boundary_1
               LABELS unit io porenetwork
               TARGET test_pnm_gridmanager
               CMAKE_GUARD dune-foamgrid_FOUND
               COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_pnm_gridmanager
               CMD_ARGS test_remove-troats-on-boundary.input -Grid.RemoveThroatsOnBoundary 1)

dumux_add_test(NAME test_pnm_gridmanager_remove_throats_on_boundary_2
               LABELS unit io porenetwork
               TARGET test_pnm_gridmanager
               CMAKE_GUARD dune-foamgrid_FOUND
               COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_pnm_gridmanager
               CMD_ARGS test_remove-troats-on-boundary.input -Grid.RemoveThroatsOnBoundary 2)

dumux_add_test(NAME test_pnm_gridmanager_remove_throats_on_boundary_3
               LABELS unit io porenetwork
               TARGET test_pnm_gridmanager
               CMAKE_GUARD dune-foamgrid_FOUND
               COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_pnm_gridmanager
               CMD_ARGS test_remove-troats-on-boundary.input -Grid.RemoveThroatsOnBoundary 3)

dumux_add_test(NAME test_pnm_gridmanager_remove_throats_on_boundary_all
               LABELS unit io porenetwork
               TARGET test_pnm_gridmanager
               CMAKE_GUARD dune-foamgrid_FOUND
               COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_pnm_gridmanager
               CMD_ARGS test_remove-troats-on-boundary.input -Grid.RemoveThroatsOnBoundary "0 1 2 3")

387
388
dumux_add_test(SOURCES test_pnm_subgriddata.cc
               LABELS unit io porenetwork
389
               CMAKE_GUARD "( dune-foamgrid_FOUND AND dune-subgrid_FOUND )")