11 IF (kz(14).GT.0.AND.kz(14).LE.2)
THEN
12 ecrit = -1.5*(tidal(1)*zmass**2)**0.333
17 v2m = 0.5*zmass/rscale
22 ri2 = (x(1,i) - rdens(1))**2 + (x(2,i) - rdens(2))**2 +
23 & (x(3,i) - rdens(3))**2
24 vi2 = xdot(1,i)**2 + xdot(2,i)**2 + xdot(3,i)**2
25 IF (ri2.GT.rscale**2)
THEN
26 vc2 = zmass/sqrt(ri2) + ecrit
27 IF (vi2.LT.vc2) go to 60
30 IF (vi2.LT.2.0*v2m + ecrit) go to 60
37 rij2 = rij2 + (x(k,i) - x(k,j))**2
42 IF (ei.GT.ecrit) nesc = nesc + 1