src1.f.html CLAWPACK  
 Source file:   src1.f
 Directory:   /Users/rjl/git/rjleveque/clawpack-4.6.3/book/chap17/onramp
 Converted:   Mon Jan 21 2013 at 20:15:36   using clawcode2html
 This documentation file will not reflect any later changes in the source file.

 

c
c
c =========================================================
      subroutine src1(maxmx,meqn,mbc,mx,xlower,dx,q,maux,aux,t,dt)
c =========================================================
      implicit double precision (a-h,o-z)
      dimension q(1-mbc:maxmx+mbc, meqn)
      common /comsrc/ xramp,alf
c
c     delta-function source term for on-ramp
c
      do i=1,mx
	xleft = xlower + (i-1)*dx
        if (xramp.ge.xleft .and. xramp.lt.(xleft+dx)) then
            q(i,1) = q(i,1) + alf*dt/dx
	    endif
        enddo
       
      return
      end