Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amdis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
iwr
amdis
Commits
268eed95
Commit
268eed95
authored
Mar 23, 2011
by
Naumann, Andreas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added reinit and zoltan option
parent
38c72fce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
AMDiS/CMakeLists.txt
AMDiS/CMakeLists.txt
+19
-9
No files found.
AMDiS/CMakeLists.txt
View file @
268eed95
...
...
@@ -21,9 +21,9 @@ endif()
#option(ENABLE_INTEL "use intel compiler" false)
option
(
ENABLE_OPENMP
"use openmp"
false
)
option
(
ENABLE_PARALLEL_DOMAIN
"use parallel domain decomposition"
false
)
#parmetis is not optional
set
(
ENABLE_PARMETIS off
)
#SET(PETSC_DIR "" CACHE PATH "Petsc directory for parallel domain decomposition" )
#SET(PETSC_ARCH "" CACHE STRING "Petsc architecture")
option
(
ENABLE_ZOLTAN off
)
option
(
ENABLE_UMFPACK
"use umfpack solver"
false
)
option
(
ENABLE_MKL
"use the mkl"
false
)
SET
(
MKL_DIR
""
CACHE PATH
"MKL directory"
)
...
...
@@ -180,13 +180,17 @@ if(ENABLE_PARALLEL_DOMAIN)
DESTINATION lib/amdis/parmetis
)
set
(
ENABLE_PARMETIS ON
)
find_file
(
ZOLTAN_HEADER_DIR
"zoltan_cpp.h"
)
if
(
ZOLTAN_HEADER_DIR
)
get_filename_component
(
ZOLTAN_HEADER_DIR
"
${
ZOLTAN_HEADER_DIR
}
"
PATH CACHE
)
if
(
ENABLE_ZOLTAN
)
find_file
(
ZOLTAN_HEADER_FILE
"zoltan_cpp.h"
)
if
(
ZOLTAN_HEADER_FILE
)
get_filename_component
(
ZOLTAN_HEADER_DIR
"
${
ZOLTAN_HEADER_FILE
}
"
PATH CACHE
)
include_directories
(
${
ZOLTAN_HEADER_DIR
}
)
else
()
else
()
message
(
FATAL_ERROR
"could not find zoltan."
)
endif
(
ZOLTAN_HEADER_DIR
)
endif
(
ZOLTAN_HEADER_FILE
)
set
(
COMPILEFLAGS
"
${
COMPILEFLAGS
}
-DHAVE_ZOLTAN"
)
endif
(
ENABLE_ZOLTAN
)
set
(
CMAKE_MODULE_PATH
"
${
CMAKE_MODULE_PATH
}
;/usr/share/cmake-2.8/Modules/;
${
CMAKE_SOURCE_DIR
}
/"
)
set
(
PETSC_EXECUTABLE_RUNS ON
)
find_package
(
PETSc REQUIRED
)
...
...
@@ -200,7 +204,7 @@ if(ENABLE_PARALLEL_DOMAIN)
${
SOURCE_DIR
}
/parallel/ParallelDebug.cc
${
SOURCE_DIR
}
/parallel/ParallelProblemStatBase.cc
${
SOURCE_DIR
}
/parallel/ParMetisPartitioner.cc
$
(
SOURCE_DIR
)
/parallel/PetscProblemStat.cc
$
{
SOURCE_DIR
}
/parallel/PetscProblemStat.cc
${
SOURCE_DIR
}
/parallel/PetscSolver.cc
${
SOURCE_DIR
}
/parallel/StdMpi.cc
${
SOURCE_DIR
}
/parallel/ZoltanPartitioner.cc
)
...
...
@@ -269,7 +273,7 @@ if(ENABLE_MKL)
SET
(
COMPILEFLAGS
"
${
COMPILEFLAGS
}
-DHAVE_MKL=1"
)
endif
(
ENABLE_MKL
)
SET
(
COMPOSITE_SOURCE_DIR
${
SOURCE_DIR
)
/compositeFEM)
SET
(
COMPOSITE_SOURCE_DIR
${
SOURCE_DIR
}
/compositeFEM
)
SET
(
COMPOSITE_FEM_SRC
${
COMPOSITE_SOURCE_DIR
}
/CFE_Integration.cc
${
COMPOSITE_SOURCE_DIR
}
/CFE_NormAndErrorFcts.cc
${
COMPOSITE_SOURCE_DIR
}
/CompositeFEMMethods.cc
...
...
@@ -280,14 +284,20 @@ SET(COMPOSITE_FEM_SRC ${COMPOSITE_SOURCE_DIR}/CFE_Integration.cc
${
COMPOSITE_SOURCE_DIR
}
/SubPolytope.cc
${
COMPOSITE_SOURCE_DIR
}
/SubElementAssembler.cc
)
set
(
REINIT_SOURCE_DIR
${
SOURCE_DIR
}
/reinit
)
file
(
GLOB REINIT_SRC
${
REINIT_SOURCE_DIR
}
/*.cc
)
include_directories
(
${
REINIT_SOURCE_DIR
}
)
#mtl4 includes
include_directories
(
${
MTL_DIR
}
)
include_directories
(
${
SOURCE_DIR
}
)
add_library
(
amdis SHARED
${
AMDIS_SRC
}
${
PARALLEL_DOMAIN_AMDIS_SRC
}
)
add_library
(
compositeFEM SHARED
${
COMPOSITE_FEM_SRC
}
)
add_library
(
reinit STATIC
${
REINIT_SRC
}
)
target_link_libraries
(
compositeFEM amdis
)
LIST
(
APPEND AMDiS_LIBS amdis boost_system boost_iostreams
)
if
(
WIN32
)
SET
(
COMPILEFLAGS
"
${
COMPILEFLAGS
}
-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS"
)
endif
(
WIN32
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment