| fdisc.f.html |   | 
  | Source file:   fdisc.f | 
| Directory:    /Users/rjl/git/rjleveque/clawpack-4.6.3/book/chap21/corner | 
| Converted:    Mon Jan 21 2013 at 20:15:38 
  using clawcode2html | 
| This documentation file will 
not reflect any later changes in the source file. | 
 
c
c
c
c     =================================================
      function fdisc(x,y)
c     =================================================
      implicit double precision (a-h,o-z)
c
c     # for computing cell averages for initial data that has a
c     # discontinuity along some curve.  fdisc should be negative to the 
c     # left of the curve and positive to the right
c     # half wedge
      if (x .gt. 0.d0 .and. (y.lt.(0.55d0*x))) then
          fdisc = 1.d0
	else
	  fdisc = -1.d0
	endif
c
      return
      end