1 subroutine hut2(spin10,spin20,spin1,spin2,nsteps,dtau)
3 * spin evolution of circular binary.
4 * ----------------------------------
6 implicit real*8 (a-h,o-z)
17 * include step reduction for large derivatives.
19 1
IF (abs(udot(1))*dtau.GT.0.01*spin10)
THEN
26 5
IF (abs(udot(2))*dtau.GT.0.01*spin20)
THEN
35 *
IF (iflag.GT.0) go to 10
41 IF (iflag.EQ.0.AND.iter.LT.nsteps) go to 6
50 * runge-kutta integrator.
51 * -----------------------
53 * author: rosemary mardling(3/98).
56 implicit real*8 (a-h,o-z)
57 real*8 u0(n),ut(n),du(n),u(n)
80 ut(i)=ut(i)+b(j)*du(i)
92 implicit real*8 (a-h,m,o-z)
94 common/spins/angmom0,rg2(2),m21,r21,semi0,c1,c2,c30,c40,c5,semi
96 common/cflag/ iflag,iq
112 * f2=1+7.5*e2+5.625*e4+0.3125*e6
113 * f3=1+3.75*e2+1.875*e4+0.078125*e6
114 * f4=1+1.5*e2+0.125*e4
118 semi=angmom0-rg2(1)*spin1-m21*r21**2*rg2(2)*spin2
119 * semi=(semi*(1+m21)/m21/semi0**2)**2/fac
120 semi=(semi*(1+m21)/m21/semi0**2)**2
127 * udot(1)=(oa/fac)**6*c3*(oa**1.5*f2-fac**1.5*f5*spin1)
128 * udot(2)=(oa/fac)**6*c4*(oa**1.5*f2-fac**1.5*f5*spin2)
129 udot(1)=oa**6*c3*(oa**1.5-spin1) - c5*spin1
130 udot(2)=oa**6*c4*(oa**1.5-spin2)
132 * quit on relative change exceeding 2 % (sja 05/09).
133 IF (abs(oa - oa0).GT.0.02*oa0) iflag = 1
138 *
WRITE (6,1) ic, spin1, spin2, udot, c5
139 * 1
FORMAT (
' HUT DERIV # s1 s2 udot C5 ',i5,1p,6e9.1)