CMakeLists.txt 1.59 KB
Newer Older
1 2
CMAKE_DEPENDENT_OPTION(NEKTAR_SOLVER_VORTEXWAVE
    "Build the Vortex-Wave interaction solver." ON
3
    "NEKTAR_BUILD_SOLVERS;NEKTAR_SOLVER_INCNAVIERSTOKES" OFF)
4

5
IF (NOT NEKTAR_BUILD_SOLVERS OR NOT NEKTAR_SOLVER_INCNAVIERSTOKES)
6 7 8
    SET(NEKTAR_SOLVER_VORTEXWAVE OFF CACHE INTERNAL "")
ENDIF()

9 10
IF( NEKTAR_SOLVER_VORTEXWAVE )
    SET(VortexWaveInteractionSolverSource
Andrea Isoni's avatar
Andrea Isoni committed
11
       ../ADRSolver/EquationSystems/SteadyAdvectionDiffusion.cpp
12
       ../ADRSolver/EquationSystems/SteadyAdvectionDiffusionReaction.cpp
Andrea Isoni's avatar
Andrea Isoni committed
13 14
       ./VortexWaveInteraction.cpp 
       ./VortexWaveInteractionSolver.cpp 
15
       $<TARGET_OBJECTS:IncNavierStokesSolver-obj>
16 17
       )

18
    SET(CalcL2ToLinfPressureSource
19 20
       ../ADRSolver/EquationSystems/SteadyAdvectionDiffusion.cpp
       ../ADRSolver/EquationSystems/SteadyAdvectionDiffusionReaction.cpp
21
       ./CalcL2ToLinfPressure.cpp
22
       ./VortexWaveInteraction.cpp 
23
       $<TARGET_OBJECTS:IncNavierStokesSolver-obj>
24 25
       )

26
    SET(CalcVWIplusPressureSource
27 28 29 30
       ../ADRSolver/EquationSystems/SteadyAdvectionDiffusion.cpp
       ../ADRSolver/EquationSystems/SteadyAdvectionDiffusionReaction.cpp
       ./CalcVWIplusPressure.cpp
       ./VortexWaveInteraction.cpp 
31
       $<TARGET_OBJECTS:IncNavierStokesSolver-obj>
32 33
       )

34
    SUBDIRS(utilities)
35

36
    ADD_SOLVER_EXECUTABLE(VortexWaveInteractionSolver SOURCES
37 38 39 40 41 42
	${VortexWaveInteractionSolverSource})
    ADD_SOLVER_UTILITY(CalcL2ToLinfPressure VortexWaveInteractionSolver SOURCES
	${CalcL2ToLinfPressureSource})
    ADD_SOLVER_UTILITY(CalcVWIplusPressure VortexWaveInteractionSolver SOURCES
	${CalcVWIplusPressureSource})
ENDIF( NEKTAR_SOLVER_VORTEXWAVE )