Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build scripts for fast OpenFOAM compilation #24

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kincaidkc
Copy link
Collaborator

@kincaidkc kincaidkc commented Feb 28, 2024

This PR provides scripts which build a pared-down version of OpenFOAM with only the required libraries. It compiles in 10-11 minutes on an HPC node instead of 40+ minutes. To build this version of OpenFOAM, copy the scripts in build/ to the OpenFOAM-10 and ThirdParty-10 directories. Then, execute the MinimalAllwmake script from the OpenFOAM-10 directory, which will automatically call the ThirdParty-10/MinimalThirdPartyAllwmake script to build Scotch if necessary.

@kincaidkc kincaidkc self-assigned this Feb 28, 2024
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this two separate PRs? One reducing the number of unused libraries in Make/files, and another with build script examples for OpenFOAM-v10?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pulled the changes to the options file out of this PR and will open a new one for that.

@kincaidkc kincaidkc changed the title Minimal build scripts and make file cleaning Build scripts for fast OpenFOAM compilation Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants