CMakeLists.txt 1.47 KB
Newer Older
gsell's avatar
gsell committed
1
set (_SRCS
2 3 4
    FFTBoxPoissonSolver.cpp
    FFTPoissonSolver.cpp
    P3MPoissonSolver.cpp
gsell's avatar
gsell committed
5
    )
6 7 8 9 10 11

set (HDRS
    FFTBoxPoissonSolver.h
    FFTPoissonSolver.h
    P3MPoissonSolver.h
    PoissonSolver.h
gsell's avatar
gsell committed
12 13 14 15 16 17 18
    )

if (ENABLE_SAAMG_SOLVER)
    list (APPEND _SRCS
        ArbitraryDomain.cpp
        BoxCornerDomain.cpp
        EllipticDomain.cpp
19
        IrregularDomain.cpp
gsell's avatar
gsell committed
20 21
        MGPoissonSolver.cpp
        RectangularDomain.cpp
22
        RegularDomain.cpp
gsell's avatar
gsell committed
23 24 25 26 27 28
        )

    list (APPEND HDRS
        ArbitraryDomain.h
        BoxCornerDomain.h
        EllipticDomain.h
29
        IrregularDomain.h
gsell's avatar
gsell committed
30 31
        MGPoissonSolver.h
        RectangularDomain.h
32
        RegularDomain.h
gsell's avatar
gsell committed
33 34 35 36 37 38 39 40 41
        )

endif ()

set (AMR_MG_DIR "")

if (ENABLE_AMR)
    list (APPEND _SRCS AMReXSolvers/MLPoissonSolver.cpp)
    list (APPEND HDRS AmrPoissonSolver.h AMReXSolvers/MLPoissonSolver.h)
42
    
gsell's avatar
gsell committed
43 44
    if (AMREX_ENABLE_FBASELIB)
        list (APPEND _SRCS BoxLibSolvers/FMGPoissonSolver.cpp)
45
        list (APPEND HDRS BoxLibSolvers/FMGPoissonSolver.h)
gsell's avatar
gsell committed
46
    endif ()
47

gsell's avatar
gsell committed
48
    if (ENABLE_AMR_MG_SOLVER)
frey_m's avatar
frey_m committed
49
        add_subdirectory (AMR_MG)
gsell's avatar
gsell committed
50 51
        set (AMR_MG_DIR "${CMAKE_CURRENT_SOURCE_DIR}/AMR_MG")
    endif ()
52

gsell's avatar
gsell committed
53
endif ()
gsell's avatar
gsell committed
54 55

include_directories (
gsell's avatar
gsell committed
56 57 58
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${AMR_MG_DIR}
    )
gsell's avatar
gsell committed
59

gsell's avatar
gsell committed
60
add_opal_sources (${_SRCS})
61

62
install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Solvers")
gsell's avatar
gsell committed
63 64 65 66 67 68 69

# vi: set et ts=4 sw=4 sts=4:

# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
70
# require-final-newline: nil
gsell's avatar
gsell committed
71
# End: