6subroutine mcmillan(w,a2f,lambda,wlog,wrms,tc)
11real(8),
intent(in) :: w(nwplot),a2f(nwplot)
12real(8),
intent(out) :: lambda,wlog,wrms,tc
17real(8),
allocatable :: f(:)
19real(8),
external :: splint
23 if (w(iw) > 1.d-8)
then
33 if (w(iw) > 1.d-8)
then
34 f(iw)=a2f(iw)*log(w(iw))/w(iw)
44 if (w(iw) > 1.d-8)
then
54t1=(-1.04d0*(1.d0+lambda))/(lambda-
mustar-0.62d0*lambda*
mustar)
55tc=(wlog/(1.2d0*
kboltz))*exp(t1)
56l1=2.46d0*(1.d0+3.8d0*
mustar)
57l2=1.82d0*(1.d0+6.3d0*
mustar)*(wrms/wlog)
58f1=(1.d0+(lambda/l1)**(3.d0/2.d0))**(1.d0/3.d0)
59f2=1.d0+(wrms/wlog-1.d0)*(lambda**2)/(lambda**2+l2**2)
real(8), parameter kboltz