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
fc3ec880
Commit
fc3ec880
authored
Mar 30, 2012
by
Naumann, Andreas
Browse files
dont build the baseProblem demos
parent
5959d1dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
demo/CMakeLists.txt
View file @
fc3ec880
...
...
@@ -36,12 +36,6 @@ target_link_libraries("bunny" ${BASIS_LIBS})
add_executable
(
"ellipt"
${
ellipt
}
)
target_link_libraries
(
"ellipt"
${
BASIS_LIBS
}
)
add_executable
(
"elliptBase"
${
elliptBase
}
)
target_link_libraries
(
"elliptBase"
${
BASIS_LIBS
}
)
add_executable
(
"elliptImplicit"
${
elliptImplicit
}
)
target_link_libraries
(
"elliptImplicit"
${
BASIS_LIBS
}
)
add_executable
(
"heat"
${
heat
}
)
target_link_libraries
(
"heat"
${
BASIS_LIBS
}
)
...
...
@@ -70,7 +64,7 @@ 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
)
find_path
(
TOOLS_DIR NAMES
"baseProblem
/BaseProblem.h
"
"diffuseDomain
/Helpers.h
"
DOC
"Path to tools directory in AMDiS-trunk dir"
)
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'"
)
...
...
@@ -91,10 +85,15 @@ if (TOOLS_DIR)
add_executable
(
"drivenCavity"
${
drivenCavity
}
)
target_link_libraries
(
"drivenCavity"
${
BASIS_LIBS
}
)
add_executable
(
"elliptBase"
${
elliptBase
}
)
target_link_libraries
(
"elliptBase"
${
BASIS_LIBS
}
)
add_executable
(
"elliptImplicit"
${
elliptImplicit
}
)
target_link_libraries
(
"elliptImplicit"
${
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
# file(MAKE_DIRECTORY output)
demo/src/heat.cc
View file @
fc3ec880
...
...
@@ -206,7 +206,7 @@ int main(int argc, char** argv)
G
*
boundaryFct
=
new
G
;
boundaryFct
->
setTimePtr
(
heat
.
getTime
());
heat
.
setExactSolution
(
boundaryFct
);
DOFVector
<
double
>
G_dof
(
ellipt
.
getFeSpace
(),
"G"
);
DOFVector
<
double
>
G_dof
(
heatSpace
.
getFeSpace
(),
"G"
);
G_dof
.
interpol
(
boundaryFct
);
heatSpace
.
addDirichletBC
(
1
,
0
,
0
,
&
G_dof
);
...
...
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