8 implicit real*8 (a-h,o-z)
9 include
'common_all.cmn'
20 call geom(fluxd(m1,nolyrp),fluxd(m2,nolyrp),fluxd(m3,nolyrp),
22 call geom(fluxu(m1,1),fluxu(m2,1),fluxu(m3,1),
26 totflxgs=temp1(nolyrp)+temp2(1)+amuo*factr
29 if(kzz.eq.1)gz=temp1(nolyrp)
30 if(kzz.eq.2 .and. itrans.eq.0)sb=temp1(nolyrp)
39 if(kzz.eq.1 .and. iglint.eq.1)
then
43 abcz=dexp(-tautot/dabs(bmu(i)))
44 ftmp(k,i,j)=ftmp(k,i,j)-fglint(k,i,j)*abcz
45 ftmpa(k,i,j)=ftmpa(k,i,j)-fglint(k,i,j)*abcz
46 ftmpb(k,i,j)=ftmpb(k,i,j)-fglint(k,i,j)*abcz
56 if(ftmp(k,i,j).le.1.0d-15)
then
57 fioup(k,m,j)=ftmp(k,i,j)
59 call geom(ftmpb(k,i,j),ftmpa(k,i,j),ftmp(k,i,j),
60 1 ratiog,fioup(k,m,j))
70 if(iref .eq.1 .and. itrans.eq.1)
then
76 if(ftmp(k,i,j).le.1.0d-15)
then
77 fioup_btm(k,m,j)=ftmp(k,i,j)
79 call geom(ftmpb(k,i,j),ftmpa(k,i,j),ftmp(k,i,j),
80 1 ratiog,fioup_btm(k,m,j))
91 if(ftmp(k,i,j).le.1.0d-15)
then
92 fiodn(k,i,j)=ftmp(k,i,j)
94 call geom(ftmpb(k,i,j),ftmpa(k,i,j),ftmp(k,i,j),
95 1 ratiog,fiodn(k,i,j))
108 fdown(ksza)=temp1(nolyrp)*
pi
109 fup(ksza)=temp2(1)*
pi
112 xzeroz(ksza,i,j)=fioup(1,i,j)+fioup(2,i,j)
113 xzerod(ksza,i,j)=fiodn(1,i,j)+fiodn(2,i,j)
116 if(iref.eq.1 .or. iref.eq.2 .or.iref.eq.3)
then
121 if(kzz.eq.2 .and. itrans.eq.1)
then
125 xzero_up(ksza,i,j)=fioup(1,i,j)+fioup(2,i,j)
126 xzero_btm(ksza,i,j)=fioup_btm(1,i,j)+fioup_btm(2,i,j)
129 else if(kzz.eq.2 .and. itrans.eq.0)
then
131 ef=amuo*efactb(nolyrp)
135 tdn(i,j)=(fiodn(1,i,j)+fiodn(2,i,j))
136 tup(i,j)=(fioup(1,i,j)+fioup(2,i,j))
143 tupz(ksza,i,j)=tup(i,j)*ftot
144 tdwnz(ksza,i,j)=tdn(i,j)*ftot
150 ef=amuo*efactb(nolyrp)
155 tupz(ksza,i,j)=tup(i,j)*ftot
156 tdwnz(ksza,i,j)=tdn(i,j)*ftot