Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iwr
amdis
Commits
268eed95
Commit
268eed95
authored
14 years ago
by
Naumann, Andreas
Browse files
Options
Downloads
Patches
Plain Diff
added reinit and zoltan option
parent
38c72fce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AMDiS/CMakeLists.txt
+19
-9
19 additions, 9 deletions
AMDiS/CMakeLists.txt
with
19 additions
and
9 deletions
AMDiS/CMakeLists.txt
+
19
−
9
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment