Debian Codegraph @

packages/trilinoscouplings/examples/scaling/CMakeLists.txt

raw
1
2 IF(${PACKAGE_NAME}_ENABLE_Epetra AND ${PACKAGE_NAME}_ENABLE_EpetraExt AND
3 ${PACKAGE_NAME}_ENABLE_Amesos AND ${PACKAGE_NAME}_ENABLE_AztecOO AND
4 ${PACKAGE_NAME}_ENABLE_Intrepid AND ${PACKAGE_NAME}_ENABLE_ML AND
5 ${PACKAGE_NAME}_ENABLE_Pamgen)
6 TRIBITS_ADD_EXECUTABLE_AND_TEST(
7 Example_Poisson_NoFE
8 SOURCES example_Poisson_NoFE.cpp
9 TrilinosCouplings_Pamgen_Utils.cpp
10 NUM_MPI_PROCS 1
11 )
12
13 TRIBITS_ADD_EXECUTABLE_AND_TEST(
14 Example_Poisson
15 SOURCES example_Poisson.cpp
16 TrilinosCouplings_Pamgen_Utils.cpp
17 NUM_MPI_PROCS 1
18 )
19
20 TRIBITS_ADD_EXECUTABLE(
21 Example_Poisson_BlockMaterials
22 SOURCES example_Poisson_BlockMaterials.cpp
23 TrilinosCouplings_Pamgen_Utils.cpp
24 COMM serial mpi
25 )
26
27 TRIBITS_ADD_TEST(
28 Example_Poisson_BlockMaterials
29 NAME "Poisson2D_BlockMaterials"
30 COMM serial mpi
31 NUM_MPI_PROCS 1
32 )
33
34 TRIBITS_ADD_TEST(
35 Example_Poisson_BlockMaterials
36 NAME "Poisson_BlockMaterials_RTC"
37 ARGS "--meshfile=Poisson_RTC.xml"
38 COMM serial mpi
39 NUM_MPI_PROCS 1
40 )
41
42
43 TRIBITS_ADD_EXECUTABLE_AND_TEST(
44 Example_Poisson2D
45 SOURCES example_Poisson2D.cpp
46 TrilinosCouplings_Pamgen_Utils.cpp
47 NUM_MPI_PROCS 1
48 )
49
50 TRIBITS_ADD_EXECUTABLE_AND_TEST(
51 Example_Poisson2D_p2
52 SOURCES example_Poisson2D_p2.cpp
53 TrilinosCouplings_Pamgen_Utils.cpp
54 NUM_MPI_PROCS 1
55 )
56
57
58 IF(${PACKAGE_NAME}_ENABLE_Kokkos)
59
60 TRIBITS_ADD_EXECUTABLE(
61 Example_Maxwell
62 SOURCES example_Maxwell.cpp
63 TrilinosCouplings_Pamgen_Utils.cpp
64 COMM serial mpi
65 )
66
67 TRIBITS_ADD_TEST(
68 Example_Maxwell
69 NAME Example_Maxwell_ML
70 ARGS "--solverName=ML"
71 NUM_MPI_PROCS 1
72 COMM mpi serial
73 )
74
75 IF(${PACKAGE_NAME}_ENABLE_Stratimikos)
76 TRIBITS_ADD_TEST(
77 Example_Maxwell
78 NAME Example_Maxwell_ML_Stratimikos
79 ARGS "--solverName=ML-Stratimikos"
80 NUM_MPI_PROCS 1
81 COMM mpi serial
82 )
83 ENDIF()
84
85 ENDIF()
86
87
88 IF(${PACKAGE_NAME}_ENABLE_Belos AND ${PACKAGE_NAME}_ENABLE_MueLu)
89
90 IF(MueLu_ENABLE_Epetra AND ${PACKAGE_NAME}_ENABLE_Kokkos)
91 TRIBITS_ADD_TEST(
92 Example_Maxwell
93 NAME Example_Maxwell_MueLu
94 ARGS "--solverName=MueLu"
95 NUM_MPI_PROCS 1
96 COMM mpi serial
97 )
98
99 TRIBITS_ADD_TEST(
100 Example_Maxwell
101 NAME Example_Maxwell_MueLu
102 ARGS "--solverName=MueLu"
103 NUM_MPI_PROCS 4
104 COMM mpi
105 )
106
107 IF(${PACKAGE_NAME}_ENABLE_Stratimikos)
108 TRIBITS_ADD_TEST(
109 Example_Maxwell
110 NAME Example_Maxwell_MueLu_Stratimikos
111 ARGS "--solverName=Stratimikos"
112 NUM_MPI_PROCS 1
113 COMM mpi serial
114 )
115
116 TRIBITS_ADD_TEST(
117 Example_Maxwell
118 NAME Example_Maxwell_MueLu_Stratimikos
119 ARGS "--solverName=Stratimikos"
120 NUM_MPI_PROCS 4
121 COMM mpi
122 )
123
124 ASSERT_DEFINED(${PACKAGE_NAME}_ENABLE_AvatarT)
125 IF( TPL_ENABLE_AVATAR OR ${PACKAGE_NAME}_ENABLE_AvatarT)
126 TRIBITS_ADD_TEST(
127 Example_Maxwell
128 NAME Example_Maxwell_Avatar
129 ARGS "--inputParams=Maxwell_avatar.xml"
130 NUM_MPI_PROCS 1
131 COMM mpi serial
132 )
133
134 ENDIF()
135
136 ENDIF()
137 ENDIF() # MueLu_ENABLE_Epetra
138 ENDIF()
139
140 TRIBITS_COPY_FILES_TO_BINARY_DIR(TestCopyMaxwellFiles
141 SOURCE_FILES Maxwell.xml Ninja.xml Maxwell_avatar.xml stratimikos.xml
142 SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}
143 DEST_DIR ${CMAKE_CURRENT_BINARY_DIR}
144 )
145
146 TRIBITS_ADD_EXECUTABLE_AND_TEST(
147 Example_GradDiv
148 SOURCES example_GradDiv.cpp
149 TrilinosCouplings_Pamgen_Utils.cpp
150 NUM_MPI_PROCS 1
151 )
152
153 TRIBITS_ADD_EXECUTABLE_AND_TEST(
154 Example_CVFEM
155 SOURCES example_CVFEM.cpp
156 NUM_MPI_PROCS 1
157 )
158
159 ##### Higher order family of tests #####
160 TRIBITS_ADD_EXECUTABLE(
161 Example_Poisson2D_pn
162 SOURCES example_Poisson2D_pn.cpp
163 TrilinosCouplings_Pamgen_Utils.cpp
164 COMM serial mpi
165 )
166
167 TRIBITS_ADD_TEST(
168 Example_Poisson2D_pn
169 NAME "Poisson2D_pn=2"
170 ARGS "Poisson2D.xml"
171 COMM serial mpi
172 NUM_MPI_PROCS 1
173 )
174
175 TRIBITS_ADD_TEST(
176 Example_Poisson2D_pn
177 NAME "Poisson2D_pn=3"
178 ARGS "Poisson2D_p3.xml"
179 COMM serial mpi
180 NUM_MPI_PROCS 1
181 )
182
183 TRIBITS_ADD_TEST(
184 Example_Poisson2D_pn
185 NAME "Poisson2D_pn=4"
186 ARGS "Poisson2D_p4.xml"
187 COMM serial mpi
188 NUM_MPI_PROCS 1
189 )
190
191
192
193 TRIBITS_COPY_FILES_TO_BINARY_DIR(TestCopyPoissonFiles
194 SOURCE_FILES Poisson.xml Poisson2D.xml Poisson2D_p3.xml Poisson2D_p4.xml Maxwell.xml CVFEM.xml ML_ho.xml muelu_ho.xml muelu_ho_lin.xml Poisson_RTC.xml GradDiv.xml Poisson_avatar.xml avatar.names avatar.trees bounds.data
195 SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}
196 DEST_DIR ${CMAKE_CURRENT_BINARY_DIR}
197 )
198 ENDIF()
199
200
201
202 IF(${PACKAGE_NAME}_ENABLE_Epetra AND ${PACKAGE_NAME}_ENABLE_EpetraExt AND
203 ${PACKAGE_NAME}_ENABLE_Amesos AND ${PACKAGE_NAME}_ENABLE_AztecOO AND
204 ${PACKAGE_NAME}_ENABLE_Intrepid AND ${PACKAGE_NAME}_ENABLE_ML AND
205 ${PACKAGE_NAME}_ENABLE_Pamgen AND ${PACKAGE_NAME}_ENABLE_Teko)
206 TRIBITS_ADD_EXECUTABLE_AND_TEST(
207 Example_Darcy
208 SOURCES example_Darcy.cpp
209 TrilinosCouplings_Pamgen_Utils.cpp
210 NUM_MPI_PROCS 1
211 )
212 TRIBITS_ADD_EXECUTABLE_AND_TEST(
213 Example_DivLSFEM
214 SOURCES example_DivLSFEM.cpp
215 TrilinosCouplings_Pamgen_Utils.cpp
216 NUM_MPI_PROCS 1
217 )
218 TRIBITS_ADD_EXECUTABLE_AND_TEST(
219 Example_CurlLSFEM
220 SOURCES example_CurlLSFEM.cpp
221 TrilinosCouplings_Pamgen_Utils.cpp
222 NUM_MPI_PROCS 1
223 )
224 TRIBITS_ADD_EXECUTABLE_AND_TEST(
225 Example_StabilizatedADR
226 SOURCES example_StabilizedADR.cpp
227 TrilinosCouplings_Pamgen_Utils.cpp
228 NUM_MPI_PROCS 1
229 )
230 TRIBITS_COPY_FILES_TO_BINARY_DIR(TestCopyFiles
231 SOURCE_FILES ADR.xml
232 Darcy.xml
233 CurlLSFEMin.xml
234 CurlLSFEMblock_in_block.xml
235 DivLSFEMin.xml
236
237 ML_nonsym.xml
238 SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}
239 DEST_DIR ${CMAKE_CURRENT_BINARY_DIR}
240 )
241 ENDIF()
242
243
244 IF(TPL_ENABLE_MPI AND ${PACKAGE_NAME}_ENABLE_Tpetra AND
245 ${PACKAGE_NAME}_ENABLE_Amesos2 AND ${PACKAGE_NAME}_ENABLE_Belos AND
246 ${PACKAGE_NAME}_ENABLE_Intrepid AND ${PACKAGE_NAME}_ENABLE_MueLu AND
247 ${PACKAGE_NAME}_ENABLE_STKIO AND ${PACKAGE_NAME}_ENABLE_STKMesh)
248 message(STATUS "TrilinosCouplings: Building Example_Poisson_STK")
249 TRIBITS_ADD_EXECUTABLE(
250 Example_Poisson_STK
251 SOURCES example_Poisson_stk.cpp
252 TrilinosCouplings_TpetraIntrepidPoissonExample_SolveWithBelos.cpp
253 )
254 TRIBITS_COPY_FILES_TO_BINARY_DIR(CopyMeshFilesSTK
255 SOURCE_FILES unit_cube_10int_hex.exo
256 unit_cube_5int_tet.exo
257 unit_cube_int_tri.exo
258 SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}
259 DEST_DIR ${CMAKE_CURRENT_BINARY_DIR}
260 )
261 ENDIF()
262
263 # ik 20 Mar 2012, mfh 17 May 2012
264 #
265 # Just build this executable; don't run it as a test (yet).
266 #
267 # Intrepid has required dependencies on Teuchos, Shards, and Sacado,
268 # so we don't have to name those packages explicitly here.
269 # Belos and Tpetra also both have required dependencies on Teuchos.
270 IF(${PACKAGE_NAME}_ENABLE_Belos AND
271 ${PACKAGE_NAME}_ENABLE_Intrepid AND
272 ${PACKAGE_NAME}_ENABLE_Pamgen AND
273 ${PACKAGE_NAME}_ENABLE_Tpetra)
274 TRIBITS_ADD_EXECUTABLE(
275 Example_Poisson_NoFE_Tpetra
276 SOURCES example_Poisson_NoFE_Tpetra.cpp
277 TrilinosCouplings_Pamgen_Utils.cpp
278 COMM serial mpi
279 )
280 ENDIF()
281
282 # ik 20 Mar 2012, mfh 17 May 2012
283 #
284 # Just build this executable; don't run it as a test (yet).
285 #
286 # Intrepid has required dependencies on Teuchos, Shards, and Sacado,
287 # so we don't have to name those packages explicitly here.
288 IF(${PACKAGE_NAME}_ENABLE_AztecOO AND
289 ${PACKAGE_NAME}_ENABLE_Epetra AND
290 ${PACKAGE_NAME}_ENABLE_EpetraExt AND
291 ${PACKAGE_NAME}_ENABLE_Intrepid AND
292 ${PACKAGE_NAME}_ENABLE_ML AND
293 ${PACKAGE_NAME}_ENABLE_Pamgen)
294 TRIBITS_ADD_EXECUTABLE(
295 Example_Poisson_NoFE_Epetra
296 SOURCES example_Poisson_NoFE_Epetra.cpp
297 TrilinosCouplings_Pamgen_Utils.cpp
298 COMM serial mpi
299 )
300 ENDIF()
301
302 # mfh 18 May 2012
303 #
304 # Just build this executable; don't run it as a test (yet).
305 #
306 # Intrepid has required dependencies on Teuchos, Shards, and Sacado,
307 # so we don't have to name those packages explicitly here.
308 # Belos and Tpetra also both have required dependencies on Teuchos.
309 # The executable may use MueLu only if the MueLu package is enabled.
310 IF(${PACKAGE_NAME}_ENABLE_Belos AND
311 ${PACKAGE_NAME}_ENABLE_Intrepid AND
312 ${PACKAGE_NAME}_ENABLE_Pamgen AND
313 ${PACKAGE_NAME}_ENABLE_Tpetra)
314 TRIBITS_ADD_EXECUTABLE(
315 IntrepidPoisson_Pamgen_Tpetra
316 SOURCES IntrepidPoisson_Pamgen_Tpetra_main.cpp
317 TrilinosCouplings_IntrepidPoissonExampleHelpers.cpp
318 TrilinosCouplings_TpetraIntrepidPoissonExample.cpp
319 TrilinosCouplings_TpetraIntrepidPoissonExample_SolveWithBelos.cpp
320 TrilinosCouplings_Pamgen_Utils.cpp
321 COMM serial mpi
322 )
323
324 TRIBITS_ADD_EXECUTABLE_AND_TEST(
325 Example_Poisson2D_p2_tpetra
326 SOURCES example_Poisson2D_p2_tpetra.cpp
327 TrilinosCouplings_Pamgen_Utils.cpp
328 NUM_MPI_PROCS 1
329 COMM mpi # Fails to build in serial (see Trilinos #465)
330 )
331
332 TRIBITS_ADD_EXECUTABLE(
333 Example_Poisson2D_pn_tpetra
334 SOURCES example_Poisson2D_pn_tpetra.cpp
335 TrilinosCouplings_Pamgen_Utils.cpp
336 TrilinosCouplings_IntrepidPoissonExampleHelpers.cpp
337 COMM mpi
338 )
339
340 TRIBITS_ADD_TEST(
341 Example_Poisson2D_pn_tpetra
342 NAME "Poisson2D_pn=4_tpetra"
343 ARGS "--mesh=Poisson2D_p4.xml --solver=muelu_ho.xml"
344 COMM mpi
345 NUM_MPI_PROCS 1
346 )
347
348
349 ASSERT_DEFINED(${PACKAGE_NAME}_ENABLE_AvatarT)
350 IF( TPL_ENABLE_AVATAR OR ${PACKAGE_NAME}_ENABLE_AvatarT)
351 TRIBITS_ADD_TEST(
352 IntrepidPoisson_Pamgen_Tpetra
353 NAME IntrepidPoisson_Pamgen_Avatar
354 ARGS "--inputParams=Poisson_avatar.xml"
355 NUM_MPI_PROCS 1
356 COMM mpi serial
357 )
358 ENDIF()
359
360
361 ENDIF()
362
363 # mfh 24 May 2012
364 #
365 # Just build this executable; don't run it as a test (yet).
366 #
367 # Intrepid has required dependencies on Teuchos, Shards, and Sacado,
368 # so we don't have to name those packages explicitly here.
369 # Belos both also have required dependencies on Teuchos.
370 IF(${PACKAGE_NAME}_ENABLE_Belos AND
371 ${PACKAGE_NAME}_ENABLE_Intrepid AND
372 ${PACKAGE_NAME}_ENABLE_Pamgen AND
373 ${PACKAGE_NAME}_ENABLE_Epetra)
374
375 # The example has an option to use MueLu, if it is enabled. _If_
376 # MueLu is enabled, the example needs MueLu to support Epetra. It
377 # is possible to turn off MueLu's support for Epetra, so we have to
378 # check here whether we are allowed to use MueLu with Epetra.
379 IF(${PACKAGE_NAME}_ENABLE_MueLu)
380 # This variable only exists if MueLu is enabled.
381 ASSERT_DEFINED(MueLu_ENABLE_Epetra)
382 SET(TrilinosCouplings_ENABLE_EXAMPLE_IntrepidPoisson_Pamgen_Epetra ${MueLu_ENABLE_Epetra})
383 ELSE()
384 # The example can still build without MueLu.
385 SET(TrilinosCouplings_ENABLE_EXAMPLE_IntrepidPoisson_Pamgen_Epetra ON)
386 ENDIF()
387
388 IF(TrilinosCouplings_ENABLE_EXAMPLE_IntrepidPoisson_Pamgen_Epetra)
389 TRIBITS_ADD_EXECUTABLE(
390 IntrepidPoisson_Pamgen_Epetra
391 SOURCES IntrepidPoisson_Pamgen_Epetra_main.cpp
392 TrilinosCouplings_IntrepidPoissonExampleHelpers.cpp
393 TrilinosCouplings_EpetraIntrepidPoissonExample.cpp
394 TrilinosCouplings_EpetraIntrepidPoissonExample_SolveWithBelos.cpp
395 TrilinosCouplings_Pamgen_Utils.cpp
396 COMM serial mpi
397 )
398 ENDIF()
399 ENDIF()
400
401 IF(${PACKAGE_NAME}_ENABLE_AztecOO AND
402 ${PACKAGE_NAME}_ENABLE_Intrepid AND
403 ${PACKAGE_NAME}_ENABLE_Pamgen AND
404 ${PACKAGE_NAME}_ENABLE_Epetra AND
405 ${PACKAGE_NAME}_ENABLE_ML AND
406 ${PACKAGE_NAME}_ENABLE_MueLu)
407
408 # The example requires MueLu and needs MueLu to support Tpetra. It
409 # is possible to enable MueLu, yet turn off MueLu's support for
410 # Epetra, so we have to check here whether we are allowed to use
411 # MueLu with Epetra. We can't check above because if MueLu is not
412 # enabled, the MueLu_ENABLE_Epetra variable does not exist.
413
414 IF(MueLu_ENABLE_Epetra)
415 TRIBITS_ADD_EXECUTABLE(
416 IntrepidPoisson_Pamgen_EpetraAztecOO
417 SOURCES IntrepidPoisson_Pamgen_EpetraAztecOO_main.cpp
418 TrilinosCouplings_IntrepidPoissonExampleHelpers.cpp
419 TrilinosCouplings_EpetraIntrepidPoissonExample.cpp
420 TrilinosCouplings_EpetraIntrepidPoissonExample_SolveWithAztecOO.cpp
421 TrilinosCouplings_Pamgen_Utils.cpp
422 COMM serial mpi
423 )
424 ENDIF() # MueLu_ENABLE_Epetra
425 ENDIF()
426
427 # Copy over example xml file for [E|T]petraIntrepidPoisson example
428 TRIBITS_COPY_FILES_TO_BINARY_DIR(copyIntrepidPoissonFiles
429 DEST_FILES intrepid_poisson.xml intrepid_poisson_muelu_cheby.xml intrepid_poisson_pamgen.xml
430 )
431
432 # mfh 14 Feb 2013
433 #
434 # Just build this executable; don't run it as a test.
435 #
436 # Tpetra has a required dependency on Teuchos and Kokkos,
437 # so we don't have to name those packages explicitly here.
438 # This test uses the default Kokkos Node type.
439 IF(${PACKAGE_NAME}_ENABLE_Epetra AND ${PACKAGE_NAME}_ENABLE_Tpetra AND TPETRA_INST_INT_INT)
440 TRIBITS_ADD_EXECUTABLE(
441 epetraTpetraImportBenchmark
442 SOURCES epetraTpetraImportBenchmark.cpp
443 COMM serial mpi
444 )
445 ENDIF()
446
447 # lbv 22 March 2018
448 #
449 # Just build this executable; don't run it as a test (yet).
450 #
451 IF(${PACKAGE_NAME}_ENABLE_Belos AND
452 ${PACKAGE_NAME}_ENABLE_Intrepid AND
453 ${PACKAGE_NAME}_ENABLE_Pamgen AND
454 ${PACKAGE_NAME}_ENABLE_Tpetra)
455 TRIBITS_ADD_EXECUTABLE(
456 StructuredIntrepidPoisson_Pamgen_Tpetra
457 SOURCES StructuredIntrepidPoisson_Pamgen_Tpetra_main.cpp
458 TrilinosCouplings_IntrepidPoissonExampleHelpers.cpp
459 TrilinosCouplings_TpetraIntrepidStructuredPoissonExample.cpp
460 TrilinosCouplings_TpetraIntrepidPoissonExample_SolveWithBelos.cpp
461 TrilinosCouplings_Pamgen_Utils.cpp
462 COMM serial mpi
463 )
464
465 TRIBITS_COPY_FILES_TO_BINARY_DIR(TestCopyMueLuStructuredFiles
466 SOURCE_FILES muelu_structured_aggregation.xml
467 muelu_geometric_interpolation.xml
468 SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}
469 DEST_DIR ${CMAKE_CURRENT_BINARY_DIR}
470 )
471 ENDIF()
472
473 # pbo 19 June 2018
474 #
475 # Just build this executable; don't run it as a test (yet).
476 #
477 IF(${PACKAGE_NAME}_ENABLE_Belos AND
478 ${PACKAGE_NAME}_ENABLE_Intrepid AND
479 ${PACKAGE_NAME}_ENABLE_Pamgen AND
480 ${PACKAGE_NAME}_ENABLE_Tpetra)
481 TRIBITS_ADD_EXECUTABLE(
482 HybridIntrepidPoisson3D_Pamgen_Tpetra
483 SOURCES HybridIntrepidPoisson3D_Pamgen_Tpetra_main.cpp
484 TrilinosCouplings_IntrepidPoissonExampleHelpers.cpp
485 TrilinosCouplings_TpetraIntrepidHybridPoisson3DExample.cpp
486 TrilinosCouplings_TpetraIntrepidPoissonExample_SolveWithBelos.cpp
487 TrilinosCouplings_Pamgen_Utils.cpp
488 COMM serial mpi
489 )
490 TRIBITS_ADD_EXECUTABLE(
491 HybridIntrepidPoisson2D_Pamgen_Tpetra
492 SOURCES HybridIntrepidPoisson2D_Pamgen_Tpetra_main.cpp
493 TrilinosCouplings_IntrepidPoissonExampleHelpers.cpp
494 TrilinosCouplings_TpetraIntrepidHybridPoisson2DExample.cpp
495 TrilinosCouplings_TpetraIntrepidPoissonExample_SolveWithBelos.cpp
496 TrilinosCouplings_Pamgen_Utils.cpp
497 COMM serial mpi
498 )
499
500 TRIBITS_COPY_FILES_TO_BINARY_DIR(TestCopyMueLuHybridFiles
501 SOURCE_FILES muelu_hybrid_aggregation_2D.xml muelu_hybrid_aggregation_3D.xml
502 SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}
503 DEST_DIR ${CMAKE_CURRENT_BINARY_DIR}
504 )
505
506
507 IF(${PACKAGE_NAME}_ENABLE_MueLu)
508 TRIBITS_ADD_EXECUTABLE(
509 Example_Maxwell_Tpetra
510 SOURCES example_Maxwell_Tpetra.cpp
511 TrilinosCouplings_Pamgen_Utils.cpp
512 COMM serial mpi
513 )
514
515 TRIBITS_ADD_TEST(
516 Example_Maxwell_Tpetra
517 NAME Example_Maxwell_Tpetra_MueLu
518 ARGS "--solverName=MueLu"
519 NUM_MPI_PROCS 1
520 COMM mpi serial
521 )
522 ENDIF()
523
524 ENDIF()
525
526
527 # Just build this executable; don't run it as a test.
528 IF (${PACKAGE_NAME}_ENABLE_Pamgen AND
529 ${PACKAGE_NAME}_ENABLE_SEACASExodus AND
530 ${PACKAGE_NAME}_ENABLE_SEACASNemesis)
531 message("-- TrilinosCouplings: Building rtpamgen")
532 TRIBITS_ADD_EXECUTABLE(
533 rtpamgen
534 SOURCES rtpamgen.cpp
535 COMM serial mpi
536 )
537 TRIBITS_COPY_FILES_TO_BINARY_DIR(TestRtpamgen
538 SOURCE_FILES test.rtp
539 SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}
540 DEST_DIR ${CMAKE_CURRENT_BINARY_DIR}
541 )
542
543
544 TRIBITS_ADD_TEST(
545 rtpamgen
546 NAME "RTpamgen_test"
547 ARGS "--file=test.rtp"
548 COMM serial mpi
549 NUM_MPI_PROCS 1
550 )
551
552
553 ENDIF()