Skip to content

Commit ca74583

Browse files
committed
Agglomeration example
1 parent 2493c4e commit ca74583

File tree

16 files changed

+11839
-0
lines changed

16 files changed

+11839
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
##
2+
# CMake script for the step-8 tutorial program:
3+
##
4+
5+
# Set the name of the project and target:
6+
SET(TARGET "poisson")
7+
8+
# Declare all source files the target consists of. Here, this is only
9+
# the one step-X.cc file, but as you expand your project you may wish
10+
# to add other source files as well. If your project becomes much larger,
11+
# you may want to either replace the following statement by something like
12+
# FILE(GLOB_RECURSE TARGET_SRC "source/*.cc")
13+
# FILE(GLOB_RECURSE TARGET_INC "include/*.h")
14+
# SET(TARGET_SRC ${TARGET_SRC} ${TARGET_INC})
15+
# or switch altogether to the large project CMakeLists.txt file discussed
16+
# in the "CMake in user projects" page accessible from the "User info"
17+
# page of the documentation.
18+
SET(TARGET_SRC
19+
${TARGET}.cc
20+
source/agglomeration_handler.cc
21+
source/mapping_box.cc
22+
)
23+
24+
# Add include directory
25+
INCLUDE_DIRECTORIES(include)
26+
27+
# Usually, you will not need to modify anything beyond this point...
28+
29+
CMAKE_MINIMUM_REQUIRED(VERSION 3.13.4)
30+
31+
FIND_PACKAGE(deal.II 9.7.0
32+
HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
33+
)
34+
IF(NOT ${deal.II_FOUND})
35+
MESSAGE(FATAL_ERROR "\n"
36+
"*** Could not locate a (sufficiently recent) version of deal.II. ***\n\n"
37+
"You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n"
38+
"or set an environment variable \"DEAL_II_DIR\" that contains this path."
39+
)
40+
ENDIF()
41+
42+
DEAL_II_INITIALIZE_CACHED_VARIABLES()
43+
PROJECT(${TARGET})
44+
DEAL_II_INVOKE_AUTOPILOT()
45+
46+
# Define SOURCE_DIR for mesh file paths
47+
target_compile_definitions(${TARGET} PRIVATE SOURCE_DIR="${CMAKE_SOURCE_DIR}")

0 commit comments

Comments
 (0)