Debian Codegraph @

packages/muelu/research/regionMG/example/CMakeLists.txt

raw
1 TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
2 TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../../../test/unit_tests)
3 TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../src)
4
5 # This test requires Tpetra and Amesos2, so it's only included if Tpetra is enabled
6 IF (${PACKAGE_NAME}_ENABLE_Amesos2)
7
8
9 TRIBITS_ADD_EXECUTABLE(
10 RegionExampleDriver
11 SOURCES ../test/structured/Driver_Structured_Regions.cpp # Reuse the source code form the test directory
12 COMM serial mpi
13 )
14
15 TRIBITS_COPY_FILES_TO_BINARY_DIR(StructuredRegion_example_cp
16 SOURCE_FILES
17 amg_1dof.xml
18 elasticity_3d.xml
19 poisson_3d.xml
20 structured_unstructured_1dof.xml
21 )
22
23 MUELU_ADD_SERIAL_AND_MPI_TEST(
24 RegionExampleDriver
25 NAME "Structured_Region_Example_Elasticity3D"
26 ARGS "--linAlgebra=Tpetra --xml=elasticity_3d.xml --matrixType=Elasticity3D --nx=28 --ny=28 --nz=28 --smootherIts=2"
27 COMM serial mpi
28 NUM_MPI_PROCS 4
29 )
30
31 MUELU_ADD_SERIAL_AND_MPI_TEST(
32 RegionExampleDriver
33 NAME "Structured_Region_Example_Poisson3D_27pt_stencil"
34 ARGS "--linAlgebra=Tpetra --xml=poisson_3d.xml --matrixType=Brick3D --nx=28 --ny=28 --nz=28--smootherIts=2"
35 COMM serial mpi
36 NUM_MPI_PROCS 4
37 )
38
39 MUELU_ADD_SERIAL_AND_MPI_TEST(
40 RegionExampleDriver
41 NAME "Structured_Region_Example_Poisson3D_27pt_stencil_AMG"
42 ARGS "--linAlgebra=Tpetra --xml=poisson_3d.xml --matrixType=Brick3D --nx=50 --ny=50 --nz=50 --smootherIts=2 --coarseSolverType=amg --coarseAmgXml=amg_1dof.xml"
43 COMM serial mpi
44 NUM_MPI_PROCS 4
45 )
46
47 MUELU_ADD_SERIAL_AND_MPI_TEST(
48 RegionExampleDriver
49 NAME "Structured_Unstructured_Region_Example_Poisson3D_27pt_stencil"
50 ARGS "--linAlgebra=Tpetra --xml=structured_unstructured_1dof.xml --matrixType=Brick3D --nx=28 --ny=28 --nz=28 --smootherIts=2 --unstructured={1,2}"
51 COMM serial mpi
52 NUM_MPI_PROCS 4
53 )
54
55 ENDIF()