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})
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,6 +85,11 @@ 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.")
......
......@@ -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);
......
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