CMakeLists.txt 5.56 KB
Newer Older
1
SET(LinkLibraries 
2
3
4
    optimized MultiRegions debug MultiRegions-g    
    optimized LocalRegions debug LocalRegions-g    
    optimized SpatialDomains debug SpatialDomains-g    
5
6
7
8
9
    optimized StdRegions debug StdRegions-g 
    optimized LibUtilities debug LibUtilities-g
    optimized ${Boost_THREAD_LIBRARY_RELEASE} debug ${Boost_THREAD_LIBRARY_DEBUG}
    optimized ${Boost_IOSTREAMS_LIBRARY_RELEASE} debug ${Boost_IOSTREAMS_LIBRARY_DEBUG}
    optimized ${Boost_ZLIB_LIBRARY_RELEASE} debug ${Boost_ZLIB_LIBRARY_DEBUG}
10
    optimized ${TINYXML_LIB} debug ${TINYXML_LIB}
Spencer Sherwin's avatar
Spencer Sherwin committed
11
    optimized sbtk    debug sbtk
12
13
)

Hanieh Mirzaee's avatar
Hanieh Mirzaee committed
14
SET(HelmholtzCont1DSource  Helmholtz1D.cpp)
15
ADD_NEKTAR_EXECUTABLE(Helmholtz1D demos HelmholtzCont1DSource)
Hanieh Mirzaee's avatar
Hanieh Mirzaee committed
16
17
18
TARGET_LINK_LIBRARIES(Helmholtz1D ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(Helmholtz1D)

Peter Vos's avatar
Peter Vos committed
19
SET(HelmholtzCont2DSource  Helmholtz2D.cpp)
20
ADD_NEKTAR_EXECUTABLE(Helmholtz2D demos HelmholtzCont2DSource)
21
22
23
TARGET_LINK_LIBRARIES(Helmholtz2D ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(Helmholtz2D)

Spencer Sherwin's avatar
.    
Spencer Sherwin committed
24
25
26
27
#SET(Helmholtz2DHomo1DSource  Helmholtz2DHomo1D.cpp)
#ADD_NEKTAR_EXECUTABLE(Helmholtz2DHomo1D Helmholtz2DHomo1DSource)
#TARGET_LINK_LIBRARIES(Helmholtz2DHomo1D ${LinkLibraries})
#SET_LAPACK_LINK_LIBRARIES(Helmholtz2DHomo1D)
28

29
SET(HelmholtzCont3DSource  Helmholtz3D.cpp)
30
ADD_NEKTAR_EXECUTABLE(Helmholtz3D demos HelmholtzCont3DSource)
31
32
33
TARGET_LINK_LIBRARIES(Helmholtz3D ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(Helmholtz3D)

Spencer Sherwin's avatar
.    
Spencer Sherwin committed
34
SET(Helmholtz3DHomo1DSource  Helmholtz3DHomo1D.cpp)
35
ADD_NEKTAR_EXECUTABLE(Helmholtz3DHomo1D demos Helmholtz3DHomo1DSource)
Spencer Sherwin's avatar
.    
Spencer Sherwin committed
36
37
38
TARGET_LINK_LIBRARIES(Helmholtz3DHomo1D ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(Helmholtz3DHomo1D)

39
SET(Helmholtz3DHomo2DSource  Helmholtz3DHomo2D.cpp)
40
ADD_NEKTAR_EXECUTABLE(Helmholtz3DHomo2D demos Helmholtz3DHomo2DSource)
41
42
43
TARGET_LINK_LIBRARIES(Helmholtz3DHomo2D ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(Helmholtz3DHomo2D)

Hanieh Mirzaee's avatar
Hanieh Mirzaee committed
44
SET(HDGHelmholtz1DSource  HDGHelmholtz1D.cpp)
45
ADD_NEKTAR_EXECUTABLE(HDGHelmholtz1D demos HDGHelmholtz1DSource)
Hanieh Mirzaee's avatar
Hanieh Mirzaee committed
46
47
48
TARGET_LINK_LIBRARIES(HDGHelmholtz1D ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(HDGHelmholtz1D)

Spencer Sherwin's avatar
Spencer Sherwin committed
49
SET(HDGHelmholtz2DSource  HDGHelmholtz2D.cpp)
50
ADD_NEKTAR_EXECUTABLE(HDGHelmholtz2D demos HDGHelmholtz2DSource)
Spencer Sherwin's avatar
Spencer Sherwin committed
51
52
TARGET_LINK_LIBRARIES(HDGHelmholtz2D ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(HDGHelmholtz2D)
53

54
55
56
57
58
SET(HDGHelmholtz3DSource  HDGHelmholtz3D.cpp)
ADD_NEKTAR_EXECUTABLE(HDGHelmholtz3D demos HDGHelmholtz3DSource)
TARGET_LINK_LIBRARIES(HDGHelmholtz3D ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(HDGHelmholtz3D)

59
SET(HDGHelmholtz3DHomo1DSource  HDGHelmholtz3DHomo1D.cpp)
60
ADD_NEKTAR_EXECUTABLE(HDGHelmholtz3DHomo1D demos HDGHelmholtz3DHomo1DSource)
61
62
TARGET_LINK_LIBRARIES(HDGHelmholtz3DHomo1D ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(HDGHelmholtz3DHomo1D)
63
64
65
66
67

SET(Deriv3DHomo1D_SingleModeSource  Deriv3DHomo1D_SingleMode.cpp)
ADD_NEKTAR_EXECUTABLE(Deriv3DHomo1D_SingleMode demos Deriv3DHomo1D_SingleModeSource)
TARGET_LINK_LIBRARIES(Deriv3DHomo1D_SingleMode ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(Deriv3DHomo1D_SingleMode)
68

69
70
71
72
73
74
75
76
77
78
SET(Deriv3DHomo1DSource  Deriv3DHomo1D.cpp)
ADD_NEKTAR_EXECUTABLE(Deriv3DHomo1D demos Deriv3DHomo1DSource)
TARGET_LINK_LIBRARIES(Deriv3DHomo1D ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(Deriv3DHomo1D)

SET(Deriv3DHomo2DSource  Deriv3DHomo2D.cpp)
ADD_NEKTAR_EXECUTABLE(Deriv3DHomo2D demos Deriv3DHomo2DSource)
TARGET_LINK_LIBRARIES(Deriv3DHomo2D ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(Deriv3DHomo2D)

79
SET(SteadyAdvectionDiffusionReactionCont2DSource  SteadyAdvectionDiffusionReaction2D.cpp)
80
ADD_NEKTAR_EXECUTABLE(SteadyAdvectionDiffusionReaction2D demos SteadyAdvectionDiffusionReactionCont2DSource)
81
82
83
TARGET_LINK_LIBRARIES(SteadyAdvectionDiffusionReaction2D ${LinkLibraries})
SET_LAPACK_LINK_LIBRARIES(SteadyAdvectionDiffusionReaction2D)

84
85
86
87
88
89
90
# Generate list of available subdirectories
FILE(GLOB dir_list "*")
FOREACH(dir ${dir_list})
    IF(IS_DIRECTORY ${dir} AND EXISTS ${dir}/CMakeLists.txt)
        ADD_SUBDIRECTORY(${dir})
    ENDIF(IS_DIRECTORY ${dir} AND EXISTS ${dir}/CMakeLists.txt)
ENDFOREACH(dir ${dir_list})
Spencer Sherwin's avatar
Spencer Sherwin committed
91
92
93
94
95

ADD_NEKTAR_TEST(Helmholtz1D_CG_P8)
ADD_NEKTAR_TEST(Helmholtz1D_CG_P8_RBC)
ADD_NEKTAR_TEST(Helmholtz1D_HDG_P8)
ADD_NEKTAR_TEST(Helmholtz1D_HDG_P8_RBC)
96
97
98
99
100

ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes)
ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Nodes)
ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_mlsc)
ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_sc)
Dave Moxey's avatar
Dave Moxey committed
101
#ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_full)
102
ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_iter_sc)
103
104
105
106
107
108
ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_iter_ml)
ADD_NEKTAR_TEST(Helmholtz2D_CG_P9_Modes_varcoeff)
ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_curved_quad)
ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_curved_tri)
ADD_NEKTAR_TEST(Helmholtz2D_HDG_P7_Modes)
ADD_NEKTAR_TEST(Helmholtz2D_HDG_P7_Modes_AllBCs)
Dave Moxey's avatar
Dave Moxey committed
109
110
111

ADD_NEKTAR_TEST(Helmholtz3D_CG_Hex)
ADD_NEKTAR_TEST(Helmholtz3D_CG_Hex_AllBCs)
112
ADD_NEKTAR_TEST(Helmholtz3D_CG_Hex_AllBCs_iter_ml)
Dave Moxey's avatar
Dave Moxey committed
113
114
ADD_NEKTAR_TEST(Helmholtz3D_CG_Tet)
ADD_NEKTAR_TEST(Helmholtz3D_CG_Prism)
115
116
ADD_NEKTAR_TEST(Helmholtz3D_CG_Prism_iter_ml)
ADD_NEKTAR_TEST(Helmholtz3D_CG_Prism_Deformed)
Dave Moxey's avatar
Dave Moxey committed
117
118
119
ADD_NEKTAR_TEST(Helmholtz3D_CG_Homo1D)
ADD_NEKTAR_TEST(Helmholtz3D_HDG_Homo1D)

Spencer Sherwin's avatar
Spencer Sherwin committed
120
ADD_NEKTAR_TEST(LinearAdvDiffReact2D_P7_Modes)
Spencer Sherwin's avatar
Spencer Sherwin committed
121
122
ADD_NEKTAR_TEST(Deriv3D_Homo1D)
ADD_NEKTAR_TEST(Deriv3D_Homo2D)
123

124
125
126
IF (NEKTAR_USE_MPI)
    ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_xxt_full)
    ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_xxt_sc)
127
128
    ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_iter_sc_par3)
    ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_iter_ml_par3)
129
130
    ADD_NEKTAR_TEST(Helmholtz3D_CG_Hex_AllBCs_iter_ml_par3)
    ADD_NEKTAR_TEST(Helmholtz3D_CG_Prism_iter_ml_par3)
131
ENDIF (NEKTAR_USE_MPI)