rpt2ad.f.html | ![]() |
Source file: rpt2ad.f | |
Directory: /home/rjl/git/rjleveque/clawpack-4.x/book/chap20/rotate | |
Converted: Tue Jul 26 2011 at 12:59:04 using clawcode2html | |
This documentation file will not reflect any later changes in the source file. |
c c c ===================================================== subroutine rpt2(ixy,maxm,meqn,mwaves,mbc,mx, & ql,qr,aux1,aux2,aux3, & imp,asdq,bmasdq,bpasdq) c ===================================================== implicit double precision(a-h,o-z) c c # Riemann solver in the transverse direction for the advection equation. c dimension ql(1-mbc:maxm+mbc, meqn) dimension qr(1-mbc:maxm+mbc, meqn) dimension asdq(1-mbc:maxm+mbc, meqn) dimension bmasdq(1-mbc:maxm+mbc, meqn) dimension bpasdq(1-mbc:maxm+mbc, meqn) dimension aux1(1-mbc:maxm+mbc, 2) dimension aux2(1-mbc:maxm+mbc, 2) dimension aux3(1-mbc:maxm+mbc, 2) c c kv = 3-ixy !# = 1 if ixy=2 or = 2 if ixy=1 do 10 i=2-mbc,mx+mbc i1 = i-2+imp !# = i-1 for amdq, i for apdq bmasdq(i,1) = dmin1(aux2(i1,kv), 0.d0) * asdq(i,1) bpasdq(i,1) = dmax1(aux3(i1,kv), 0.d0) * asdq(i,1) 10 continue c return end