Skip to content

Commit d30b5d7

Browse files
authored
Merge pull request #882 from atmos-cloud-sim-uj/slayoo-patch-21
replace "dry radius larger than critical radius" error with setting of r_wet[i]=r_dry[i]
2 parents 83efe85 + 4dcec3c commit d30b5d7

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

PySDM/initialisation/equilibrate_wet_radii.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,25 +69,8 @@ def r_wet_init_impl( # pylint: disable=too-many-arguments
6969
b = r_cr(kappa[i], r_dry[i] ** 3, T[cid], const.sgm_w)
7070

7171
if not a < b:
72-
warn(
73-
msg="dry radius larger than critical radius",
74-
file=__file__,
75-
context=(
76-
"i",
77-
i,
78-
"r_d",
79-
r_dry[i],
80-
"T",
81-
T[cid],
82-
"RH",
83-
RH[cid],
84-
"f_org",
85-
f_org[i],
86-
"kappa",
87-
kappa[i],
88-
),
89-
)
90-
iters[i] = -1
72+
r_wet[i] = r_dry[i]
73+
iters[i] = 0
9174
continue
9275

9376
# minimisation

0 commit comments

Comments
 (0)