8 REAL*8 tscls(20),lums(10),gb(10),tm,tn
9 REAL*8 m0,m1,rm,lum,age,mc,rcc
10 REAL*8 menv,renv,k2,k3
72 WRITE (6,9) zpars(11), zpars(12), zmet
73 9
FORMAT(//,12x,
'ABUNDANCES: X =',f6.3,
' Y =',f6.3,
' Z =',f6.3)
78 spnfac = zmbar*su**2/(1.0d+06*tstar)
85 READ(12,*)m1,kw,m0,epoch1,ospin
93 IF (m1.LT.8.0.AND.kz(41).GT.0)
THEN
100 IF (kz(45).GT.0.AND.m0.GT.10.0.AND.i.LE.kz(24)) kw = 14
104 age = time*tstar - epoch1
105 CALL
star(kw,m0,m1,tm,tn,tscls,lums,gb,zpars)
109 age = time*tstar - epoch(i)
111 CALL
hrdiag(m0,age,m1,tm,tn,tscls,lums,gb,zpars,
112 & rm,lum,kw,mc,rcc,menv,renv,k2)
116 jspin = (k2*(m1-mc)*rm**2 + k3*mc*rcc**2)*ospin
118 ospin = 45.35d0*
vrotf(m1)/rm
119 jspin = k2*m1*rm**2*ospin
120 IF(kw.GT.1) jspin = 0.d0
124 IF (kz(27).EQ.-2)
THEN
131 spin(i) = jspin/spnfac
135 IF (kz(27).EQ.3.AND.kz(28).EQ.4)
THEN
136 radius(i) = 1.0d-12/(3.0*rbar)
140 epoch(i) = -15.0/tstar
141 IF (i.EQ.1)
WRITE (6,5) m1, kw, radius(i)*su
142 5
FORMAT (/,12x,
'FIRST STAR: M K* R/SU ',f7.2,i4,1p,e9.1)
153 epoch(i) = time*tstar - age
157 IF (kw.GE.13) tev(i) = 0.0
160 IF (tev(i).LT.tmdot)
THEN
163 IF (i.EQ.1.AND.kz(41).GT.0)
THEN
164 WRITE (6,8) m1, tev(i), radius(i)*su
165 8
FORMAT (/,12x,
'BEGIN STAR #1 M TEV r* ',
175 IF(dtn*tscale.LT.100.0) dtn = 2.d0*dtn
182 tev(i1) = min(tev(i1),tev(i2))
183 tev(i1) = min(tev(i1),10.d0*stepx)
184 tmdot = min(tmdot,tev(i1))
203 ktype(1,j) = ktype(0,j)
259 if(i.le.1.or.i.eq.7)
then
260 if(j.ge.2.and.j.le.9.and.j.ne.7)
then
261 ktype(i,j) = ktype(i,j) + 100
264 ktype(i,j) = ktype(i,j) + 100
272 ktype(i,j) = ktype(j,i)
277 75
FORMAT (/,11x,
' KTYPE: ',15i4,14(/,19x,15i4))