9 implicit real*8 (a-h,o-z)
10 include
'common_all.cmn'
25 read(isng,rec=il)sngla
26 read(isng,rec=ilp)snglb
31 fiic(k,i,j)=0.50d0*(
fio(k,i,j)+fiib(k,i,j))
36 tmsl=dtmm(il)*qsqt*
const
39 if(ifc.eq.0)tmsl=0.0d0
40 call mdiffn(1,jjjj,il,dlyr)
44 fio(k,i,j)=fiib(k,i,j)*emdtm(il,i)+
45 1 ftmp(k,i,j)*(1.0d0-emdtm(il,i))+
46 2 snglb(k,i,j)-sngla(k,i,j)*emdtm(il,i)
50 write(iwrt,rec=ilp)
fio
52 read(iwrt,rec=ilm)fiib
53 read(isng,rec=ilm)sngla
54 read(isng,rec=ilp)snglb
58 fiic(k,i,j)=
fio(k,i,j)
64 tmsl=(dtmm(ilm)+dtmm(il))*qsqt*
const
65 trsl=(dtrr(ilm)+dtrr(il))*conr
66 dlyr=(dtot(ilm)+dtot(il))
67 if(ifc.eq.0)tmsl=0.0d0
68 call mdiffn(1,jjjj,il,dlyr)
72 fio(k,i,j)=fiib(k,i,j)*emdtm(ilm,i)*emdtm(il,i)+
73 1 ftmp(k,i,j)*(1.0d0-emdtm(ilm,i)*emdtm(il,i))+
74 2 snglb(k,i,j)-sngla(k,i,j)*emdtm(ilm,i)*emdtm(il,i)
78 write(iwrt,rec=ilp)
fio
85 write(iwrt,rec=nolyrp)
fio
95 write(iwrt,rec=nolyrp)
fio
99 call brdfg(
fio,brdfx,bmu,dmu,dmus2,eo,ddphi,amuo,
pi,sumc,
100 1 sumcpi,sumdwn,calb,kkx,jjjj,nmum1,jpart)
101 write(iwrt,rec=nolyrp)
fio
111 read(iwrt,rec=imp)fiib
113 read(isng,rec=imp)sngla
114 read(isng,rec=im)snglb
118 fiic(k,i,j)=0.50d0*(
fio(k,i,j)+fiib(k,i,j))
123 tmsl=dtmm(im)*qsqt*
const
126 if(ifc.eq.0)tmsl=0.0d0
127 call mdiffn(jjj,nmum1,im,dlyr)
131 fio(k,i,j)=fiib(k,i,j)*emdtm(im,i)+
132 1 ftmp(k,i,j)*(1.0d0-emdtm(im,i))+
133 2 snglb(k,i,j)-sngla(k,i,j)*emdtm(im,i)
137 write(iwrt,rec=im)
fio
139 read(iwrt,rec=impp)fiib
140 read(isng,rec=impp)sngla
141 read(isng,rec=im)snglb
145 fiic(k,i,j)=
fio(k,i,j)
151 tmsl=(dtmm(imp)+dtmm(im))*qsqt*
const
152 trsl=(dtrr(imp)+dtrr(im))*conr
153 dlyr=(dtot(imp)+dtot(im))
154 if(ifc.eq.0)tmsl=0.0d0
155 call mdiffn(jjj,nmum1,im,dlyr)
159 fio(k,i,j)=fiib(k,i,j)*emdtm(imp,i)*emdtm(im,i)+
160 1 ftmp(k,i,j)*(1.0d0-emdtm(imp,i)*emdtm(im,i))+
161 2 snglb(k,i,j)-sngla(k,i,j)*emdtm(imp,i)*emdtm(im,i)
165 write(iwrt,rec=im)
fio