Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
7f3072a4
Commit
7f3072a4
authored
Mar 27, 2012
by
Praetorius, Simon
Browse files
some new domes
parent
c801d84e
Changes
1
Hide whitespace changes
Inline
Side-by-side
demo/CMakeLists.txt
View file @
7f3072a4
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment