Skip to content

Commit 326d6f7

Browse files
Fix zero call
1 parent dcacdaf commit 326d6f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cache/precipitation_precomputed_quantities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ end
8484
compute_ᶜwₕhₜ(ᶜY, ᶠY, p, t) =
8585
compute_ᶜwₕhₜ(ᶜY, ᶠY, p, t, p.atmos.moisture_model, p.atmos.precip_model)
8686

87-
compute_ᶜwₕhₜ(ᶜY, ᶠY, p, t, moisture_model, precip_model) = zero(ᶜY.ρ)
87+
compute_ᶜwₕhₜ(ᶜY, ᶠY, p, t, moisture_model, precip_model) = zero(eltype(ᶜY.ρ))
8888

8989
function compute_ᶜwₕhₜ(ᶜY, ᶠY, p, t, ::NonEquilMoistModel, ::Microphysics1Moment)
9090
thp = CAP.thermodynamics_params(p.params)

0 commit comments

Comments
 (0)