1 subroutine hut2(spin10,spin20,spin1,spin2,nsteps,dtau)
3 * spin evolution of circular binary.
4 * ----------------------------------
6 implicit real*8 (a-h,o-z)
14 * include step reduction for large derivatives.
16 1
IF (abs(udot(1))*dtau.GT.0.01*spin10)
THEN
23 5
IF (abs(udot(2))*dtau.GT.0.01*spin20)
THEN
41 * runge-kutta integrator.
42 * -----------------------
44 * author: rosemary mardling(3/98).
47 implicit real*8 (a-h,o-z)
48 real*8 u0(n),ut(n),du(n),u(n)
71 ut(i)=ut(i)+b(j)*du(i)
83 implicit real*8 (a-h,m,o-z)
85 common/spins/angmom0,rg2(2),m21,r21,semi0,c1,c2,c3,c4,c5,semi
98 * f2=1+7.5*e2+5.625*e4+0.3125*e6
99 * f3=1+3.75*e2+1.875*e4+0.078125*e6
100 * f4=1+1.5*e2+0.125*e4
104 semi=angmom0-rg2(1)*spin1-m21*r21**2*rg2(2)*spin2
105 * semi=(semi*(1+m21)/m21/semi0**2)**2/fac
106 semi=(semi*(1+m21)/m21/semi0**2)**2
109 * udot(1)=(oa/fac)**6*c3*(oa**1.5*f2-fac**1.5*f5*spin1)
110 * udot(2)=(oa/fac)**6*c4*(oa**1.5*f2-fac**1.5*f5*spin2)
111 udot(1)=oa**6*c3*(oa**1.5-spin1) - c5*spin1
112 udot(2)=oa**6*c4*(oa**1.5-spin2)
116 *
WRITE (6,1) ic, spin1, spin2, udot
117 * 1
FORMAT (
' HUT DERIV # s1 s2 udot ',i8,1p,6e9.1)