Skip to content

Fixes #1482: spurious source of water - #1483

Open
narnold1 wants to merge 5 commits into
developfrom
bugfix/narnold1/spurious_water_from_moistgc
Open

Fixes #1482: spurious source of water#1483
narnold1 wants to merge 5 commits into
developfrom
bugfix/narnold1/spurious_water_from_moistgc

Conversation

@narnold1

Copy link
Copy Markdown
Contributor

This initial commit fixes the spurious water from UW by simply allowing the SUB and ENT tendencies to create negative condensate, which is then "filled" by the FILLQ2ZERO routines immediately after.
Alternately we could modify the SUB and ENT tendencies as needed to prevent negative condensate, but would then need to modify QV to conserve the total water.

@narnold1 narnold1 added Non 0-diff The changes in this pull request are non-zero-diff bugfix This fixes a bug labels Jul 17, 2026
@mathomp4

mathomp4 commented Jul 20, 2026

Copy link
Copy Markdown
Member

Not sure if this is what it was intended for, but with this PR, I can now run in Debug (see #1466 )

ETA: Well, with Intel. I'll try GNU now.

ETA2: Apparently GNU is working without this. I'll try ifx.

ETA3: Never mind. ifx failed. It might have just been coincidence with ifort. Dang!

@narnold1

Copy link
Copy Markdown
Contributor Author

Spurious water from GF was traced to two errors: (1) excessive precip evaporation, leading to negative surface precip, and (2) vertical smoothing of the final GF tendencies. A fix for the excessive evaporation was added to the branch. The smoothing can be disabled by setting USE_SMOOTH_TEND: 0, but this needs further testing.

@narnold1
narnold1 marked this pull request as ready for review August 31, 2026 21:08
@narnold1
narnold1 requested a review from a team as a code owner August 31, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This fixes a bug Non 0-diff The changes in this pull request are non-zero-diff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants