47 |
Real*8 globalarr(Nx,Ny,8) |
Real*8 globalarr(Nx,Ny,8) |
48 |
_RL tempgrid(sNx,sNy) |
_RL tempgrid(sNx,sNy) |
49 |
_RL temptile(nchp) |
_RL temptile(nchp) |
50 |
|
_RL fracland(sNx,sNy,Nsx,Nsy) |
51 |
|
|
52 |
ihour = nhms/10000 |
ihour = nhms/10000 |
53 |
WRITE(fn,'(a,I8,a,I2.2,a)')'vegtiles_cs32.d',nymd,'z',ihour,'.bin' |
WRITE(fn,'(a,I8,a,I2.2,a)')'vegtiles_cs32.d',nymd,'z',ihour,'.bin' |
80 |
bjslot = myYGlobalLo-1+(bj-1)*sNy |
bjslot = myYGlobalLo-1+(bj-1)*sNy |
81 |
#endif /* ALLOW_EXCH2 */ |
#endif /* ALLOW_EXCH2 */ |
82 |
|
|
83 |
|
call get_landfrac(sNx,sNy,Nsx,Nsy,bi,bj,maxtyp, |
84 |
|
. surftype,tilefrac,fracland) |
85 |
|
|
86 |
do j = 1,sNy |
do j = 1,sNy |
87 |
do i = 1,sNx |
do i = 1,sNx |
88 |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,1) |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,1) |
96 |
do j = 1,sNy |
do j = 1,sNy |
97 |
do i = 1,sNx |
do i = 1,sNx |
98 |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,2) |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,2) |
99 |
|
if (tempgrid(i,j).gt.1.e14 .and. fracland(i,j,bi,bj).gt.0.0001) |
100 |
|
. tempgrid(i,j) = globalarr(i+bislot,j+bjslot,1) - 0.5 |
101 |
enddo |
enddo |
102 |
enddo |
enddo |
103 |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
108 |
do j = 1,sNy |
do j = 1,sNy |
109 |
do i = 1,sNx |
do i = 1,sNx |
110 |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,3) |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,3) |
111 |
|
if (tempgrid(i,j).gt.1.e14 .and. fracland(i,j,bi,bj).gt.0.0001) |
112 |
|
. tempgrid(i,j) = 0.01 |
113 |
enddo |
enddo |
114 |
enddo |
enddo |
115 |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
120 |
do j = 1,sNy |
do j = 1,sNy |
121 |
do i = 1,sNx |
do i = 1,sNx |
122 |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,4) |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,4) |
123 |
|
if (tempgrid(i,j).gt.1.e14 .and. fracland(i,j,bi,bj).gt.0.0001) |
124 |
|
. tempgrid(i,j) = 0.7 |
125 |
enddo |
enddo |
126 |
enddo |
enddo |
127 |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
132 |
do j = 1,sNy |
do j = 1,sNy |
133 |
do i = 1,sNx |
do i = 1,sNx |
134 |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,5) |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,5) |
135 |
|
if (tempgrid(i,j).gt.1.e14 .and. fracland(i,j,bi,bj).gt.0.0001) |
136 |
|
. tempgrid(i,j) = 0.5 |
137 |
enddo |
enddo |
138 |
enddo |
enddo |
139 |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
144 |
do j = 1,sNy |
do j = 1,sNy |
145 |
do i = 1,sNx |
do i = 1,sNx |
146 |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,6) |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,6) |
147 |
|
if (tempgrid(i,j).gt.1.e14 .and. fracland(i,j,bi,bj).gt.0.0001) |
148 |
|
. tempgrid(i,j) = 0.3 |
149 |
enddo |
enddo |
150 |
enddo |
enddo |
151 |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
156 |
do j = 1,sNy |
do j = 1,sNy |
157 |
do i = 1,sNx |
do i = 1,sNx |
158 |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,7) |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,7) |
159 |
|
if (tempgrid(i,j).gt.1.e14 .and. fracland(i,j,bi,bj).gt.0.0001) |
160 |
|
. tempgrid(i,j) = 0. |
161 |
enddo |
enddo |
162 |
enddo |
enddo |
163 |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
168 |
do j = 1,sNy |
do j = 1,sNy |
169 |
do i = 1,sNx |
do i = 1,sNx |
170 |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,8) |
tempgrid(i,j) = globalarr(i+bislot,j+bjslot,8) |
171 |
|
if (tempgrid(i,j).gt.1.e14 .and. fracland(i,j,bi,bj).gt.0.0001) |
172 |
|
. tempgrid(i,j) = 0. |
173 |
enddo |
enddo |
174 |
enddo |
enddo |
175 |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |
call grd2msc(tempgrid,sNx,sNy,igrd,temptile,nchp,nchptot(bi,bj)) |