Skip to content

Commit

Permalink
Revert "Merge pull request #145 from CLIMADA-project/feature/cyclostr…
Browse files Browse the repository at this point in the history
…ophic-kwargs-update"

This reverts commit 307ef3b, reversing
changes made to 94f68ae.
  • Loading branch information
emanuel-schmid committed Dec 13, 2024
1 parent 818c919 commit e27ee64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions climada_petals/hazard/tc_rainfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ def _w_frict_stretch(
d_centr[f"{rstep}h"] * (
si_track["cp"].values[:, None]
+ (1 if rstep == "+" else -1) * (
h_winds[f"r{rstep},t"] - h_winds[f"r,t"]
h_winds[f"r{rstep},t"] - h_winds["r,t"]
) / res_radial_m
) + h_winds[f"r{rstep}h,t"]
)
Expand Down Expand Up @@ -1660,7 +1660,7 @@ def _qs_from_t_diff_level(
)

# solve `s_out(T_out) - s_in = 0` using the Newton-Raphson method
for it in range(max_iter):
for _ in range(max_iter):
# compute new estimate of r_out from current estimate of T_out
r_out[mask], drdT = _r_from_t_same_level(
pres_out, temps_out[mask], gradient=True, **r_from_t_kwargs,
Expand Down

0 comments on commit e27ee64

Please sign in to comment.