Commit f0edd783 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

demos CMakeLists reorganized

parent 7d5104db
......@@ -3,19 +3,7 @@ add_custom_target(examples)
set(DEC_DIM 2)
set(DEC_DOW 3)
add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-deprecated-declarations)
add_dec_executable(domain_decomposition ALBERTA domain_decomposition.cpp)
target_compile_definitions(domain_decomposition PRIVATE DEC_HAS_MPI=1)
add_dec_executable(entity_owner entity_owner.cpp)
target_compile_definitions(entity_owner PRIVATE DEC_HAS_MPI=1)
add_dec_executable(communicator communicator.cpp)
target_compile_definitions(communicator PRIVATE DEC_HAS_MPI=1)
add_dec_executable(alugrid ALBERTA alugrid.cpp)
target_compile_definitions(alugrid PRIVATE DEC_HAS_MPI=1)
add_compile_options(-Wno-unused-parameter -Wno-deprecated-declarations)
add_dec_executable(geometry ALBERTA geometry.cpp)
add_dec_executable(laplace ALBERTA laplace.cpp)
......@@ -27,7 +15,7 @@ add_dec_executable(transfer ALBERTA transfer.cpp)
add_dec_executable(vecellipt ALBERTA vecellipt.cpp)
# add_dec_executable(weighted_triangulation ALBERTA weighted_triangulation.cpp)
add_dec_executable(weighted_triangulation2 ALBERTA weighted_triangulation2.cpp)
add_dependencies(examples geometry laplace laplace_operator simple_grid heat weighted_triangulation2 orientation transfer domain_decomposition entity_owner alugrid communicator)
add_dependencies(examples geometry laplace laplace_operator simple_grid heat weighted_triangulation2 orientation transfer)
add_dec_executable(helmholtz ALBERTA helmholtz.cpp)
add_dec_executable(consistency ALBERTA consistency.cpp)
......@@ -48,6 +36,26 @@ if (dune-foamgrid_FOUND)
add_dependencies(examples pfc pfc2 mg_pfc mg_pfc2 ellipt_refinement frank_oseen mg mg2 poisson)
endif ()
# examples for parallelization
# ----------------------------
add_dec_executable(domain_decomposition ALBERTA domain_decomposition.cpp)
target_compile_definitions(domain_decomposition PRIVATE DEC_HAS_MPI=1)
add_dec_executable(entity_owner entity_owner.cpp)
target_compile_definitions(entity_owner PRIVATE DEC_HAS_MPI=1)
add_dec_executable(communicator communicator.cpp)
target_compile_definitions(communicator PRIVATE DEC_HAS_MPI=1)
add_dependencies(examples domain_decomposition entity_owner communicator)
if (dune-alugrid_FOUND)
add_dec_executable(alugrid ALBERTA alugrid.cpp)
target_compile_definitions(alugrid PRIVATE DEC_HAS_MPI=1)
add_dependencies(examples alugrid)
endif ()
if (DEC_HAS_PETSC)
add_dec_executable(petsc_plain petsc_plain.cpp)
add_dependencies(examples petsc_plain)
......
Supports Markdown
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