@@ -94,7 +94,7 @@ function lambda_inverse(
9494 (; r0, m0, me, Δm, χm) = mass
9595
9696 λ_inv = FT (0 )
97- if q > FT ( 0 ) && ρ > FT ( 0 )
97+ if q > CO . ϵ_numerics (FT ) && ρ > CO . ϵ_numerics (FT )
9898 λ_inv = exp (1 / (me + Δm + 1 ) *
9999 log (
100100 ρ * q * exp ((me + Δm) * log (r0)) / χm / m0 / n0 / SF. gamma (me + Δm + FT (1 )),
@@ -162,7 +162,7 @@ function terminal_velocity(
162162 ρ:: FT ,
163163 q:: FT ,
164164) where {FT}
165- if q > FT ( 0 )
165+ if q > CO . ϵ_numerics (FT )
166166 # terminal_velocity(size)
167167 (; χv, ve, Δv) = vel
168168 v0 = get_v0 (vel, ρ)
@@ -184,7 +184,7 @@ function terminal_velocity(
184184 q:: FT ,
185185) where {FT}
186186 fall_w = FT (0 )
187- if q > FT ( 0 )
187+ if q > CO . ϵ_numerics (FT )
188188 # coefficients from Table B1 from Chen et. al. 2022
189189 aiu, bi, ciu = CO. Chen2022_vel_coeffs (vel, ρₐ)
190190 # size distribution parameter
@@ -208,7 +208,7 @@ function terminal_velocity(
208208 # We assume the B4 table coeffs for snow and B2 table coeffs for cloud ice.
209209 # Instead we should do partial integrals
210210 # from D=125um to D=625um using B2 and D=625um to inf using B4.
211- if q > FT ( 0 )
211+ if q > CO . ϵ_numerics (FT )
212212 # coefficients from Table B4 from Chen et. al. 2022
213213 aiu, bi, ciu = CO. Chen2022_vel_coeffs (vel, ρₐ, ρᵢ)
214214 # size distribution parameter
@@ -235,7 +235,7 @@ function terminal_velocity(
235235) where {FT}
236236 fall_w = FT (0 )
237237 # see comments above about B2 vs B4 coefficients
238- if q > FT ( 0 )
238+ if q > CO . ϵ_numerics (FT )
239239 # coefficients from Table B4 from Chen et. al. 2022
240240 aiu, bi, ciu = CO. Chen2022_vel_coeffs (vel, ρₐ, ρᵢ)
241241 # size distribution parameter
@@ -325,7 +325,7 @@ function conv_q_icl_to_q_sno(
325325 acnv_rate = FT (0 )
326326 S = TDI. supersaturation_over_ice (tps, q_tot, q_lcl + q_rai, q_icl + q_sno, ρ, T)
327327
328- if (q_icl > FT ( 0 ) && S > FT (0 ))
328+ if (q_icl > CO . ϵ_numerics (FT ) && S > FT (0 ))
329329 (; me, Δm) = mass
330330 G = CO. G_func_ice (aps, tps, T)
331331 n0 = get_n0 (pdf)
@@ -364,7 +364,7 @@ function accretion(
364364) where {FT}
365365
366366 accr_rate = FT (0 )
367- if (q_clo > FT ( 0 ) && q_pre > FT ( 0 ))
367+ if (q_clo > CO . ϵ_numerics (FT ) && q_pre > CO . ϵ_numerics (FT ))
368368
369369 n0:: FT = get_n0 (precip. pdf, q_pre, ρ)
370370 v0:: FT = get_v0 (vel, ρ)
@@ -407,7 +407,7 @@ function accretion_rain_sink(
407407 ρ:: FT ,
408408) where {FT}
409409 accr_rate = FT (0 )
410- if (q_icl > FT ( 0 ) && q_rai > FT ( 0 ))
410+ if (q_icl > CO . ϵ_numerics (FT ) && q_rai > CO . ϵ_numerics (FT ))
411411
412412 n0_ice = get_n0 (ice. pdf)
413413 λ_ice_inv = lambda_inverse (ice. pdf, ice. mass, q_icl, ρ)
@@ -459,7 +459,7 @@ function accretion_snow_rain(
459459) where {FT}
460460
461461 accr_rate = FT (0 )
462- if (q_i > FT ( 0 ) && q_j > FT ( 0 ))
462+ if (q_i > CO . ϵ_numerics (FT ) && q_j > CO . ϵ_numerics (FT ))
463463
464464 n0_i = get_n0 (type_i. pdf, q_i, ρ)
465465 n0_j = get_n0 (type_j. pdf, q_j, ρ)
@@ -524,7 +524,7 @@ function evaporation_sublimation(
524524 evap_subl_rate = FT (0 )
525525 S = TDI. supersaturation_over_liquid (tps, q_tot, q_lcl + q_rai, q_icl + q_sno, ρ, T)
526526
527- if (q_rai > FT ( 0 ) && S < FT (0 ))
527+ if (q_rai > CO . ϵ_numerics (FT ) && S < FT (0 ))
528528
529529 (; ν_air, D_vapor) = aps
530530 G = CO. G_func_liquid (aps, tps, T)
@@ -565,7 +565,7 @@ function evaporation_sublimation(
565565 T:: FT ,
566566) where {FT}
567567 evap_subl_rate = FT (0 )
568- if q_sno > FT ( 0 )
568+ if q_sno > CO . ϵ_numerics (FT )
569569 (; ν_air, D_vapor) = aps
570570
571571 S = TDI. supersaturation_over_ice (tps, q_tot, q_lcl + q_rai, q_icl + q_sno, ρ, T)
@@ -618,7 +618,7 @@ function snow_melt(
618618) where {FT}
619619 snow_melt_rate = FT (0 )
620620
621- if (q_sno > FT ( 0 ) && T > T_freeze)
621+ if (q_sno > CO . ϵ_numerics (FT ) && T > T_freeze)
622622 (; ν_air, D_vapor, K_therm) = aps
623623
624624 L = TDI. Lf (tps, T)
0 commit comments