Fix 3/2 integer division in W3FLD1#1431
Closed
NickSzapiro-NOAA wants to merge 1 commit into
Closed
Conversation
**(3/2): Warning: Integer division truncated to constant '1' [-Winteger-division]
Collaborator
|
@NickSzapiro-NOAA I'm in support of combining this with other updates -but let me first run this through standalone WW3 testing to see impacts. Should have those tomorrow. |
Collaborator
|
Here are the standalone diffs: Unexpected diffs include: Swich files that have FLD1 swiches are: This PR is small so it's at least easy to confirm that this is okay. No UFS test uses the FLD1 switch, so we will not have answer changes in UFS regression testing. |
JessicaMeixner-NOAA
approved these changes
May 19, 2025
Collaborator
|
@NickSzapiro-NOAA - Let's chat tomorrow when we meeting for the IAU issue about what the best strategy for getting these PRs merged or make a new meeting to quickly discuss. |
This was referenced Jul 25, 2025
Collaborator
|
This PR was merged with #1480 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Summary
Address compiler warning and bug that (x)**(3/2) is truncated to (x)**1 from integer division
Description
Fix compiler warning (and integer division bug)
As wind stress BC is not used in coupling, this is a bit-for-bit change in UFS GEFS regression test and presumably others as well.
For full testing and commit queue, can combine with #1423 and others
Issue(s) addressed
Part of ufs-community/ufs-weather-model#2703
Commit Message
Fix 3/2 integer division in W3FLD1
Check list
Testing