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.

subroutine<br />

rluxgo<br />

Version<br />

051219-1435<br />

luxlev.le 0<br />

.or.<br />

luxlev.gt.maxlev<br />

no<br />

nskip = ndskip(luxlev)<br />

yes<br />

write (6,'(a,i7)')<br />

'illegal ranlux level in rluxgo: ',luxlev<br />

stop<br />

write(6,'(a,i2,a,i4)') 'ranlux luxury level set by rluxgo :',<br />

luxlev,' p=', nskip+24<br />

in24 = 0<br />

jseed = inseed<br />

yes<br />

write(6,'(a,i12)') 'ranlux initialized by<br />

rluxgo from seed', jseed<br />

inseed<br />

.lt.<br />

0<br />

inseed<br />

.gt.<br />

0<br />

no<br />

no<br />

jseed = jsdflt<br />

yes<br />

write (6,'(a)') 'Illegal initialization in<br />

rluxgo, negative input seed'<br />

stop<br />

write(6,'(a)')'ranlux initialized by<br />

rluxgo from default seed'<br />

inseed = jseed<br />

twom24 = 1.<br />

i=1<br />

i=i+1<br />

i>24<br />

no<br />

yes<br />

twom24 = twom24 * 0.5<br />

k = jseed/53668<br />

jseed = 40014*(jseed-k*53668) -k*12211<br />

jseed = jseed+icons<br />

yes<br />

jseed<br />

.lt.<br />

0<br />

no<br />

iseeds(i) = mod(jseed,itwo24)<br />

itwom12 = twom24 * 4096.<br />

1<br />

306

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

Saved successfully!

Ooh no, something went wrong!