15 OPEN (unit=14,
status=
'NEW',form=
'FORMATTED',file=
'MDOT')
20 WRITE (14,1) rbar, bodym*zmbar, body1*zmbar, tscale,
22 1
FORMAT (/,6x,
'MODEL: RBAR =',f5.1,
' <M> =',f6.2,
23 &
' M1 =',f6.1,
' TSCALE =',f6.2,
24 &
' NB =',i4,
' N0 =',i6,//)
28 2
FORMAT (
' TIME NAME K* M DM r/Rc VR',
47 ri2 = ri2 + (x(k,i) - rdens(k))**2
48 vi2 = vi2 + xdot(k,i)**2
49 vr = vr + (x(k,i) - rdens(k))*xdot(k,i)
60 ei = ei + ht/(body(i) + 1.0e-20)
63 WRITE (14,20) ttot, name(j), kstar(j), body(j)*zmbar, dm*zmbar,
65 20
FORMAT (1x,f8.1,i6,i4,f7.1,f6.2,f7.2,f7.2,f8.3,i6)