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

Added OpenFOAM-11 compatibility #12

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

didzis-berenis
Copy link
Contributor

  1. Header fvCFD.H is no longer defined in OF11. The bare minimum to compile EOF-Library is to include fvMesh.H instead.
  2. OF11 uses c++14 standard, so the flag -std=gnu++0x cannot be used. I did not specify here that c++14 standard is required though. Should I add -std=gnu++1y in the if statement for OF11?

@jvencels
Copy link
Owner

jvencels commented Apr 3, 2024 via email

@didzis-berenis
Copy link
Contributor Author

It's just that OF11 doesn't compile with the flag -std=gnu++0x that is currently in the compile options.
The current option corresponds to c++11, but the OF11 needs c++14.
Also, turns out my proposed -std=gnu++1y flag is deprecated See here so -std=gnu++14 should be used instead.

I find that for me omitting this flag altogether and letting the compiler decide works fine. I think in the most common case the user will be installing OF11, which uses c++14, so EOF-Library should also compile fine.

So I propose in case of OF11:
either 1) omit c++11 flag (current commit)
or 2) add -std=gnu++14 flag to compiler and explicitly demand c++14

@jvencels jvencels merged commit 925c021 into jvencels:master Apr 3, 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