9 implicit real*8 (a-h,o-z)
10 real*8 u0(n),ut(n),du(n),u(n)
34 ut(i)=ut(i)+b(j)*du(i)
58 implicit real*8 (a-h,m,o-z)
59 common/rksave/ coeff,hohat(3),e,a,hh,mb
60 common/tidal/ cq(2),ct(2),cgr,dedt
61 real*8 ehat(3),hhat(3),qhat(3),
edot(3),hdot(3),u(6),du(6)
72 e=sqrt(u(1)**2+u(2)**2+u(3)**2)
77 hh=sqrt(u(4)**2+u(5)**2+u(6)**2)
88 call
cross(hhat,ehat,qhat)
92 s11=-coeff*(3*(
dot(hohat,ehat))**2 - 1)
93 s12=-3*coeff*
dot(hohat,ehat)*
dot(hohat,qhat)
94 s13=-3*coeff*
dot(hohat,ehat)*
dot(hohat,hhat)
95 s22=-coeff*(3*(
dot(hohat,qhat))**2 - 1)
96 s23=-3*coeff*
dot(hohat,qhat)*
dot(hohat,hhat)
101 edot(i)=(e*a*hh/2/mb)*
102 & (-5*s12*ehat(i)+(4*s11-s22)*qhat(i)-s23*hhat(i))
104 hdot(i)=(a**2/2)*((1-e**2)*s23*ehat(i)
105 & -(1+4*e**2)*s13*qhat(i)+5*e**2*s12*hhat(i))
112 ge=30*e+45*e**3+3.75*e**5
114 he=(1.0+3.75*e**2+1.875*e**4+5.0/64.0*e**6)/(1.0-e**2)**6.5
118 zq=ge/(slr**5*a*sqrt(a))
120 zt=9.0*e*zz*(ct(1) + ct(2))
121 zq=zq*(cq(1) + cq(2))
128 zg = cgr/(slr*a*sqrt(a))
141 edot(i) =
edot(i) + zt*ehat(i) + (zq + zg)*qhat(i)
167 IF (e.GT.0.980.AND.itime.EQ.-4)
THEN
173 IF (itime.EQ.4)
WRITE (6,6) e0,tf,tq,edt,edq,edtot,ekd
174 6
FORMAT (
' DERIV e TF TQ EDT EDQ ED EK ',f9.5,1p,6e10.2)
176 IF (itime.GE.4) itime = 0