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.

!***********************************************************************!23456789|123456789|123456789|123456789|123456789|123456789|123456789|12!-----------------------------------------------------------------------!------------------------------- main code -----------------------------!-----------------------------------------------------------------------!-----------------------------------------------------------------------! Step 1. Initialization!-----------------------------------------------------------------------implicit none! ------------! <strong>EGS5</strong> COMMONs! ------------include ’include/egs5_h.f’! Main EGS "header" fileinclude ’include/egs5_bounds.f’include ’include/egs5_edge.f’include ’include/egs5_media.f’include ’include/egs5_misc.f’include ’include/egs5_thresh.f’include ’include/egs5_useful.f’include ’include/egs5_usersc.f’include ’include/egs5_userxt.f’include ’include/randomm.f’! ----------------------! Auxiliary-code COMMONs! ----------------------include ’auxcommons/lines.f’common/passit/zthickreal*8 zthickcommon/totals/esum(3)real*8 esumreal*8 ei,ekin,etot,totke,xi,yi,zi,* ui,vi,wi,wtireal tarray(2)! Argumentsreal t0,t1,timecpu,ttreal etimeinteger i,idinc,iqi,iri,j,ncasescharacter*24 medarr(2)! Local variables! ----------! Open files! ----------open(UNIT= 6,FILE=’egs5job.out’,STATUS=’unknown’)345

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

Saved successfully!

Ooh no, something went wrong!