Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
szy21 committed Sep 19, 2023
1 parent 37a4de8 commit c15f262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prognostic_equations/edmfx_entr_detr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function pi_groups_entr(
return FT(0)
else
entr_coeff = CAP.entr_coeff(params)
entr = max(0, min(entr_coeff * abs(ᶜwʲ), 1 / dt))
entr = max(0, min(entr_coeff * abs(ᶜwʲ) / (ᶜz - z_sfc), 1 / dt))
return entr
end
end
Expand Down

0 comments on commit c15f262

Please sign in to comment.