Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
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
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
code
pugs
Commits
854d9bf9
Commit
854d9bf9
authored
1 year ago
by
teddy
Browse files
Options
Downloads
Patches
Plain Diff
fix compilset up inon build syst
parent
a04491b8
Branches
Branches containing commit
No related tags found
1 merge request
!181
fix compilset up inon build syst
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/FindParMETIS.cmake
+16
-9
16 additions, 9 deletions
cmake/FindParMETIS.cmake
src/utils/CMakeLists.txt
+5
-0
5 additions, 0 deletions
src/utils/CMakeLists.txt
with
21 additions
and
9 deletions
cmake/FindParMETIS.cmake
+
16
−
9
View file @
854d9bf9
# Looking for ParMETIS
find_path
(
PARMETIS_INCLUDE_DIR parmetis.h
PATH_SUFFIX include parmetis
)
PATH_SUFFIX include parmetis
$ENV{PARMETIS_INCDIR}
)
if
(
EXISTS
"
${
PARMETIS_INCLUDE_DIR
}
/parmetis.h"
)
message
(
STATUS
"Found parmetis.h in
${
PARMETIS_INCLUDE_DIR
}
"
)
find_library
(
LIB_PARMETIS parmetis
)
find_library
(
LIB_PARMETIS parmetis
$ENV{PARMETIS_LIBDIR}
)
if
(
"
${
LIB_PARMETIS
}
"
STREQUAL
"LIB_PARMETIS-NOTFOUND"
)
message
(
"** Could not find parmetis library"
)
message
(
WARNING
"** Could not find parmetis library
.
\n
** Is PARMETIS_LIBDIR correctly set (Actual:
\"
$ENV{PARMETIS_LIBDIR}
\"
)?
"
)
endif
()
find_library
(
LIB_METIS metis
)
find_library
(
LIB_METIS metis
$ENV{METIS_LIBDIR}
)
if
(
"
${
LIB_PARMETIS
}
"
STREQUAL
"LIB_METIS-NOTFOUND"
)
message
(
"** Could not find metis library"
)
message
(
WARNING
"** Could not find metis library
.
\n
** Is METIS_LIBDIR correctly set (Actual:
\"
$ENV{METIS_LIBDIR}
\"
)?
"
)
endif
()
find_path
(
METIS_INCLUDE_DIR metis.h $ENV{METIS_INCDIR}
)
if
(
EXISTS
"
${
METIS_INCLUDE_DIR
}
/metis.h"
)
message
(
STATUS
"Found metis.h in
${
METIS_INCLUDE_DIR
}
"
)
set
(
PARMETIS_LIBRARIES
${
LIB_PARMETIS
}
${
LIB_METIS
}
)
message
(
STATUS
"Found parmetis/metis libraries
${
PARMETIS_LIBRARIES
}
"
)
else
()
message
(
"** Could not find parmetis.h"
)
message
(
WARNING
"** Could not find metis.h.
\n
** Is METIS_INCDIR correctly set (Actual:
\"
$ENV{METIS_INCDIR}
\"
)?"
)
endif
()
else
()
message
(
WARNING
"** Could not find parmetis.h.
\n
** Is PARMETIS_INCDIR correctly set (Actual:
\"
$ENV{PARMETIS_INCDIR}
\"
)?"
)
endif
()
mark_as_advanced
(
PARMETIS_INCLUDE_DIR PARMETIS_LIBRARIES
)
This diff is collapsed.
Click to expand it.
src/utils/CMakeLists.txt
+
5
−
0
View file @
854d9bf9
...
...
@@ -22,6 +22,11 @@ add_library(
SLEPcWrapper.cpp
Socket.cpp
)
if
(
${
MPI_FOUND
}
)
target_include_directories
(
PugsUtils PRIVATE
${
PARMETIS_INCLUDE_DIR
}
)
target_include_directories
(
PugsUtils PRIVATE
${
METIS_INCLUDE_DIR
}
)
endif
()
target_link_libraries
(
PugsUtils
${
PETSC_LIBRARIES
}
...
...
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