Skip to content

Commit d9e5cee

Browse files
committed
minor bugfix
1 parent e509a59 commit d9e5cee

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/cache/precipitation_precomputed_quantities.jl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,20 @@ 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ᵣ, ᶜwᵣ) = CM2.rain_terminal_velocity(
118+
@. ᶜwNᵣ = getindex(CM2.rain_terminal_velocity(
119119
cm2p.sb,
120120
cm2p.tv,
121121
q_rai,
122122
Y.c.ρ,
123123
Y.c.N_rai,
124-
)
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)
125132
@. ᶜwNₛ = CM1.terminal_velocity(
126133
cm1p.ps,
127134
cm1p.tv.snow,

0 commit comments

Comments
 (0)