11 REAL*8 c(3),flagr(lx),rlagr(lx),rm(lx),dens(lx),vr(lx),avm(lx)
15 DATA flagr/0.01,0.02,0.05,0.1,0.2,0.3,0.4,0.5,0.625,0.75,0.9/
22 r2(np) = (x(1,i) - c(1))**2 + (x(2,i) - c(2))**2 +
28 CALL
sort1(np,r2,jlist)
50 vm2 = vm2 + body(im)*(xdot(1,im)**2 + xdot(2,im)**2 +
53 IF (zm.LT.zmh) go to 15
54 rlagr(il) = sqrt(r2(i))
55 IF (kz(7).LT.5) go to 20
58 IF (abs(dm).LT.1.0d-10)
THEN
63 dv = 2.0*twopi/3.0*(r2(i)**1.5 - r1**3)
65 IF (dens(il).LE.0.0d0) dens(il) = 1.0
66 rm(il) = 0.5*(r1 + rlagr(il))
69 avm(il) = dm/float(i - iprev)*smu
82 IF (zm.LT.zmh) go to 25
88 if (kz(14).eq.2.and.tidal(1).ne.0.)
then
93 rt = (mrt/tidal(1))**(1./3.)
97 IF (sqrt(r2(i)).gt.rt.and.rt.gt.0.and.i.gt.1)
then
105 IF ((kz(7).EQ.2.OR.kz(7).EQ.4).AND.time.GE.tnext)
THEN
106 IF (kz(14).EQ.2)
WRITE (6,*) tphys,mrt,rt
109 IF (kz(7).GE.3.AND.time.GE.tnext)
THEN
110 IF (kz(14).EQ.2)
WRITE (14,35) tphys, mrt, rt
111 35
FORMAT (3x,
'TIDAL RADIUS TPHYS MRT RT ',f8.1,1p,2e10.2)
115 IF (kz(7).EQ.2.OR.kz(7).EQ.4.AND.time.GE.tnext)
THEN
116 WRITE (6,40) (log10(rlagr(k)),k=1,lx)
117 40
FORMAT (/,
' LAGR: ',13f7.3)
120 IF (kz(7).GE.3.AND.time.GE.tnext)
THEN
121 WRITE (14,50) ttot, (log10(rlagr(k)),k=1,lx)
122 50
FORMAT (
' LAGR: ',f7.1,13f7.3)
126 IF (kz(7).EQ.5.AND.time.GE.tnext)
THEN
127 WRITE (26,60) ttot, (dens(k),k=1,lx)
128 60
FORMAT (
' DENSITY (T =',f7.1,
'): ',1p,13e10.2)
129 WRITE (26,65) (rm(k),k=1,lx)
130 65
FORMAT (
' DISTANCE: ',1p,13e10.2)
132 WRITE (27,70) ttot, (vr(k),k=1,lx)
133 70
FORMAT (
' VELOCITY (T =',f7.1,
'): ',1p,13e10.2)
135 WRITE (36,75) ttot, (avm(k),k=1,lx)
136 75
FORMAT (
' AVERAGE MASS (T =',f7.1,
'): ',13f7.3)
139 IF (kz(7).EQ.6.AND.time.GE.tnext)
THEN
140 WRITE (28,80) ttot, (avm(k), rm(k),k=1,lx)
141 80
FORMAT (
' PAIRWISE <M> <RM> (T =',f7.1,
'): ',
142 & 13(0p,f7.3,1p,e10.2))