10 common/ludat1/mstu(200),paru(200),mstj(200),parj(200)
12 common/ludat2/kchg(500,3),pmas(500,4),parf(2000),vckm(4,4)
14 dimension sm(3,3),sv(3,3)
23 IF(
k(i,1).LE.0.OR.
k(i,1).GT.10) goto 120
24 IF(mstu(41).GE.2)
THEN
26 IF(kc.EQ.0.OR.kc.EQ.12.OR.kc.EQ.14.OR.kc.EQ.16.OR.
28 IF(mstu(41).GE.3.AND.kchg(kc,2).EQ.0.AND.
luchge(
k(i,2)).EQ.0)
32 pa=
sqrt(
p(i,1)**2+
p(i,2)**2+
p(i,3)**2)
34 IF(abs(paru(41)-2.).GT.0.001) pwt=
max(1
e-10,pa)**(paru(41)-2.)
37 110 sm(j1,j2)=sm(j1,j2)+pwt*
p(i,j1)*
p(i,j2)
43 CALL
luerrm(8,
'(LUSPHE:) too few particles for analysis')
50 130 sm(j1,j2)=sm(j1,j2)/
ps
53 sq=(sm(1,1)*sm(2,2)+sm(1,1)*sm(3,3)+sm(2,2)*sm(3,3)-sm(1,2)**2-
54 &sm(1,3)**2-sm(2,3)**2)/3.-1./9.
55 sr=-0.5*(sq+1./9.+sm(1,1)*sm(2,3)**2+sm(2,2)*sm(1,3)**2+sm(3,3)*
56 &sm(1,2)**2-sm(1,1)*sm(2,2)*sm(3,3))+sm(1,2)*sm(1,3)*sm(2,3)+1./27.
60 p(
n+2,4)=1.-
p(
n+1,4)-
p(
n+3,4)
61 IF(
p(
n+2,4).LT.1
e-5)
THEN
62 CALL
luerrm(8,
'(LUSPHE:) all particles back-to-back')
71 sv(j1,j1)=sm(j1,j1)-
p(
n+i,4)
74 140 sv(j2,j1)=sm(j1,j2)
78 IF(abs(sv(j1,j2)).LE.
smax) goto 150
86 rl=sv(j1,jb)/sv(ja,jb)
88 sv(j1,j2)=sv(j1,j2)-rl*sv(ja,j2)
89 IF(abs(sv(j1,j2)).LE.
smax) goto 160
95 p(
n+i,jb1)=-sv(jc,jb2)
97 p(
n+i,jb)=-(sv(ja,jb1)*
p(
n+i,jb1)+sv(ja,jb2)*
p(
n+i,jb2))/
100 sgn=(-1.)**
int(
rlu(0)+0.5)
102 170
p(
n+i,j)=sgn*
p(
n+i,j)/pa
105 sgn=(-1.)**
int(
rlu(0)+0.5)
106 p(
n+2,1)=sgn*(
p(
n+1,2)*
p(
n+3,3)-
p(
n+1,3)*
p(
n+3,2))
107 p(
n+2,2)=sgn*(
p(
n+1,3)*
p(
n+3,1)-
p(
n+1,1)*
p(
n+3,3))
108 p(
n+2,3)=sgn*(
p(
n+1,1)*
p(
n+3,2)-
p(
n+1,2)*
p(
n+3,1))
122 IF(mstu(43).LE.1) mstu(3)=3
123 IF(mstu(43).GE.2)
n=
n+3
124 sph=1.5*(
p(
n+2,4)+
p(
n+3,4))