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.

240 FORMAT(//,’ Total energy fraction in run=’,G15.7,/,*’ Which should be close to unity’)! -----------! Close files! -----------close(UNIT=6)stopend!-------------------------last line of main code------------------------!-------------------------------ausgab.f--------------------------------! Version: 050701-1615! Reference: SLAC-R-730, KEK-2005-8 (Appendix 2)!-----------------------------------------------------------------------!23456789|123456789|123456789|123456789|123456789|123456789|123456789|12! ----------------------------------------------------------------------! Required subroutine for use with the <strong>EGS5</strong> Code System! ----------------------------------------------------------------------! A simple AUSGAB to:!! 1) Score energy deposition! 2) Print out stack information! 3) Print out particle transport information (if switch is turned on)!! ----------------------------------------------------------------------subroutine ausgab(iarg)implicit noneinclude ’include/egs5_h.f’include ’include/egs5_epcont.f’include ’include/egs5_stack.f’include ’auxcommons/lines.f’! Main EGS "header" file! COMMONs required by <strong>EGS5</strong> codecommon/totals/esum(3)real*8 esuminteger iarg! Arguments! ----------------------! Add deposition energy! ----------------------esum(ir(np))=esum(ir(np)) + edep! ----------------------------------------------------------------! Print out stack information (for limited number cases and lines)! ----------------------------------------------------------------350

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

Saved successfully!

Ooh no, something went wrong!