1 SUBROUTINE tides2(QPERI,M1,M2,S1,S2,KSTAR,ECC,KG,WS,QS,DE2,DE3)
7 IMPLICIT REAL*8 (a-h,o-z)
8 REAL*8 size(2),ratio(2),zeta(2),psi2(2),psi3(2),de2(2),de3(2),
10 INTEGER kstar(2),ip(2),kg(2)
18 efac = 2.0/(1.0 + ecc)
23 IF (kstar(k).EQ.0) ii = 1
24 IF (kstar(k).GE.10) ii = 2
31 ratio(k) =
SIZE(k)/qperi
32 IF (ratio(k).GT.0.1)
THEN
34 zeta(k) = sqrt((body(k)/(body(k) + body(l)))/ratio(k)**3)
35 IF (zeta(k).GT.2.0)
THEN
36 alpha = 0.5 + 0.25*(0.5*(zeta(k) - 2.0))**1.5
40 zeta(k) = zeta(k)*efac**alpha
42 psi2(k) =
efac2(zeta(k),icase)
43 psi3(k) =
efac3(zeta(k),icase)
45 psi2(k) = qs(1)*
efac2(ws(1)*zeta(k),icase)
46 psi3(k) = qs(2)*
efac3(ws(2)*zeta(k),icase)
55 IF (ratio(k).GT.0.5)
THEN
57 r6 = r2*r2*r2*body(l)**2/
SIZE(k)
59 de3(k) = r6*r2*psi3(k)