16 IF (body(i).GT.zmx) go to 2
17 IF (step(i).GT.dtcl.OR.body(i).EQ.0.0d0) go to 1
23 IF (nnb1.EQ.1) go to 1
28 rij2 = rij2 + (x(k,i) - x(k,j))**2
37 IF (jmin.GT.n.OR.name(jmin).LE.0) go to 1
42 vij2 = vij2 + (xdot(k,i) - xdot(k,jmin))**2
44 ainv = 2.0/sqrt(rx2) - vij2/(body(i) + body(jmin))
48 zmb = body(i) + body(jmin)
54 IF (ainv.GT.1.0/rcl.OR.
erel.GT.eclose)
THEN
58 IF (name(icomp).EQ.0.OR.name(jcomp).EQ.0) go to 1
61 x0dot(k,icomp) = xdot(k,icomp)
62 x0dot(k,jcomp) = xdot(k,jcomp)
68 ri2 = ri2 + (x(k,ntot) - rdens(k))**2
71 ecc2 = (1.0 - r(npairs)/semi)**2 +
72 & tdot2(npairs)**2/(body(ntot)*semi)
75 IF (newks.LT.50.OR.
erel.GT.eclose)
THEN
76 WRITE (6,25) name(j1), name(j1+1), list(1,j1),
77 & list(1,ntot), sqrt(ri2), ecc, semi,
79 25
FORMAT (
' ENFORCED KS NAM NP NNB r E A GAM ',
80 & 2i7,i4,i5,f7.2,f8.3,1p,e10.2,e9.1)