[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libscotch-dev/7.0.1-2: Why is there no libscotchmetis.so?



On 2022-03-18 23:13, Drew Parsons wrote:
On 2022-03-18 21:50, Markus Blatt wrote:
Hi,

while investigating several bugs [1] [2] [3] caused by the scotch transition,
I started wondering why there is no libscotchmetis.so library but just
libscotchmetisv3.so and libscotchmetisv5.so.
..
It would be like that because if you want to use scotch, then
libscotch.so is what you want to link against, not libscotchmetis.so.

libscotchmetis.so (v3 or v5) is a (partial) compatibility library for
metis, so if it's metis that you want, without wanting to explicitly
specify the version, then I think you want to link against
libmetis.so, not libscotchmets.so.

Why is FindMETIS.cmake looking for libscotchmetis.so instead of libmetis.so?


As for /usr/share/dune/cmake/modules/FindMETIS.cmake, it does handle the scotchmetis version via METIS_API_VERSION

If it's then going to look for find_library(METIS_LIBRARY scotchmetis), then for scotch 7 that should be updated to
find_library(METIS_LIBRARY scotchmetisv$(METIS_API_VERSION))


Drew


Reply to: