11 + ncol , nlm , mbs , mbir , ib
12 +, tauclr , es , bf , fu , fd
48 integer (kind=int_kind),
intent(in)::
55 real (kind=dbl_kind),
intent(in),
dimension(ncol,mbir)::
57 real (kind=dbl_kind),
intent(in),
dimension(ncol,nlm)::
59 real (kind=dbl_kind),
intent(in),
dimension(ncol,nlm+1)::
64 real (kind=dbl_kind),
intent(out),
dimension(ncol,nlm+1)::
70 integer(kind=int_kind)
75 real (kind=dbl_kind),
dimension(nlm)::
94 fu(i,nlm+1) = bf(i,nlm+1)*es(i,ibms)
98 exptau(l) =
exp(-2*tauclr(i,l))
99 if(tauclr(i,l) .lt. .8e-2)
then
100 sigu(l) = (bf(i,l)+bf(i,l+1))*tauclr(i,l)
103 prop = (1.-exptau(l))/tauclr(i,l)
105 bb = -2.*exptau(l)+prop
107 sigu(l) = (aa*bf(i,l)+bb*bf(i,l+1))*cc
108 sigd(l) = (bb*bf(i,l)+aa*bf(i,l+1))*cc
110 fd(i,l+1) = sigd(l) + exptau(l) * fd(i,l)
114 fu(i,l) = sigu(l) + exptau(l) * fu(i,l+1)