CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] How to build OF11 with scotch/ptscotch 6.1 system packages from Ubuntu 22.04?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2023, 22:27
Question 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
gcengineer is on a distinguished road
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.
gcengineer is offline   Reply With Quote

Old   July 31, 2023, 12:04
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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
For lots more system tools, take a look at the RPM spec file
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
olesen is offline   Reply With Quote

Old   July 31, 2023, 15:56
Question 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
gcengineer is on a distinguished road
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.
Attached Files
File Type: zip motorBike_OF11.zip (123.3 KB, 3 views)

Last edited by gcengineer; August 1, 2023 at 21:52.
gcengineer is offline   Reply With Quote

Old   July 31, 2023, 16:45
Default 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
gcengineer is on a distinguished road
Thanks for responding.

Quote:
Originally Posted by olesen View Post
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
...
"-scotch" is not an option in foamConfigurePaths for OF11. (My apologies. I'm building OF11, not OF7.)

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?
gcengineer is offline   Reply With Quote

Reply

Tags
openfoam 11, ptscotch, scotch, ubuntu 22.04


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 14:38.