Commit fc3ec880 authored by Naumann, Andreas's avatar Naumann, Andreas
Browse files

dont build the baseProblem demos

parent 5959d1dd
...@@ -36,12 +36,6 @@ target_link_libraries("bunny" ${BASIS_LIBS}) ...@@ -36,12 +36,6 @@ target_link_libraries("bunny" ${BASIS_LIBS})
add_executable("ellipt" ${ellipt}) add_executable("ellipt" ${ellipt})
target_link_libraries("ellipt" ${BASIS_LIBS}) 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}) add_executable("heat" ${heat})
target_link_libraries("heat" ${BASIS_LIBS}) target_link_libraries("heat" ${BASIS_LIBS})
...@@ -70,7 +64,7 @@ add_executable("vecheat" ${vecheat}) ...@@ -70,7 +64,7 @@ add_executable("vecheat" ${vecheat})
target_link_libraries("vecheat" ${BASIS_LIBS}) target_link_libraries("vecheat" ${BASIS_LIBS})
# find tools-directory # 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 (TOOLS_DIR)
if (NOT EXISTS ${TOOLS_DIR}/diffuseDomain/Helpers.h OR NOT EXISTS ${TOOLS_DIR}/baseProblems/BaseProblem.h) 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'") message(WARNING "Wrong tools directory! Directory must contain the subdirectories 'diffuseDomain' and 'baseProblems'")
...@@ -91,10 +85,15 @@ if (TOOLS_DIR) ...@@ -91,10 +85,15 @@ if (TOOLS_DIR)
add_executable("drivenCavity" ${drivenCavity}) add_executable("drivenCavity" ${drivenCavity})
target_link_libraries("drivenCavity" ${BASIS_LIBS}) 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() endif()
else() else()
message(WARNING "No tools directory specified! Some demos will not be build.") message(WARNING "No tools directory specified! Some demos will not be build.")
endif(TOOLS_DIR) endif(TOOLS_DIR)
#create the output dir #create the output dir
# file(MAKE_DIRECTORY output) # file(MAKE_DIRECTORY output)
\ No newline at end of file
...@@ -206,7 +206,7 @@ int main(int argc, char** argv) ...@@ -206,7 +206,7 @@ int main(int argc, char** argv)
G *boundaryFct = new G; G *boundaryFct = new G;
boundaryFct->setTimePtr(heat.getTime()); boundaryFct->setTimePtr(heat.getTime());
heat.setExactSolution(boundaryFct); heat.setExactSolution(boundaryFct);
DOFVector<double> G_dof(ellipt.getFeSpace(), "G"); DOFVector<double> G_dof(heatSpace.getFeSpace(), "G");
G_dof.interpol(boundaryFct); G_dof.interpol(boundaryFct);
heatSpace.addDirichletBC(1, 0, 0, &G_dof); heatSpace.addDirichletBC(1, 0, 0, &G_dof);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment