-
Notifications
You must be signed in to change notification settings - Fork 849
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
Specify C standard #1532
Specify C standard #1532
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Elwetritsch I guess... I didn't notice because I build with -Denable-cgns=false
as I never really deal with CGNS meshes
💐
Yes ;-) |
Yes, it is an issue on the Elwetritsch cluster. I tested this and the solution works. |
Don't mind the failing parallel_regression.py, that is due to su2code/TestCases#91 . The correct residuals will be pushed with #1530. It is the 3D streamwise periodic case where I changed a wrong NDIME in the mesh But I guess merging is blocked as parallel_regression.py is required 😬 |
Proposed Changes
In
SU2/meson.build
, specify the version of the C standard used when compiling SU2, as C99. It must be at least C99 because of the for loop initial declarations inexternals/cgns/cgnslib.c
. (One could probably use a newer C standard as well.)This change was necessary to compile SU2 on a system where
cc
is the GCC 4.8.5 (from 2015), which used-std=gnu89
by default.Related Work
The change was not necessary in v7.1.0. I suppose it has something to do with the recent CGNS updates (#1500, #1507, ...).
PR Checklist
Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.