Skip to content

Commit 91a04fe

Browse files
authored
Merge pull request #710 from CliMA/oa/change_evap
Update evaporation relaxation
2 parents be6d8df + 9541c56 commit 91a04fe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "CloudMicrophysics"
22
uuid = "6a9e3e04-43cd-43ba-94b9-e8782df3c71b"
3-
version = "0.33"
3+
version = "0.34"
44
authors = ["Climate Modeling Alliance"]
55

66
[deps]

src/MicrophysicsNonEq.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function conv_q_vap_to_q_lcl_icl_MM2015(
159159
# compute the tendency
160160
return ifelse(
161161
sat_excess < 0,
162-
-max(FT(0), q_lcl) / timescale,
162+
-min(-sat_excess, max(0, q_lcl)) / timescale,
163163
sat_excess / timescale,
164164
)
165165
end
@@ -184,7 +184,7 @@ function conv_q_vap_to_q_lcl_icl_MM2015(
184184
# compute the tendency
185185
tendency = ifelse(
186186
sat_excess < 0,
187-
-max(FT(0), q_icl) / timescale,
187+
-min(-sat_excess, max(0, q_icl)) / timescale,
188188
sat_excess / timescale,
189189
)
190190
limiter = INP_limiter(tendency, tps, T)

test/microphysics_noneq_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function test_microphysics_noneq(FT)
9191
# Ice sublimation (negative tendency) above freezing should NOT be limited
9292
# When subsaturated w.r.t. ice and q_icl > 0, the tendency is negative (sublimation).
9393
# The INP limiter only zeroes positive tendencies above freezing, so sublimation passes through.
94-
TT.@test CMNe.conv_q_vap_to_q_lcl_icl_MM2015(ice, tps, FT(0.5 * qᵥ_si_w), FT(0), FT(0.001), FT(0), FT(0), ρ, T_warm) < FT(0)
94+
TT.@test CMNe.conv_q_vap_to_q_lcl_icl_MM2015(ice, tps, FT(0.5 * qᵥ_si_w), FT(0), FT(0.001), FT(0), FT(0), ρ, T_warm) <= FT(0)
9595

9696
#! format: on
9797
end

0 commit comments

Comments
 (0)