Skip to content

Commit e509a59

Browse files
committed
minor bugfix
1 parent 15b65bd commit e509a59

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/cache/precipitation_precomputed_quantities.jl

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,20 +115,13 @@ function set_precipitation_velocities!(
115115

116116
# compute the precipitation terminal velocity [m/s]
117117
# TODO sedimentation of snow is based on the 1M scheme
118-
@. ᶜwNᵣ = getindex(CM2.rain_terminal_velocity(
118+
@. (ᶜwNᵣ, ᶜwᵣ) = CM2.rain_terminal_velocity(
119119
cm2p.sb,
120120
cm2p.tv,
121121
q_rai,
122122
Y.c.ρ,
123123
Y.c.N_rai,
124-
), 1)
125-
@. ᶜwᵣ = getindex(CM2.rain_terminal_velocity(
126-
cm2p.sb,
127-
cm2p.tv,
128-
q_rai,
129-
Y.c.ρ,
130-
Y.c.N_rai,
131-
), 2)
124+
)
132125
@. ᶜwNₛ = CM1.terminal_velocity(
133126
cm1p.ps,
134127
cm1p.tv.snow,

src/parameterized_tendencies/microphysics/cloud_condensate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ function cloud_condensate_tendency!(
5555
@. Yₜ.c.ρq_liq += Y.c.ρ * cloud_sources(cmc.liquid, thp, ᶜts, q_rai, dt)
5656
@. Yₜ.c.ρq_ice += Y.c.ρ * cloud_sources(cmc.ice, thp, ᶜts, q_sno, dt)
5757

58-
@. Yₜ.c.N_liq += aerosol_activation_sources(cmc.liquid, thp, ᶜts, Y.c.ρ, q_rai, Y.c.N_ice, cmc.N_cloud_liquid_droplets, dt)
58+
@. Yₜ.c.N_liq += aerosol_activation_sources(cmc.liquid, thp, ᶜts, Y.c.ρ, q_rai, Y.c.N_liq, cmc.N_cloud_liquid_droplets, dt)
5959
@. Yₜ.c.N_ice += aerosol_activation_sources(cmc.ice, thp, ᶜts, Y.c.ρ, q_sno, Y.c.N_ice, cmc.N_cloud_liquid_droplets, dt)
6060
end

0 commit comments

Comments
 (0)