How to build OF11 with scotch/ptscotch 6.1 system packages from Ubuntu 22.04?
How do I build OpenFOAM 11 using the scotch/ptscotch 6.1.3 system packages for Ubuntu 22.04? (scotch/ptscotch 6.0.9 is a package for 20.04.) I know that scotch/ptscotch 6.0.9 can be built from ThirdParty11 source and that OF11 Allwmake will then use that version, but I want to build OF11 with the scotch/ptscotch 6.1.3 system packages (because it's there ;)) and without building ThirdParty 6.0.9.
I installed scotch/ptscotch in Ubuntu 22.04 with "sudo apt install scotch ptscotch," and "apt list --installed" returns libscotch-6.1 and libptscotch-6.1. But OF Allwmake fails because it can't find scotch.h and SCOTCH_ARCH_PATH and SCOTCH_VERSION environment variables are not set. I've waded through the OF and TP Allwmake files, but I can't grasp where (if anywhere) OF11 Allwmake might look to the scotch/ptscotch system packages. I read several CFD-online posts that discuss issues with building OF related to scotch/ptscotch, but most end up going with ThirdParty 6.0.9. I seek to take the road less traveled. Thanks for any assistance.:) |
If you are building with system locations, the simplest is to adjust them with the bin/tools/foamConfigurePaths script. For example,
Code:
$ ./bin/tools/foamConfigurePaths -scotch scotch-system https://develop.openfoam.com/Develop...enfoamAPI.spec In the www.openfoam.com version, the package discovery is handled by various wmake/scripts/ files. For example, https://develop.openfoam.com/Develop...ts/have_scotch |
How to build OF11 with scotch/ptscotch 6.1 system packages from Ubuntu 22.04?
1 Attachment(s)
OF11 builds completely after installing the additional packages libptscotch-dev and libscotch-dev from Ubuntu repositories. Log file is attached (but truncated for some reason). Used 'apt-file' to find these packages containing the scotch.h and ptscotch.h header files.
The motorbike tutorial (incompressibleFluid/motorBike/motorBike) runs in parallel successfully (./Allrun) with no change to the case files. Log files are attached. I'm not sure which/if any version of scotch/ptscotch OF is using. I never downloaded the ThirdParty-11 source files, so scotch/ptscotch 6.0.9 was never installed from there. AFAIK the scotch/ptscotch 6.1.3 system packages are the only version on the machine. $SCOTCH_ARCH_PATH and $SCOTCH_VERSION environment variables are not set. I'm building OF11 on a VMware Player 17 virtual machine running Ubuntu 22.04. A riddle wrapped in mystery inside an enigma. :confused: |
How to build O11 with scotch/ptscotch 6.1 system packages from Ubuntu 22.04?
Thanks for responding.
Quote:
foamConfigurePaths options for OF11 include --scotchArchPath and --scotchVersion. I think "--scotchVersion 6.1.3" is valid, but I'm not what to use for --scotchArchPath: /usr/bin or /usr/include or? |
All times are GMT -4. The time now is 04:48. |