I couldn’t immediately find an answer on the forum, so I thought writing this up may help another person. A similar error has been reported here but I thought a more explicit solution may be useful to some.
Problem: When partitioning with scotch you get one of the following errors:
RuntimeError: No partitioners available, orOSError: .../libscotch.so: undefined symbol: SCOTCH_errorPrint
Solution
- Using the official repo obtain scotch. Tag version v7.0.9 worked for me
- Configure
cmake \ -DBUILD_SHARED_LIBS=ON \ -DLIBSCOTCHERR=scotcherr \ -DCMAKE_INSTALL_PREFIX=path/to/install \ /path/to/scotch/source - Point PyFR to Scotch install either via
PYFR_SCOTCH_LIBRARY_PATH=pathto/install/lib64/libscotch.soor by updatingLD_LIBRARY_PATH - Run
pyfr partition ...
I think this may save some people time and if at all possible it may be useful to have a sticky post which describes such common issues.