We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e3d8c1b + 65d0912 commit 0180920Copy full SHA for 0180920
src/prognostic_equations/edmfx_boundary_condition.jl
@@ -56,8 +56,9 @@ function percentile_bounds_mean_norm(
56
gauss_int(x) = -exp(-x * x / 2) / sqrt(2 * pi)
57
xp_low = Distributions.quantile(Distributions.Normal(), low_percentile)
58
xp_high = Distributions.quantile(Distributions.Normal(), high_percentile)
59
- return (gauss_int(xp_high) - gauss_int(xp_low)) / (
+ return (gauss_int(xp_high) - gauss_int(xp_low)) / max(
60
Distributions.cdf(Distributions.Normal(), xp_high) -
61
- Distributions.cdf(Distributions.Normal(), xp_low)
+ Distributions.cdf(Distributions.Normal(), xp_low),
62
+ eps(FT),
63
)
64
end
0 commit comments