Skip to content
Snippets Groups Projects
Commit 57e9a3ea authored by Robert K's avatar Robert K
Browse files

[bugfix] only create parameter files when not in-source build

parent b8890770
No related branches found
No related tags found
No related merge requests found
# the main files for all the tests are in the same dir
set(FEMDG_MAIN_DIR "${CMAKE_SOURCE_DIR}/dune/fem-dg/main")
set(GENERATE_FEMDG_PARAMETER_FILE TRUE)
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
set(GENERATE_FEMDG_PARAMETER_FILE FALSE)
endif()
include(Codegen)
include(TargetDistclean)
message(AUTHOR_WARNING "TODO: Implement module test.")
dune_install( models.hh problemcreator.hh steppertraits.hh)
include_directories("${CMAKE_SOURCE_DIR}/dune/fem-dg/test/advdiff/")
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
if(GENERATE_FEMDG_PARAMETER_FILE)
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
endif()
add_definitions( "-DYASPGRID" )
add_definitions( "-DGRIDDIM=2" )
......
......@@ -17,7 +17,9 @@ set(MAININCLUDE_PATH "${dune-fem-dg_SOURCE_DIR}/dune/fem-dg/main/")
include_directories(${MAININCLUDE_PATH})
include_directories("${CMAKE_SOURCE_DIR}/dune/fem-dg/test/combined/")
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
if(GENERATE_FEMDG_PARAMETER_FILE)
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
endif()
add_executable(combinedall "${MAININCLUDE_PATH}/main.cc"
"${MAININCLUDE_PATH}/main_0.cc"
......
dune_install( models.hh problemcreator.hh problems.hh )
include_directories("${CMAKE_SOURCE_DIR}/dune/fem-dg/test/euler/")
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
if(GENERATE_FEMDG_PARAMETER_FILE)
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
endif()
add_definitions( "-DYASPGRID" )
add_definitions( "-DGRIDDIM=2" )
......
dune_install( ns_model.hh problemcreator.hh ns_model_spec.hh thermodynamics.hh passtraits.hh)
include_directories("${CMAKE_SOURCE_DIR}/dune/fem-dg/test/navierstokes/")
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter )
if(GENERATE_FEMDG_PARAMETER_FILE)
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter )
endif()
# default settings for the test case
set(POLORDER 2)
......
dune_install( models.hh problemcreator.hh problems.hh )
include_directories("${CMAKE_SOURCE_DIR}/dune/fem-dg/test/poisson/")
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
if(GENERATE_FEMDG_PARAMETER_FILE)
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
endif()
set(POLORDER 2)
add_definitions( "-DYASPGRID" )
add_definitions( "-DGRIDDIM=2" )
......
dune_install(models.hh problemcreator.hh problems.hh stokesalgorithm.hh stokesassembler.hh tensorhelper.hh)
include_directories("${CMAKE_SOURCE_DIR}/dune/fem-dg/test/stokes/")
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
if(GENERATE_FEMDG_PARAMETER_FILE)
configure_file(parameter.in ${CMAKE_CURRENT_BINARY_DIR}/parameter)
endif()
add_definitions( "-DALUGRID_CUBE" )
add_definitions( "-DGRIDDIM=2" )
......
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