Skip to content

Commit e7c6038

Browse files
authored
Merge pull request #3913 from CliMA/aj/no_snow_ice_when_warm
Reducing the noise in ice and snow for warm cases
2 parents 53b8dbb + a2da70e commit e7c6038

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

reproducibility_tests/ref_counter.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
251
1+
252
22

33
# **README**
44
#
@@ -20,14 +20,18 @@
2020

2121

2222
#=
23+
252
24+
- Limit the noise in ice and snow 1M microphysics scheme in cloud formation and
25+
limiter formulation.
26+
2327
251
2428
- Remove ᶜtke⁰, ᶜh_tot, ᶜmse⁰, ᶜρ⁰, and specific quantities from precomputed quantities cache.
2529
Introduce helper functions to compute sums over draft, environmental volumetric variables,
2630
and specific env variables.
2731
2832
250
2933
- Add ARG aerosol activation for 2M microphysics; increase the allocation limit for `flame_callbacks`
30-
from 391864 to 391942 to account for additional allocations when constructing `ClimaAtmosParameters`
34+
from 391864 to 391942 to account for additional allocations when constructing `ClimaAtmosParameters`
3135
with the new aerosol parameters in `microphysics_2m_parameters`.
3236
3337
249

src/parameterized_tendencies/microphysics/microphysics_wrappers.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ function cloud_sources(
127127
S = FT(0)
128128
end
129129

130+
# Additional condition to avoid creating ice in conditions above freezing
131+
# Representing the lack of INPs in warm temperatures
132+
if T > thp.T_freeze && S > FT(0)
133+
S = FT(0)
134+
end
135+
130136
return ifelse(
131137
S > FT(0),
132138
triangle_inequality_limiter(S, limit(qᵥ - qₛᵢ, dt, 2)),
@@ -383,7 +389,7 @@ Computes the source term for cloud droplet number concentration per mass due to
383389
based on the Abdul-Razzak and Ghan (2000) parameterization.
384390
385391
This function estimates the number of aerosols activated into cloud droplets per mass of air per second
386-
from a bi-modal aerosol distribution (sea salt and sulfate), given local supersaturation and vertical
392+
from a bi-modal aerosol distribution (sea salt and sulfate), given local supersaturation and vertical
387393
velocity. The result is returned as a tendency (per second) of liquid droplet number concentration.
388394
389395
# Arguments

src/prognostic_equations/limited_tendencies.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ Returns:
5454
- The limited force value.
5555
5656
Reference:
57-
- Horn, M. (2012). "ASAMgpu V1.0 – a moist fully compressible atmospheric model using
57+
- Horn, M. (2012). "ASAMgpu V1.0 – a moist fully compressible atmospheric model using
5858
graphics processing units (GPUs)". Geoscientific Model Development,
5959
5, 345–353. https://doi.org/10.5194/gmd-5-345-2012
6060
"""
6161

6262
function triangle_inequality_limiter(force, limit)
63-
return force + limit - sqrt(force^2 + limit^2)
63+
FT = eltype(force)
64+
return force == FT(0) ? force : force + limit - sqrt(force^2 + limit^2)
6465
end

0 commit comments

Comments
 (0)