Skip to content

Commit 5495a8e

Browse files
Merge pull request #70 from pmpowers-usgs/gail-table-rscale-69
Gail tbale fix
2 parents a5487ed + ca151e3 commit 5495a8e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/hazFXnga13l.f

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8210,6 +8210,8 @@ real function amean11(amag,r,rjb,Vs30,ip,jf,ka)
82108210
if (jdl .eq. 0) write(*,*)' ERROR. CANNOT FIND DIST'
82118211
jdu = jdl + 1
82128212
fracd = (rl - rlog(jdl,ka)) / (rlog(jdu,ka)-rlog(jdl,ka))
8213+
c fracd goes negative above rmax; clamp to 0 P.Powers 10/21/16
8214+
if (jdflag .eq. 1) fracd = 0
82138215
c** fracd gives interpolation fraction in distanc
82148216
do 40 j = jfl, jfu
82158217
arl = gma(j,jdl,jml,ka) + fracm * (gma(j,jdl,jmu,ka)-gma(j,jdl,jml,ka))

src/hazgridXnga13l.f

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8192,6 +8192,8 @@ real function amean11(amag,r,rjb,Vs30,ip,jf,ka)
81928192
if (jdl .eq. 0) write(*,*)' ERROR. CANNOT FIND DIST'
81938193
jdu = jdl + 1
81948194
fracd = (rl - rlog(jdl,ka)) / (rlog(jdu,ka)-rlog(jdl,ka))
8195+
c fracd goes negative above rmax; clamp to 0 P.Powers 10/21/16
8196+
if (jdflag .eq. 1) fracd = 0
81958197
c** fracd gives interpolation fraction in distanc
81968198
do 40 j = jfl, jfu
81978199
arl = gma(j,jdl,jml,ka) + fracm * (gma(j,jdl,jmu,ka)-gma(j,jdl,jml,ka))

0 commit comments

Comments
 (0)