Skip to content

Commit

Permalink
Increased mm array as per RWG's instructions to support larger ruptur…
Browse files Browse the repository at this point in the history
…es. Also added RWG's updates to hb_high_v6.1.1_sub.f
  • Loading branch information
fabiolsilva committed Jun 5, 2024
1 parent 0cf290b commit 83d53b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions bbp/src/gp/StochSim/V6.0/hb_high_v6.1.1_sub.f
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ subroutine hb_high(cap, stlon, stlat, velfile, outname, duration, dt, ds, nevnt,
dimension astop(lv),dtop(lv),shyp(lv),dhyp(lv),nx(lv),nw(lv),dx(lv),dw(lv)


DIMENSION stdd(mmv,3),dfr(mm),fgrand(mmv),fgrands(mm)
DIMENSION stdd(mm,3),dfr(mm),fgrand(mmv),fgrands(mm)
complex cs(mm,3),sgc

dimension fn(nlaymax),an(nlaymax)
Expand Down Expand Up @@ -296,13 +296,21 @@ subroutine hb_high(cap, stlon, stlat, velfile, outname, duration, dt, ds, nevnt,
fcfac = fcfac_default
fcfac = 0.0

c RWG 20240220: initialization of zhyp_max, nstot, farea_in added
zhyp_max = 0.0
nstot = 0
farea_in = 0.0

do 132 iv=1,nevnt
nstot = nx(iv)*nw(iv) + nstot
farea_in = nx(iv)*dx(iv)*nw(iv)*dw(iv) + farea_in
astop(iv) = 0.5*nx(iv)*dx(iv)

c RWG 201241219: '*' should have been '/' in below, fixed 21041219
zhyp = dtop(iv) + dhyp(iv)/sin(dipq(iv)*pu)
c##- c RWG 201241219: '*' should have been '/' in below, fixed 21041219
c##- zhyp = dtop(iv) + dhyp(iv)/sin(dipq(iv)*pu)
c RWG 20240220: '/' above should have been '*', below is correct
c I have no idea why above was done
zhyp = dtop(iv) + dhyp(iv)*sin(dipq(iv)*pu)
if(zhyp.gt.zhyp_max) zhyp_max = zhyp
132 continue

Expand Down
2 changes: 1 addition & 1 deletion bbp/src/gp/StochSim/V6.0/params.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
C old way with large 'lv', this is nevent and needed this for ShakeOut & Hayward sims
C parameter (mm=65392,mmv=60000,mst=6,lv=1000)
C more general way with small 'lv'
parameter (mm=65392,mmv=60000,mst=6,lv=10)
parameter (mm=131072,mmv=60000,mst=6,lv=10)
parameter (nq=2000,np=500,nlaymax=500)

0 comments on commit 83d53b9

Please sign in to comment.