10.07.2015 Views

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3456icprof(medium).eq.3noyescallrandomset(rnnow1)ishell=1ishell=ishell+1 ishell>mxshel(medium)yesnonornnow1.le.elecno(ishell,medium)yeslvallc = ccos1(medium)*rnnow + ccos0(medium)cpr = cprs1(lvallc,ishell,medium)*rnnow + cprs0(lvallc,ishell,medium)f1 = (cpr/137.)*(cpr/137.)f2 = (1. - costhe)/RMf3 = (1. + f2*eig)*(1. + f2*eig) - f1f4 = (f1*costhe - 1. - f2*eig)f5 = f4*f4 - f3 + f1*f3eps1 = 0.0yesf5.lt.eps1noesg1 = (-f4 - sqrt(f5))/f3*eigesg2 = (-f4 + sqrt(f5))/f3*eigcallrandomset(rnnow2)rnnow2.lt.0.5noesg = esg2yesesg = esg1icprof(medium).eq.3noyesesgmax = eig - capio(ishell,medium)yesesg .gt. esgmax.or.esg .lt. 0.nocallrandomset(rnnow3)esg.lt.esgmax*rnnow3noyes7217

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!