Go to the documentation of this file. 1 subroutine brdfg(fio,brdfx,bmu,dmu,dmus2,eo,ddphi,amuo,pi,sumc,
2 1 sumcpi,sumdwn,calb,kkx,jjjj,nmum1,jpart)
9 implicit real*8 (a-h,o-z)
10 real*8
fio(4,50,46),bmu(51),dmu(51),dmus2(51),eo(4)
11 real*8 temp(4,50,46),z(4,4),tto(4),ttf(4),tth(4),ttd(4)
12 real*8 brdfx(25,25,46)
15 write(*,*)
'welcome to brdfg'
19 100
format(
'fio',i3,i3,1p4e12.3)
40 if(ippz.gt.jpart)ippz=mph2-ipp+2
42 if(ipx.gt.jpart)ipx=mph2-ipx+2
43 fdif=(
fio(1,itp,ippz)+
fio(2,itp,ippz))*
45 sumtp=sumtp+brdfx(itp,it,ipx)*(1/
pi)*fdif
46 if(itp.eq.kkx .and. ipp.eq.1)
then
47 fsun=(eo(1)+eo(2))*amuo
48 sumtp=sumtp+brdfx(itp,it,ipx)*(1/
pi)*fsun
53 fio(i,itt,ip)=0.5d0*sumtp
61 sum3=
fio(1,it,1)+
fio(2,it,1)+
fio(1,it,jpart)+
fio(2,it,jpart)
63 sum3=sum3+2.0d0*(
fio(1,it,ip)+
fio(2,it,ip))
65 sumc=sumc+sum3*dabs(dmus2(it))*ddphi
68 sumd=sumdwn+(eo(1)+eo(2))*amuo
69 write(*,*)
'sumc,sumcpi,sumdwn,sumd',sumc,sumcpi,sumdwn,sumd
71 write(*,*)
'surface albedo=',calb
subroutine brdfg(fio, brdfx, bmu, dmu, dmus2, eo, ddphi, amuo, pi, sumc, sumcpi, sumdwn, calb, kkx, nx, nmum1, jpart)