|
[Sponsors] |
December 18, 2023, 06:39 |
[✅ Solved] OpenFOAM 2306: cannot use metis
|
#1 |
Senior Member
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5 |
Hello,
I have tried installing the metis library on Ubuntu 22.04. I have installed it using the package manager: sudo apt install libmetis-dev. I have also compiled the interface for it by following these steps: Code:
cp -r $FOAM_SRC/parallel/decompose/metisDecomp/ /tmp/metisDecomp cd /tmp/metisDecomp wmake Code:
//.... numberOfSubdomains 4; method metis; Calculating distribution of cells Decomposition method metis [4] (region region0) decomposePar: symbol lookup error: /home/ONESP/OpenFOAM/ONESP-v2306/platforms/linux64GccDPInt32Opt/lib/libmetisDecomp.so: undefined symbol: METIS_SetDefaultOptions I have tried also to uninstall the version of metis installed by the package manager, then downloaded version 5.1.0 from http://glaros.dtc.umn.edu/gkhome/metis/metis/download and built it successfully. But I still get the same error message. Last edited by NotOverUnderated; December 18, 2023 at 09:15. |
|
December 18, 2023, 07:00 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
where did you copy back the resulting library? If it is not somewhere in your LD_LIBRARY_PATH it will not load.
|
|
December 18, 2023, 07:28 |
|
#3 |
Senior Member
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5 |
||
December 18, 2023, 09:11 |
|
#4 |
Senior Member
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5 |
I have solved the issue by explicitly specifying the paths (for include and libs) of the metis library in Make/options instead of the using the default one from OpenFOAM:
Code:
EXE_INC = \ -I/usr/local/include/ \ -I$(LIB_SRC)/parallel/decompose/decompositionMethods/lnInclude LIB_LIBS = \ -L$(FOAM_LIBBIN) -ldecompositionMethods \ -L/usr/local/lib/ \ -lmetis$(METIS_LIBNAME_SUFFIX) |
|
Tags |
compilation, decomposed mesh, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] Installing OpenFOAM on MacOS with Apple Silicon | Kolan | OpenFOAM Installation | 21 | November 10, 2024 17:53 |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 16:54 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
OpenFOAM Training Beijing 22-26 Aug 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | May 3, 2016 05:57 |