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

bug fix: remove double-counting of heat corr (StieglitzSnow.F90) #946

Merged
merged 3 commits into from
Jul 10, 2024

Conversation

gmao-rreichle
Copy link
Contributor

@gmao-rreichle gmao-rreichle commented May 31, 2024

In the rare circumstance when more snow would need to be sublimated than is available in the top layer, the residual energy accounting term was added twice, once here (in the changed line) and again ~30 lines further down.

This is a bug. It was discovered during the review of the land energy budget for M21C.

The fix is 0-diff in all standard GCM and LDAS tests. It remains unclear if the condition ever happens. If it does, it is so rare that it is not captured in the tests.

cc: @rdkoster

In the rare circumstance that more snow would need to be sublimated than is available in the top layer, the residual energy accounting term was added twice, once here and again ~30 lines further down.
@gmao-rreichle gmao-rreichle added Non 0-diff The changes in this pull request are non-zero-diff bugfix This fixes a bug labels May 31, 2024
@gmao-rreichle gmao-rreichle self-assigned this May 31, 2024
@gmao-rreichle
Copy link
Contributor Author

The change is 0-diff for restarts and diagnostics in the full suite of GEOSldas nightly tests run by @gmao-rreichle on 17 Jun 2024.
This means that the condition indeed happens very rarely, if ever.

The next step is to run the GEOSgcm tests once @biljanaorescanin is back in the office.

cc: @elakkraoui @rdkoster @lcandre2

@biljanaorescanin
Copy link
Contributor

I am getting zero diff for all GCM testing. 1 day AMIP, REPLAY and INC REPLAY are all zero diff branch vs stock ( develop GEOSgcm_GridComp). The regression test is a success as well.  

@gmao-rreichle gmao-rreichle added 0 diff The changes in this pull request have verified to be zero-diff with the target branch. and removed Non 0-diff The changes in this pull request are non-zero-diff labels Jun 20, 2024
@gmao-rreichle gmao-rreichle marked this pull request as ready for review June 20, 2024 20:33
@gmao-rreichle gmao-rreichle requested review from a team as code owners June 20, 2024 20:33
@sdrabenh sdrabenh merged commit f5fd2a3 into develop Jul 10, 2024
9 checks passed
@sdrabenh sdrabenh deleted the bugfix/rreichle/hcorr_double_counting branch July 10, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 diff The changes in this pull request have verified to be zero-diff with the target branch. bugfix This fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants