19 real*8 v, maxf, ve, xs5, xs, vx, a, b, beta, xse
23 save xaisave, maxf, vx
27 if(xai .ne. xaisave )
then 28 xs5 = cmpairspec(xai, 0.5
d0)
29 if(xai .gt. 4.526)
then 33 do while (v .lt. .999
d0)
34 xs = cmpairspec(xai, v)
41 a = (maxf - xs5)/(vx - 0.5)
52 beta = (3./8.*a + b/2)* u - (a/2 + b)
53 ve = (- b + sqrt(b**2 - 2*a*beta))/a
57 xse = cmpairspec(xai, ve)
59 if(u .lt. xse/(a*ve + b))
goto 10
64 elseif(xai .lt. .005)
then 67 elseif(xai .lt. 1.)
then 70 sigma= .50/1.4142*xai**0.53
74 if(ve .gt. 0. .and. ve .lt. 1.)
goto 5
77 xse = cmpairspec(xai, ve)
80 * xse /( ( exp(-((ve - 0.5)/sigma)**2/2) * maxf)))
85 if(ee .lt. 0.5) ee = 1. - ee
90 xse = cmpairspec(xai, ve)
92 if(u .lt. xse/maxf)
goto 20
subroutine cmpaire(xai, ee, nc)
subroutine kgauss(m, v, g1)
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0