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

use specific humidity as precipitation threshold #2859

Merged
merged 2 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion regression_tests/ref_counter.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
157
158

# 158:
# - Switched back the precipitation threshold defintion in the
# 0-moment scheme to specific humidity
# 157:
# - For the grid mean precipitation tendency in the 0-moment scheme:
# - added limiting by q_tot/dt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,7 @@ function q_tot_precipitation_sources(
qₜ::FT,
ts,
) where {FT <: Real}
return -min(
max(qₜ, 0) / dt,
-CM0.remove_precipitation(
cmp,
PP(thp, ts),
TD.q_vap_saturation(thp, ts),
),
)
return -min(max(qₜ, 0) / dt, -CM0.remove_precipitation(cmp, PP(thp, ts)))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trontrytel I think this changes both grid-scale and subgrid-scale?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I bet we could calibrate the parameter value for saturation based to make things stable. But this is easier

end

"""
Expand Down
Loading