Skip to content

Commit

Permalink
Added FT wrapping to thresholds exception
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasia-popova committed Feb 1, 2024
1 parent 72e5434 commit a67bbe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/P3Scheme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function thresholds(p3::PSP3{FT}, ρ_r::FT, F_r::FT) where {FT}
@assert F_r < FT(1) # ... and there must always be some unrimed part

if F_r == FT(0)
return (; D_cr = 0, D_gr = 0, ρ_g = 0, ρ_d = 0)
return (; D_cr = FT(0), D_gr = FT(0), ρ_g = FT(0), ρ_d = FT(0))
else
@assert ρ_r > FT(0) # rime density must be positive ...
@assert ρ_r <= p3.ρ_l # ... and as a bulk ice density can't exceed the density of water
Expand Down

0 comments on commit a67bbe3

Please sign in to comment.