9 implicit real*8 (a-h,o-z)
10 include
'afrt_rt2.cmn'
28 fiic(k,i,j)=0.50d0*(
fio(k,i,j)+fiib(k,i,j))
33 tmsl=dtmm(il)*qsqt*
const
36 if(ifc.eq.0)tmsl=0.0d0
37 call mdiffn(1,nx-1,il,dlyr)
41 fio(k,i,j)=fiib(k,i,j)*emdtm(il,i)+
42 1 ftmp(k,i,j)*(1.0d0-emdtm(il,i))
46 write(iwrt,rec=ilp)
fio
48 read(iwrt,rec=ilm)fiib
52 fiic(k,i,j)=
fio(k,i,j)
58 tmsl=(dtmm(ilm)+dtmm(il))*qsqt*
const
59 trsl=(dtrr(ilm)+dtrr(il))*conr
60 dlyr=(dtot(ilm)+dtot(il))
61 if(ifc.eq.0)tmsl=0.0d0
62 call mdiffn(1,nx-1,il,dlyr)
66 fio(k,i,j)=fiib(k,i,j)*emdtm(ilm,i)*emdtm(il,i)+
67 1 ftmp(k,i,j)*(1.0d0-emdtm(ilm,i)*emdtm(il,i))
71 write(iwrt,rec=ilp)
fio
75 if(iref.eq.1 .and. itrans.eq.1)
then
77 write(iwrt,rec=nolyr+1)
fio
86 read(iwrt,rec=imp)fiib
91 fiic(k,i,j)=0.50d0*(
fio(k,i,j)+fiib(k,i,j))
96 tmsl=dtmm(im)*qsqt*
const
99 if(ifc.eq.0)tmsl=0.0d0
100 call mdiffn(nx,nmum1,im,dlyr)
104 fio(k,i,j)=fiib(k,i,j)*emdtm(im,i)+
105 1 ftmp(k,i,j)*(1.0d0-emdtm(im,i))
109 write(iwrt,rec=im)
fio
111 read(iwrt,rec=impp)fiib
115 fiic(k,i,j)=
fio(k,i,j)
121 tmsl=(dtmm(imp)+dtmm(im))*qsqt*
const
122 trsl=(dtrr(imp)+dtrr(im))*conr
123 dlyr=(dtot(imp)+dtot(im))
124 if(ifc.eq.0)tmsl=0.0d0
125 call mdiffn(nx,nmum1,im,dlyr)
129 fio(k,i,j)=fiib(k,i,j)*emdtm(imp,i)*emdtm(im,i)+
130 1 ftmp(k,i,j)*(1.0d0-emdtm(imp,i)*emdtm(im,i))
134 write(iwrt,rec=im)
fio