Skip to content
Snippets Groups Projects
Verified Commit 23fbc6ba authored by Lars Bilke's avatar Lars Bilke
Browse files

Replaced metis submodule with CPM.

parent 6d2087b4
No related branches found
No related tags found
No related merge requests found
[submodule "ThirdParty/metis"]
path = ThirdParty/metis
url = https://github.com/scibuilder/metis.git
[submodule "ThirdParty/SwmmInterface"]
path = ThirdParty/SwmmInterface
url = https://github.com/ufz/SwmmInterface.git
......
CPMAddPackage(
NAME metis
GITHUB_REPOSITORY scibuilder/metis
GIT_TAG 982842a5ace9b3da2b2800817eb9e5fd3b42966b
DOWNLOAD_ONLY YES
)
include(${PROJECT_SOURCE_DIR}/scripts/cmake/MetisSetup.cmake)
add_executable(partmesh PartitionMesh.cpp Metis.cpp NodeWiseMeshPartitioner.cpp)
set_target_properties(partmesh PROPERTIES FOLDER Utilities)
target_link_libraries(partmesh GitInfoLib MeshLib tclap)
......
......@@ -67,11 +67,6 @@ if(OGS_USE_PYTHON)
endif()
if(OGS_BUILD_UTILS)
include(${PROJECT_SOURCE_DIR}/scripts/cmake/MetisSetup.cmake)
list(APPEND DISABLE_WARNINGS_TARGETS ogs_metis mpmetis)
endif()
if(OGS_USE_XDMF)
find_package(ZLIB REQUIRED) # ZLIB is a HDF5 dependency
set(XDMF_LIBNAME OgsXdmf CACHE INTERNAL "")
......
Subproject commit 982842a5ace9b3da2b2800817eb9e5fd3b42966b
message( STATUS "The METIS package is copyrighted by the Regents of the University of Minnesota." )
message( STATUS "Please read the license of the METIS package carefully before you use the METIS." )
set(METIS_PATH ${PROJECT_SOURCE_DIR}/ThirdParty/metis)
set(METIS_PATH ${metis_SOURCE_DIR})
add_definitions(-DUSE_GKREGEX)
set(GKLIB_PATH "${METIS_PATH}/GKlib" CACHE PATH "path to GKlib")
......
......@@ -9,10 +9,6 @@ set(REQUIRED_SUBMODULES
if(OGS_USE_XDMF)
list(APPEND REQUIRED_SUBMODULES ThirdParty/xdmf)
endif()
if(OGS_BUILD_UTILS)
# Required by the partmesh tool, which is build with utils only.
list(APPEND REQUIRED_SUBMODULES ThirdParty/metis)
endif()
if(OGS_BUILD_SWMM)
list(APPEND REQUIRED_SUBMODULES ThirdParty/SwmmInterface)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment