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

move surface tendency after precipitation tendency #3159

Merged
merged 1 commit into from
Jun 29, 2024
Merged

Conversation

szy21
Copy link
Member

@szy21 szy21 commented Jun 29, 2024

Purpose

Move surface tendency after precipitation tendency so that precipitation used in atmos and surface tendencies are in sync. Fixes water conservation issue with SSP. After this change, SSP conserves water but ARS doesn't (2% error in 100 days): https://buildkite.com/clima/climaatmos-gpulongruns/builds/264#_. We should look into ARS if we want to use it.

I don't like that we need to have a specific order of tendencies for the test to work, but this is a quick fix and refactoring precipitation needs more work. cc @trontrytel . We should check what the coupler is doing.

Also changes energy conservation to use the initial condition as the reference. Only water conservation uses the final state as the reference, because the initial condition can be zero.

Closes #3113

To-do

Content


  • I have read and checked the items on the review checklist.

@szy21 szy21 requested a review from Sbozzolo June 29, 2024 18:54
@szy21 szy21 marked this pull request as ready for review June 29, 2024 18:54
@szy21
Copy link
Member Author

szy21 commented Jun 29, 2024

cc @akshaysridhar

@szy21 szy21 added this pull request to the merge queue Jun 29, 2024
Merged via the queue into main with commit 77d7f0b Jun 29, 2024
10 of 13 checks passed
@szy21 szy21 deleted the zs/water_conservation branch June 29, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Water is not conserved when precipitation is present
2 participants