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.

subroutinepairVersion051219-1435ipair = ipair +1eig = e(np)eig.le.2.1yes"Approximate:smoothingconnection at boundary"callrandomset(rnnow1)lvx = 1lvl0 = 0yeseig.lt.50.noese2 = RM + rnnow*(eig/2. - RM)nolvx = 2lvl0 = 3callrandomset(rnnow1)callrandomset(rnnow)"Uniform distribution""Rejection sampling loop""12(br-0.5)**2subdistribution"rnnow.ge.bpar(lvx,medium)yeslvl = lvl0 + 1callrandomset(rnnow2)callrandomset(rnnow3)nolvl = lvl0 + 3br = rnnow1*0.5br = 0.5*(1.0 - max(rnnow1,rnnow2,rnnow3))yeseig*br.lt.RMnodel = 1.0/(eig*br*(1.0 - br))yesdel.ge.delpos(lvx,medium)no1 2 3268

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

Saved successfully!

Ooh no, something went wrong!