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
193252d2
Commit
193252d2
authored
1 year ago
by
chantrait
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into feature/coupling_module
parents
0176c780
c328ca9e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/FindParMETIS.cmake
+14
-5
14 additions, 5 deletions
cmake/FindParMETIS.cmake
src/utils/CMakeLists.txt
+5
-0
5 additions, 0 deletions
src/utils/CMakeLists.txt
with
19 additions
and
5 deletions
cmake/FindParMETIS.cmake
+
14
−
5
View file @
193252d2
# 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
${
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
${
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
(
WARNING
"** Could not find metis.h.
\n
** Is METIS_INCDIR correctly set (Actual:
\"
$ENV{METIS_INCDIR}
\"
)?"
)
endif
()
include_directories
(
SYSTEM
${
PARMETIS_INCLUDE_DIR
}
)
include_directories
(
SYSTEM
${
METIS_INCDIR
}
)
...
...
@@ -20,7 +29,7 @@ if (EXISTS "${PARMETIS_INCLUDE_DIR}/parmetis.h")
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 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 @
193252d2
...
...
@@ -24,6 +24,11 @@ add_library(
Serializer.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