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.

wt(np)=wt(np)/lspltdo isplt=1,nspltx(np+isplt)=x(np)y(np+isplt)=y(np)z(np+isplt)=z(np)u(np+isplt)=u(np)v(np+isplt)=v(np)w(np+isplt)=w(np)ir(np+isplt)=ir(np)wt(np+isplt)=wt(np)dnear(np+isplt)=dnear(np)latch(np+isplt)=latch(np)e(np+isplt)=e(np)iq(np+isplt)=iq(np)k1step(np+isplt)=0.d0k1rsd(np+isplt)=0.d0k1init(np+isplt)=0.d0end donp=np+nspltend ifend ifwhere IRL is a local variable (IR(NP)= region of interest), IRSPLT(IRL) is a flag telling us thatsplitting is “turned on”, and IRL.NE.IRLOLD provides us with a way of doing the splitting onlywhen the photon (IQ(NP)=0) first enters the region.Most of the variables above are associated with the current (ı.e. NP) particle on the “stack” (ı.e.COMMON/STACK/), and with the number of splits (LSPLT=10 in UCCYL).For convenience, the commoncommon/passit/irsplt(66),lsplt,nsplt,nreginteger irsplt,lsplt,nsplt,nregwas also included in the user code (NSPLT=LSPLT-1).The result of this effort was an increase in the number of energy deposition events in theimportant region of interest and, as a result, a decrease in the variance (as judged by batch-runstatistics.190

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

Saved successfully!

Ooh no, something went wrong!