Skip to content

Commit

Permalink
fix fac in swegn96
Browse files Browse the repository at this point in the history
  • Loading branch information
keurfonluu committed Feb 7, 2021
1 parent 10dcb4c commit 949e787
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions disba/_cps/_swegn96.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,9 @@ def shfunc(omega, wvno, d, a, b, rho):
for i in range(1, mmax):
if b[i] > 0.01:
ext += exl[i - 1]
fac = numpy.exp(ext) if ext < 80.0 else 0.0
uu[i] /= fac
tt[i] /= fac
fac = 1.0 / numpy.exp(ext) if ext < 80.0 else 0.0
uu[i] *= fac
tt[i] *= fac
else:
uu[i] = 0.0
tt[i] = 0.0
Expand Down

0 comments on commit 949e787

Please sign in to comment.