|
[Sponsors] |
[OpenFOAM.org] How to build OF11 with scotch/ptscotch 6.1 system packages from Ubuntu 22.04? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 30, 2023, 22:27 |
How to build OF11 with scotch/ptscotch 6.1 system packages from Ubuntu 22.04?
|
#1 |
Member
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 14 |
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. Last edited by gcengineer; August 1, 2023 at 21:51. Reason: Correction. Building OF11, not OF7. |
|
July 31, 2023, 12:04 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
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 |
|
July 31, 2023, 15:56 |
How to build OF11 with scotch/ptscotch 6.1 system packages from Ubuntu 22.04?
|
#3 |
Member
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 14 |
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. Last edited by gcengineer; August 1, 2023 at 21:52. |
|
July 31, 2023, 16:45 |
How to build O11 with scotch/ptscotch 6.1 system packages from Ubuntu 22.04?
|
#4 | |
Member
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 14 |
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? |
||
Tags |
openfoam 11, ptscotch, scotch, ubuntu 22.04 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error AD build of SU2-5.0.0 on a HPC system | Haowang | SU2 Installation | 3 | April 30, 2017 12:22 |
System Build Advice for FEA | cycleback | Hardware | 1 | February 8, 2013 21:53 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 15:43 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |