-
Notifications
You must be signed in to change notification settings - Fork 700
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
Add explicit casts to mismatched pointer types in rsl_lite #2062
Conversation
The regression test results:
|
The modification to c_code.c, period.c, and rsl_lite.c solves the compilation error with GCC-14.1, but during the execution of wrf.exe using mpirun (dm) this modification causes an error (segmentation fault, reference to memory). The same configuration works well using GCC-13.3. |
@sayedmekhaimer Did you use commit 36d3c64 or later? The initial commit in this PR did have that issue which I thought I had fixed (tested locally with gcc14) |
I am sorry that I used previous modification, Now the model is compiled and run in parallel mode with no errors using the the commit 36d3c64 . Thank you so much |
I don't recall whether WRF always uses the PR description as the merge commit message, but if so, perhaps it would be better to include a description of the code changes here rather than simply pointing to #2047? That would make the git log more self-contained. |
@islas Maybe you could make a concise message when merging? |
@weiwangncar Do you mean instead of the PR description? |
TYPE: bug fix
KEYWORDS: gcc14, compilation, c99
SOURCE: internal
DESCRIPTION OF CHANGES:
Problem:
From #2047 :
Compilation of WRF v4.6.0 fails with GCC 14 due to new standard changes
Example of failure :
Error was reproduced AlmaLinux release 9.4 with GCC 14.1.0
Solution:
Use explicit type casting
ISSUE:
Fixes #2047
TESTS CONDUCTED: