28.11.2014 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.

!***********************************************************************<br />

!23456789|123456789|123456789|123456789|123456789|123456789|123456789|12<br />

!-----------------------------------------------------------------------<br />

!------------------------------- main code -----------------------------<br />

!-----------------------------------------------------------------------<br />

!-----------------------------------------------------------------------<br />

! Step 1. Initialization<br />

!-----------------------------------------------------------------------<br />

implicit none<br />

! ------------<br />

! <strong>EGS5</strong> COMMONs<br />

! ------------<br />

include ’include/egs5_h.f’<br />

! Main EGS "header" file<br />

include ’include/egs5_bounds.f’<br />

include ’include/egs5_edge.f’<br />

include ’include/egs5_media.f’<br />

include ’include/egs5_misc.f’<br />

include ’include/egs5_thresh.f’<br />

include ’include/egs5_useful.f’<br />

include ’include/egs5_usersc.f’<br />

include ’include/egs5_userxt.f’<br />

include ’include/randomm.f’<br />

! ----------------------<br />

! Auxiliary-code COMMONs<br />

! ----------------------<br />

include ’auxcommons/lines.f’<br />

common/passit/zthick<br />

real*8 zthick<br />

common/totals/esum(3)<br />

real*8 esum<br />

real*8 ei,ekin,etot,totke,xi,yi,zi,<br />

* ui,vi,wi,wti<br />

real tarray(2)<br />

! Arguments<br />

real t0,t1,timecpu,tt<br />

real etime<br />

integer i,idinc,iqi,iri,j,ncases<br />

character*24 medarr(2)<br />

! Local variables<br />

! ----------<br />

! Open files<br />

! ----------<br />

open(UNIT= 6,FILE=’egs5job.out’,STATUS=’unknown’)<br />

345

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

Saved successfully!

Ooh no, something went wrong!