Skip to content
Snippets Groups Projects
Commit 7f3072a4 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

some new domes

parent c801d84e
No related branches found
No related tags found
No related merge requests found
......@@ -10,22 +10,8 @@ if(AMDIS_FOUND)
SET(BASIS_LIBS ${AMDIS_LIBRARIES})
endif(AMDIS_FOUND)
# find tools-directory
find_path(TOOLS_DIR NAMES "baseProblem" "diffuseDomain" DOC "path to tools directory in AMDiS-trunk dir" NO_DEFAULT_PATH)
if (TOOLS_DIR)
if (NOT EXISTS ${TOOLS_DIR}/diffuseDomain/Helpers.h OR NOT EXISTS ${TOOLS_DIR}/baseProblems/BaseProblem.h)
message(FATAL_ERROR "Wrong tools directory! Directory must contain the subdirectories 'diffuseDomain' and 'baseProblems'")
endif()
else()
message(FATAL_ERROR "No tools-directory specified!")
endif(TOOLS_DIR)
include_directories(${TOOLS_DIR}/diffuseDomain)
include_directories(${TOOLS_DIR}/baseProblems)
set(ball src/ball.cc)
set(bunny src/bunny.cc)
set(cahn_hilliard src/cahn_hilliard.cc ${TOOLS_DIR}/baseProblems/CahnHilliard.cc)
set(ellipt src/ellipt.cc)
set(elliptBase src/elliptBaseProblem.cc)
set(elliptImplicit src/elliptImplicit.cc)
......@@ -38,6 +24,8 @@ set(sphere src/sphere.cc)
set(torus src/torus.cc)
set(vecellipt src/vecellipt.cc)
set(vecheat src/vecheat.cc)
set(rhsLaplace src/rhsLaplace.cc)
set(laplace src/laplace.cc)
add_executable("ball" ${ball})
target_link_libraries("ball" ${BASIS_LIBS})
......@@ -45,9 +33,6 @@ target_link_libraries("ball" ${BASIS_LIBS})
add_executable("bunny" ${bunny})
target_link_libraries("bunny" ${BASIS_LIBS})
add_executable("cahn_hilliard" ${cahn_hilliard})
target_link_libraries("cahn_hilliard" ${BASIS_LIBS})
add_executable("ellipt" ${ellipt})
target_link_libraries("ellipt" ${BASIS_LIBS})
......@@ -84,5 +69,32 @@ target_link_libraries("vecellipt" ${BASIS_LIBS})
add_executable("vecheat" ${vecheat})
target_link_libraries("vecheat" ${BASIS_LIBS})
# find tools-directory
find_path(TOOLS_DIR NAMES "baseProblem" "diffuseDomain" DOC "Path to tools directory in AMDiS-trunk dir" NO_DEFAULT_PATH)
if (TOOLS_DIR)
if (NOT EXISTS ${TOOLS_DIR}/diffuseDomain/Helpers.h OR NOT EXISTS ${TOOLS_DIR}/baseProblems/BaseProblem.h)
message(WARNING "Wrong tools directory! Directory must contain the subdirectories 'diffuseDomain' and 'baseProblems'")
else()
include_directories(${TOOLS_DIR}/diffuseDomain)
include_directories(${TOOLS_DIR}/baseProblems)
set(cahn_hilliard src/cahn_hilliard.cc ${TOOLS_DIR}/baseProblems/CahnHilliard.cc)
add_executable("cahn_hilliard" ${cahn_hilliard})
target_link_libraries("cahn_hilliard" ${BASIS_LIBS})
set(drivenCavity ${TOOLS_DIR}/diffuseDomain/POperators.cc
${TOOLS_DIR}/baseProblems/CahnHilliard.cc
${TOOLS_DIR}/baseProblems/NavierStokes_TaylorHood.cc
src/chns/drivenCavity.cc)
add_executable("drivenCavity" ${drivenCavity})
target_link_libraries("drivenCavity" ${BASIS_LIBS})
endif()
else()
message(WARNING "No tools directory specified! Some demos will not be build.")
endif(TOOLS_DIR)
#create the output dir
# file(MAKE_DIRECTORY output)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment