vtf-logo

clawpack/applications/scaling/2d/ConvShock/src/lset2.f

c
c      Copyright (C) 2003-2007 California Institute of Technology
c      Ralf Deiterding, ralf@amroc.net
c     
c     =====================================================
       subroutine ls(maxmx,maxmy,mbc,mx,my,x,y,dx,dy,phi,t)
c     =====================================================
       implicit double precision (a-h,o-z)
c
       include  "cuser.i"
c
       dimension phi(1-mbc:maxmx+mbc, 1-mbc:maxmy+mbc)
       dimension x(1-mbc:maxmx+mbc),y(1-mbc:maxmy+mbc)
c
       do 60 i = 1-mbc, mx+mbc
          do 60 j = 1-mbc, my+mbc
             phi(i,j) = rd - dsqrt((x(i)-x0)**2+(y(j)-y0)**2)
 60    continue
         
       return
       end
c
c     =====================================================
       subroutine lsrdi(maxmx,maxmy,mbc,mx,my,x,y,dx,dy,phi,t)
c     =====================================================
       implicit double precision (a-h,o-z)
c
       include  "cuser.i"
c
       dimension phi(1-mbc:maxmx+mbc, 1-mbc:maxmy+mbc)
       dimension x(1-mbc:maxmx+mbc),y(1-mbc:maxmy+mbc)
c
       do 60 i = 1-mbc, mx+mbc
          do 60 j = 1-mbc, my+mbc
             phi(i,j) = dsqrt((x(i)-x0)**2+(y(j)-y0)**2) - rdi
 60    continue
         
       return
       end