1 |
molod |
1.47 |
C $Header: /u/gcmpack/MITgcm/pkg/fizhi/do_fizhi.F,v 1.46 2004/10/21 16:26:53 molod Exp $ |
2 |
edhill |
1.2 |
C $Name: $ |
3 |
molod |
1.24 |
#include "FIZHI_OPTIONS.h" |
4 |
molod |
1.26 |
subroutine do_fizhi(myid, |
5 |
|
|
. idim1,idim2,jdim1,jdim2,Nrphin,Nsxin,Nsyin,im1,im2,jm1,jm2,bi,bj, |
6 |
|
|
. nchp,nchptot,nchpland, |
7 |
molod |
1.46 |
. uphy,vphy,thphy,sphy,pephy,lons,lats,Zsurf, |
8 |
molod |
1.22 |
. ctmt,xxmt,yymt,zetamt,xlmt,khmt,tke, |
9 |
molod |
1.26 |
. tgz,sst,sice,phis_var,landtype,fracland,emiss,albnirdr,albnirdf, |
10 |
molod |
1.22 |
. albvisdr,albvisdf,ityp,chfr,alai,agrn,igrd,chlat,chlon, |
11 |
|
|
. tcanopy,tdeep,ecanopy,swetshal,swetroot,swetdeep,snodep,capac, |
12 |
|
|
. o3,qstr,co2,cfc11,cfc12,cfc22,n2o,methane, |
13 |
molod |
1.42 |
. iras,nlwcld,cldtotlwin,cldraslwin,cldlsplwin,nlwlz,lwlzin, |
14 |
|
|
. nswcld,cldtotswin,cldrasswin,cldlspswin,nswlz,swlzin,imstturbsw, |
15 |
|
|
. imstturblw,qliqaveswin,qliqavelwin,fccaveswin,fccavelwin, |
16 |
|
|
. rainconin,rainlspin,snowfallin, |
17 |
molod |
1.22 |
. duphy,dvphy,dthphy,dsphy) |
18 |
molod |
1.1 |
c----------------------------------------------------------------------- |
19 |
molod |
1.9 |
c Interface routine to calculate physics increments - calls fizhi_driver. |
20 |
|
|
c Purpose of this routine is to set up arrays local to fizhi and 'save' |
21 |
|
|
c them from one iteration to the next, and act as interface between the |
22 |
|
|
c model common blocks (held in fizhi_wrapper) and fizhi_driver. |
23 |
|
|
c Copies of variables that are 'shadowed' are made here without shadows |
24 |
|
|
c for passing to fizhi_driver. |
25 |
|
|
c Note: routine is called from inside a bi-bj loop |
26 |
molod |
1.1 |
c |
27 |
|
|
c----------------------------------------------------------------------- |
28 |
molod |
1.5 |
implicit none |
29 |
molod |
1.22 |
#include "SIZE.h" |
30 |
|
|
#include "fizhi_SIZE.h" |
31 |
molod |
1.19 |
#include "chronos.h" |
32 |
molod |
1.1 |
|
33 |
molod |
1.10 |
C Argument list declarations |
34 |
|
|
integer myid,im1,im2,jm1,jm2,idim1,idim2,jdim1,jdim2 |
35 |
molod |
1.36 |
integer Nrphin,Nsxin,Nsyin,bi,bj,nchp |
36 |
|
|
integer nchptot(Nsxin,Nsyin),nchpland(Nsxin,Nsyin) |
37 |
molod |
1.22 |
_RL uphy(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
38 |
|
|
_RL vphy(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
39 |
|
|
_RL thphy(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
40 |
|
|
_RL sphy(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
41 |
|
|
_RL pephy(idim1:idim2,jdim1:jdim2,Nrphin+1,Nsxin,Nsyin) |
42 |
molod |
1.26 |
_RS lons(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
43 |
|
|
_RS lats(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
44 |
molod |
1.46 |
_RS Zsurf(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
45 |
molod |
1.22 |
_RL ctmt(nchp,Nsxin,Nsyin),xxmt(nchp,Nsxin,Nsyin) |
46 |
|
|
_RL yymt(nchp,Nsxin,Nsyin) |
47 |
|
|
_RL zetamt(nchp,Nsxin,Nsyin) |
48 |
|
|
_RL xlmt(nchp,Nrphin,Nsxin,Nsyin),khmt(nchp,Nrphin,Nsxin,Nsyin) |
49 |
|
|
_RL tke(nchp,Nrphin,Nsxin,Nsyin) |
50 |
|
|
_RL tgz(im2,jm2,Nsxin,Nsyin) |
51 |
molod |
1.26 |
_RL sst(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
52 |
molod |
1.22 |
_RL sice(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
53 |
molod |
1.26 |
_RL phis_var(im2,jm2,Nsxin,Nsyin) |
54 |
|
|
integer landtype(im2,jm2,Nsxin,Nsyin) |
55 |
molod |
1.22 |
_RL fracland(im2,jm2,Nsxin,Nsyin),emiss(im2,jm2,10,Nsxin,Nsyin) |
56 |
|
|
_RL albvisdr(im2,jm2,Nsxin,Nsyin),albvisdf(im2,jm2,Nsxin,Nsyin) |
57 |
|
|
_RL albnirdr(im2,jm2,Nsxin,Nsyin),albnirdf(im2,jm2,Nsxin,Nsyin) |
58 |
|
|
_RL chfr(nchp,Nsxin,Nsyin),alai(nchp,Nsxin,Nsyin) |
59 |
|
|
_RL agrn(nchp,Nsxin,Nsyin) |
60 |
|
|
integer ityp(nchp,Nsxin,Nsyin),igrd(nchp,Nsxin,Nsyin) |
61 |
|
|
_RL chlat(nchp,Nsxin,Nsyin),chlon(nchp,Nsxin,Nsyin) |
62 |
|
|
_RL tcanopy(nchp,Nsxin,Nsyin),tdeep(nchp,Nsxin,Nsyin) |
63 |
|
|
_RL ecanopy(nchp,Nsxin,Nsyin),swetshal(nchp,Nsxin,Nsyin) |
64 |
|
|
_RL swetroot(nchp,Nsxin,Nsyin),swetdeep(nchp,Nsxin,Nsyin) |
65 |
|
|
_RL snodep(nchp,Nsxin,Nsyin),capac(nchp,Nsxin,Nsyin) |
66 |
molod |
1.26 |
_RL o3(im2,jm2,Nrphin,Nsxin,Nsyin) |
67 |
|
|
_RL qstr(im2,jm2,Nrphin,Nsxin,Nsyin) |
68 |
molod |
1.22 |
_RL co2,cfc11,cfc12,cfc22,n2o(Nrphin),methane(Nrphin) |
69 |
molod |
1.40 |
|
70 |
molod |
1.44 |
integer iras(Nsxin,Nsyin) |
71 |
|
|
integer nlwcld(Nsxin,Nsyin),nlwlz(Nsxin,Nsyin) |
72 |
|
|
integer nswcld(Nsxin,Nsyin),nswlz(Nsxin,Nsyin) |
73 |
|
|
integer imstturbsw(Nsxin,Nsyin),imstturblw(Nsxin,Nsyin) |
74 |
molod |
1.42 |
_RL cldtotlwin(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
75 |
|
|
_RL cldraslwin(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
76 |
|
|
_RL cldlsplwin(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
77 |
|
|
_RL lwlzin(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
78 |
|
|
_RL cldtotswin(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
79 |
|
|
_RL cldrasswin(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
80 |
|
|
_RL cldlspswin(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
81 |
|
|
_RL swlzin(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
82 |
|
|
_RL qliqaveswin(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
83 |
|
|
_RL qliqavelwin(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
84 |
|
|
_RL fccaveswin(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
85 |
|
|
_RL fccavelwin(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
86 |
|
|
_RL rainlspin(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
87 |
|
|
_RL rainconin(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
88 |
|
|
_RL snowfallin(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
89 |
molod |
1.41 |
|
90 |
molod |
1.40 |
|
91 |
molod |
1.22 |
_RL duphy(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
92 |
|
|
_RL dvphy(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
93 |
|
|
_RL dthphy(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
94 |
|
|
_RL dsphy(idim1:idim2,jdim1:jdim2,Nrphin,Nsxin,Nsyin) |
95 |
|
|
|
96 |
|
|
c Local Variables |
97 |
molod |
1.10 |
integer ptracer,ntracer |
98 |
molod |
1.19 |
parameter (ptracer = 1) |
99 |
|
|
parameter (ntracer = 1) |
100 |
molod |
1.10 |
|
101 |
molod |
1.24 |
_RL xlats(sNx,sNy),xlons(sNx,sNy),sea_ice(sNx,sNy) |
102 |
molod |
1.47 |
_RL surfZ(sNx,sNy) |
103 |
molod |
1.24 |
_RL p(sNx,sNy,Nsx,Nsy) |
104 |
|
|
_RL u(sNx,sNy,Nrphys),v(sNx,sNy,Nrphys),t(sNx,sNy,Nrphys) |
105 |
|
|
_RL q(sNx,sNy,Nrphys,ntracer) |
106 |
|
|
_RL pl(sNx,sNy,Nrphys,Nsx,Nsy),pkl(sNx,sNy,Nrphys,Nsx,Nsy) |
107 |
|
|
_RL ple(sNx,sNy,Nrphys+1,Nsx,Nsy) |
108 |
|
|
_RL pkle(sNx,sNy,Nrphys+1,Nsx,Nsy) |
109 |
|
|
_RL dpres(sNx,sNy,Nrphys,Nsx,Nsy) |
110 |
|
|
_RL lwdt(sNx,sNy,Nrphys,Nsx,Nsy) |
111 |
|
|
_RL lwdtclr(sNx,sNy,Nrphys,Nsx,Nsy) |
112 |
|
|
_RL swdt(sNx,sNy,Nrphys,Nsx,Nsy) |
113 |
|
|
_RL swdtclr(sNx,sNy,Nrphys,Nsx,Nsy) |
114 |
|
|
_RL turbu(sNx,sNy,Nrphys,Nsx,Nsy) |
115 |
|
|
_RL turbv(sNx,sNy,Nrphys,Nsx,Nsy) |
116 |
|
|
_RL turbt(sNx,sNy,Nrphys,Nsx,Nsy) |
117 |
|
|
_RL turbq(sNx,sNy,Nrphys,ntracer,Nsx,Nsy) |
118 |
|
|
_RL moistu(sNx,sNy,Nrphys,Nsx,Nsy) |
119 |
|
|
_RL moistv(sNx,sNy,Nrphys,Nsx,Nsy) |
120 |
|
|
_RL moistt(sNx,sNy,Nrphys,Nsx,Nsy) |
121 |
|
|
_RL moistq(sNx,sNy,Nrphys,ntracer,Nsx,Nsy) |
122 |
|
|
_RL radswt(sNx,sNy,Nsx,Nsy),radswg(sNx,sNy,Nsx,Nsy) |
123 |
|
|
_RL swgclr(sNx,sNy,Nsx,Nsy) |
124 |
|
|
_RL fdirpar(sNx,sNy,Nsx,Nsy),fdifpar(sNx,sNy,Nsx,Nsy) |
125 |
|
|
_RL osr(sNx,sNy,Nsx,Nsy),osrclr(sNx,sNy,Nsx,Nsy) |
126 |
|
|
_RL tg0(sNx,sNy,Nsx,Nsy),radlwg(sNx,sNy,Nsx,Nsy) |
127 |
|
|
_RL lwgclr(sNx,sNy,Nsx,Nsy),st4(sNx,sNy,Nsx,Nsy) |
128 |
|
|
_RL dst4(sNx,sNy,Nsx,Nsy),dlwdtg(sNx,sNy,Nrphys,Nsx,Nsy) |
129 |
molod |
1.40 |
_RL qq(sNx,sNy,Nrphys,Nsx,Nsy) |
130 |
molod |
1.5 |
integer i,j,L |
131 |
molod |
1.24 |
_RL getcon, kappa, p0kappa, s0, ra |
132 |
|
|
_RL cosz(sNx,sNy) |
133 |
molod |
1.42 |
_RL cldtot_lw(sNx,sNy,Nrphys) |
134 |
|
|
_RL cldras_lw(sNx,sNy,Nrphys) |
135 |
|
|
_RL cldlsp_lw(sNx,sNy,Nrphys) |
136 |
|
|
_RL lwlz(sNx,sNy,Nrphys) |
137 |
|
|
_RL cldtot_sw(sNx,sNy,Nrphys) |
138 |
|
|
_RL cldras_sw(sNx,sNy,Nrphys) |
139 |
|
|
_RL cldlsp_sw(sNx,sNy,Nrphys) |
140 |
|
|
_RL swlz(sNx,sNy,Nrphys) |
141 |
|
|
_RL qliqavesw(sNx,sNy,Nrphys) |
142 |
|
|
_RL qliqavelw(sNx,sNy,Nrphys) |
143 |
|
|
_RL fccavesw(sNx,sNy,Nrphys) |
144 |
|
|
_RL fccavelw(sNx,sNy,Nrphys) |
145 |
|
|
_RL rainlsp(sNx,sNy) |
146 |
|
|
_RL raincon(sNx,sNy) |
147 |
|
|
_RL snowfall(sNx,sNy) |
148 |
molod |
1.11 |
|
149 |
molod |
1.29 |
_RL tempij(sNx,sNy) |
150 |
|
|
|
151 |
molod |
1.13 |
logical alarm |
152 |
|
|
external alarm |
153 |
|
|
|
154 |
molod |
1.31 |
common /saver/ lwdt,lwdtclr,swdt,swdtclr,turbu,turbv,turbt,turbq |
155 |
|
|
common /saver/ moistu,moistv,moistt,moistq |
156 |
|
|
common /saver/ radswg,swgclr,fdirpar,fdifpar,osr,osrclr,tg0,radlwg |
157 |
molod |
1.41 |
common /saver/ st4,dst4,dlwdtg |
158 |
molod |
1.31 |
common /saver/ qq |
159 |
|
|
common /saver/ pl,ple,dpres,pkle,pkl |
160 |
|
|
|
161 |
molod |
1.11 |
C*********************************************************************** |
162 |
|
|
C Unshadow input arrays (and make 'fizhi theta' from true theta) |
163 |
|
|
C*********************************************************************** |
164 |
|
|
|
165 |
molod |
1.25 |
if( (nhms.eq.nhms0) .and. (nymd.eq.nymd0) ) then |
166 |
molod |
1.30 |
_BEGIN_MASTER(myid) |
167 |
molod |
1.40 |
if(myid.eq.1) print *,' Initializing fizhi arrays ' |
168 |
molod |
1.30 |
_END_MASTER(myid) |
169 |
molod |
1.44 |
imstturblw(bi,bj) = 0 |
170 |
|
|
imstturbsw(bi,bj) = 0 |
171 |
|
|
iras(bi,bj) = 0 |
172 |
|
|
nlwcld(bi,bj) = 0 |
173 |
|
|
nlwlz(bi,bj) = 0 |
174 |
|
|
nswcld(bi,bj) = 0 |
175 |
|
|
nswlz(bi,bj) = 0 |
176 |
molod |
1.27 |
do L = 1,Nrphys |
177 |
|
|
do j = jm1,jm2 |
178 |
|
|
do i = im1,im2 |
179 |
molod |
1.42 |
swlz(i,j,L) = 0. |
180 |
|
|
lwlz(i,j,L) = 0. |
181 |
|
|
qliqavesw(i,j,L) = 0. |
182 |
|
|
qliqavelw(i,j,L) = 0. |
183 |
|
|
fccavesw(i,j,L) = 0. |
184 |
|
|
fccavelw(i,j,L) = 0. |
185 |
|
|
cldtot_sw(i,j,L) = 0. |
186 |
|
|
cldras_sw(i,j,L) = 0. |
187 |
|
|
cldlsp_sw(i,j,L) = 0. |
188 |
|
|
cldtot_lw(i,j,L) = 0. |
189 |
|
|
cldras_lw(i,j,L) = 0. |
190 |
|
|
cldlsp_lw(i,j,L) = 0. |
191 |
molod |
1.28 |
lwdt(i,j,L,bi,bj) = 0. |
192 |
|
|
swdt(i,j,L,bi,bj) = 0. |
193 |
|
|
turbt(i,j,L,bi,bj) = 0. |
194 |
|
|
moistt(i,j,L,bi,bj) = 0. |
195 |
|
|
turbq(i,j,L,1,bi,bj) = 0. |
196 |
|
|
moistq(i,j,L,1,bi,bj) = 0. |
197 |
|
|
turbu(i,j,L,bi,bj) = 0. |
198 |
|
|
moistu(i,j,L,bi,bj) = 0. |
199 |
|
|
turbv(i,j,L,bi,bj) = 0. |
200 |
|
|
moistv(i,j,L,bi,bj) = 0. |
201 |
molod |
1.27 |
enddo |
202 |
molod |
1.28 |
enddo |
203 |
|
|
enddo |
204 |
|
|
do j = jm1,jm2 |
205 |
|
|
do i = im1,im2 |
206 |
molod |
1.42 |
rainlsp(i,j) = 0. |
207 |
|
|
raincon(i,j) = 0. |
208 |
|
|
snowfall(i,j) = 0. |
209 |
molod |
1.27 |
enddo |
210 |
|
|
enddo |
211 |
molod |
1.40 |
|
212 |
molod |
1.25 |
endif |
213 |
|
|
|
214 |
molod |
1.11 |
kappa = getcon('KAPPA') |
215 |
|
|
p0kappa = 1000.0 ** kappa |
216 |
molod |
1.12 |
S0 = getcon('S0') |
217 |
molod |
1.11 |
|
218 |
molod |
1.26 |
do j = jm1,jm2 |
219 |
|
|
do i = im1,im2 |
220 |
|
|
xlats(i,j) = lats(i,j,bi,bj) |
221 |
|
|
xlons(i,j) = lons(i,j,bi,bj) |
222 |
molod |
1.47 |
surfZ(i,j) = Zsurf(i,j,bi,bj) |
223 |
molod |
1.42 |
raincon(i,j) = rainconin(i,j,bi,bj) |
224 |
|
|
rainlsp(i,j) = rainlspin(i,j,bi,bj) |
225 |
|
|
snowfall(i,j) = snowfallin(i,j,bi,bj) |
226 |
molod |
1.26 |
enddo |
227 |
|
|
enddo |
228 |
|
|
|
229 |
molod |
1.43 |
call astro ( nymd,nhms, xlats,xlons, im2*jm2, cosz,ra ) |
230 |
molod |
1.13 |
do j=jm1,jm2 |
231 |
|
|
do i=im1,im2 |
232 |
molod |
1.19 |
radswt(i,j,bi,bj) = S0*(1.0/ra**2)*cosz(i,j) |
233 |
molod |
1.11 |
enddo |
234 |
|
|
enddo |
235 |
molod |
1.13 |
|
236 |
|
|
if( alarm('moist') .or. alarm('turb') .or. |
237 |
|
|
. alarm('radsw') .or. alarm('radlw') ) then |
238 |
|
|
|
239 |
molod |
1.18 |
C compute pressures - all pressure are converted here to hPa |
240 |
molod |
1.11 |
do j = jm1,jm2 |
241 |
|
|
do i = im1,im2 |
242 |
molod |
1.18 |
ple(i,j,Nrphys+1,bi,bj) = pephy(i,j,Nrphys+1,bi,bj)/100. |
243 |
|
|
pkle(i,j,Nrphys+1,bi,bj)=(pephy(i,j,Nrphys+1,bi,bj)/100.) **kappa |
244 |
|
|
p(i,j,bi,bj) = pephy(i,j,Nrphys+1,bi,bj)/100. |
245 |
molod |
1.11 |
sea_ice(i,j) = sice(i,j,bi,bj) |
246 |
|
|
enddo |
247 |
|
|
enddo |
248 |
molod |
1.13 |
do L = 1,Nrphys |
249 |
|
|
do j = jm1,jm2 |
250 |
|
|
do i = im1,im2 |
251 |
|
|
u(i,j,L) = uphy(i,j,L,bi,bj) |
252 |
|
|
v(i,j,L) = vphy(i,j,L,bi,bj) |
253 |
|
|
t(i,j,L) = thphy(i,j,L,bi,bj)/p0kappa |
254 |
|
|
q(i,j,L,1) = sphy(i,j,L,bi,bj) |
255 |
molod |
1.19 |
pl(i,j,L,bi,bj) = (pephy(i,j,L,bi,bj)+pephy(i,j,L+1,bi,bj))/200. |
256 |
|
|
dpres(i,j,L,bi,bj)=(pephy(i,j,L+1,bi,bj)-pephy(i,j,L,bi,bj))/100. |
257 |
molod |
1.18 |
ple(i,j,L,bi,bj) = pephy(i,j,L,bi,bj)/100. |
258 |
molod |
1.30 |
if (ple(i,j,L,bi,bj).gt.0.) then |
259 |
|
|
pkle(i,j,L,bi,bj) = ple(i,j,L,bi,bj) **kappa |
260 |
|
|
else |
261 |
|
|
pkle(i,j,L,bi,bj) = 0. |
262 |
|
|
endif |
263 |
molod |
1.42 |
cldtot_lw(i,j,L) = cldtotlwin(i,j,L,bi,bj) |
264 |
|
|
cldlsp_lw(i,j,L) = cldlsplwin(i,j,L,bi,bj) |
265 |
|
|
cldras_lw(i,j,L) = cldraslwin(i,j,L,bi,bj) |
266 |
|
|
lwlz(i,j,L) = lwlzin(i,j,L,bi,bj) |
267 |
|
|
qliqavelw(i,j,L) = qliqavelwin(i,j,L,bi,bj) |
268 |
|
|
fccavelw(i,j,L) = fccavelwin(i,j,L,bi,bj) |
269 |
|
|
cldtot_sw(i,j,L) = cldtotswin(i,j,L,bi,bj) |
270 |
|
|
cldlsp_sw(i,j,L) = cldlspswin(i,j,L,bi,bj) |
271 |
|
|
cldras_sw(i,j,L) = cldrasswin(i,j,L,bi,bj) |
272 |
|
|
swlz(i,j,L) = swlzin(i,j,L,bi,bj) |
273 |
|
|
qliqavesw(i,j,L) = qliqaveswin(i,j,L,bi,bj) |
274 |
|
|
fccavesw(i,j,L) = fccaveswin(i,j,L,bi,bj) |
275 |
molod |
1.13 |
enddo |
276 |
molod |
1.12 |
enddo |
277 |
|
|
enddo |
278 |
|
|
|
279 |
molod |
1.27 |
call pkappa (im2,jm2,Nrphys,ple(1,1,1,bi,bj),pkle(1,1,1,bi,bj), |
280 |
molod |
1.16 |
. pkl(1,1,1,bi,bj)) |
281 |
molod |
1.1 |
|
282 |
molod |
1.17 |
call fizhi_driver(myid,im2,jm2,Nrphys,bi,bj,ptracer,ntracer,xlats, |
283 |
|
|
. xlons,p(1,1,bi,bj),u,v,t,q,pl(1,1,1,bi,bj),ple(1,1,1,bi,bj), |
284 |
molod |
1.47 |
. dpres(1,1,1,bi,bj),pkle(1,1,1,bi,bj),pkl(1,1,1,bi,bj),surfZ, |
285 |
molod |
1.19 |
. fracland(1,1,bi,bj),landtype(1,1,bi,bj),radswt(1,1,bi,bj), |
286 |
|
|
. phis_var(1,1,bi,bj),tgz(1,1,bi,bj),sea_ice,nchp,chlat(1,bi,bj), |
287 |
molod |
1.36 |
. chlon(1,bi,bj),igrd(1,bi,bj),nchptot(bi,bj),nchpland(bi,bj), |
288 |
|
|
. chfr(1,bi,bj),ityp(1,bi,bj),tcanopy(1,bi,bj),tdeep(1,bi,bj), |
289 |
|
|
. ecanopy(1,bi,bj),swetshal(1,bi,bj),swetroot(1,bi,bj), |
290 |
|
|
. swetdeep(1,bi,bj),capac(1,bi,bj),snodep(1,bi,bj), |
291 |
molod |
1.12 |
. ctmt(1,bi,bj),xxmt(1,bi,bj),yymt(1,bi,bj),zetamt(1,bi,bj), |
292 |
|
|
. xlmt(1,1,bi,bj),khmt(1,1,bi,bj),tke(1,1,bi,bj), |
293 |
molod |
1.19 |
. albvisdr(1,1,bi,bj),albvisdf(1,1,bi,bj),albnirdr(1,1,bi,bj), |
294 |
|
|
. albnirdf(1,1,bi,bj),emiss(1,1,1,bi,bj),alai(1,bi,bj), |
295 |
|
|
. agrn(1,bi,bj), |
296 |
molod |
1.26 |
. qstr(1,1,1,bi,bj),o3(1,1,1,bi,bj), |
297 |
|
|
. co2,cfc11,cfc12,cfc22,methane,n2o, |
298 |
molod |
1.14 |
. lwdt(1,1,1,bi,bj),lwdtclr(1,1,1,bi,bj),swdt(1,1,1,bi,bj), |
299 |
|
|
. swdtclr(1,1,1,bi,bj),turbu(1,1,1,bi,bj),turbv(1,1,1,bi,bj), |
300 |
molod |
1.19 |
. turbt(1,1,1,bi,bj),turbq(1,1,1,1,bi,bj),moistu(1,1,1,bi,bj), |
301 |
|
|
. moistv(1,1,1,bi,bj),moistt(1,1,1,bi,bj),moistq(1,1,1,1,bi,bj), |
302 |
molod |
1.14 |
. radswg(1,1,bi,bj),swgclr(1,1,bi,bj),fdirpar(1,1,bi,bj), |
303 |
|
|
. fdifpar(1,1,bi,bj),osr(1,1,bi,bj),osrclr(1,1,bi,bj), |
304 |
molod |
1.19 |
. tg0(1,1,bi,bj),radlwg(1,1,bi,bj),lwgclr(1,1,bi,bj), |
305 |
molod |
1.14 |
. st4(1,1,bi,bj),dst4(1,1,bi,bj),dlwdtg(1,1,1,bi,bj), |
306 |
molod |
1.44 |
. rainlsp,raincon,snowfall,iras(bi,bj), |
307 |
|
|
. nlwcld(bi,bj),cldtot_lw,cldras_lw,cldlsp_lw,nlwlz(bi,bj),lwlz, |
308 |
|
|
. nswcld(bi,bj),cldtot_sw,cldras_sw,cldlsp_sw,nswlz(bi,bj),swlz, |
309 |
|
|
. imstturbsw(bi,bj),imstturblw(bi,bj),qliqavesw,qliqavelw, |
310 |
|
|
. fccavesw,fccavelw,qq(1,1,1,bi,bj)) |
311 |
molod |
1.12 |
|
312 |
|
|
do L = 1,Nrphys |
313 |
|
|
do j = jm1,jm2 |
314 |
|
|
do i = im1,im2 |
315 |
molod |
1.14 |
duphy(i,j,L,bi,bj) = moistu(i,j,L,bi,bj) + turbu(i,j,L,bi,bj) |
316 |
|
|
dvphy(i,j,L,bi,bj) = moistv(i,j,L,bi,bj) + turbv(i,j,L,bi,bj) |
317 |
|
|
dthphy(i,j,L,bi,bj) = ((moistt(i,j,L,bi,bj)+turbt(i,j,L,bi,bj)+ |
318 |
|
|
. lwdt(i,j,L,bi,bj) + |
319 |
|
|
. dlwdtg(i,j,L,bi,bj) * (tgz(i,j,bi,bj)-tg0(i,j,bi,bj)) + |
320 |
molod |
1.16 |
. swdt(i,j,L,bi,bj)*radswt(i,j,bi,bj) )*p0kappa ) / p(i,j,bi,bj) |
321 |
molod |
1.14 |
dsphy(i,j,L,bi,bj) = (moistq(i,j,L,1,bi,bj)+turbq(i,j,L,1,bi,bj)) |
322 |
molod |
1.16 |
. /p(i,j,bi,bj) |
323 |
molod |
1.12 |
enddo |
324 |
molod |
1.44 |
enddo |
325 |
|
|
enddo |
326 |
|
|
|
327 |
|
|
do L = 1,Nrphys |
328 |
|
|
do j = jm1,jm2 |
329 |
|
|
do i = im1,im2 |
330 |
|
|
cldtotlwin(i,j,L,bi,bj) = cldtot_lw(i,j,L) |
331 |
|
|
cldlsplwin(i,j,L,bi,bj) = cldlsp_lw(i,j,L) |
332 |
|
|
cldraslwin(i,j,L,bi,bj) = cldras_lw(i,j,L) |
333 |
|
|
lwlzin(i,j,L,bi,bj) = lwlz(i,j,L) |
334 |
|
|
qliqavelwin(i,j,L,bi,bj) = qliqavelw(i,j,L) |
335 |
|
|
fccavelwin(i,j,L,bi,bj) = fccavelw(i,j,L) |
336 |
|
|
cldtotswin(i,j,L,bi,bj) = cldtot_sw(i,j,L) |
337 |
|
|
cldlspswin(i,j,L,bi,bj) = cldlsp_sw(i,j,L) |
338 |
|
|
cldrasswin(i,j,L,bi,bj) = cldras_sw(i,j,L) |
339 |
|
|
swlzin(i,j,L,bi,bj) = swlz(i,j,L) |
340 |
|
|
qliqaveswin(i,j,L,bi,bj) = qliqavesw(i,j,L) |
341 |
|
|
fccaveswin(i,j,L,bi,bj) = fccavesw(i,j,L) |
342 |
|
|
enddo |
343 |
|
|
enddo |
344 |
|
|
enddo |
345 |
|
|
|
346 |
|
|
do j = jm1,jm2 |
347 |
|
|
do i = im1,im2 |
348 |
|
|
rainconin(i,j,bi,bj) = raincon(i,j) |
349 |
|
|
rainlspin(i,j,bi,bj) = rainlsp(i,j) |
350 |
|
|
snowfallin(i,j,bi,bj) = snowfall(i,j) |
351 |
molod |
1.12 |
enddo |
352 |
|
|
enddo |
353 |
molod |
1.31 |
|
354 |
|
|
endif |
355 |
molod |
1.5 |
|
356 |
molod |
1.19 |
call fizhi_step_diag(myid,p,uphy,vphy,thphy,sphy,qq,pkl,dpres, |
357 |
molod |
1.15 |
. radswt,radswg,swgclr,osr,osrclr,st4,dst4,tgz,tg0,radlwg,lwgclr, |
358 |
|
|
. turbu,turbv,turbt,turbq,moistu,moistv,moistt,moistq, |
359 |
molod |
1.20 |
. lwdt,swdt,lwdtclr,swdtclr,dlwdtg, |
360 |
|
|
. im1,im2,jm1,jm2,Nrphys,Nsx,Nsy,bi,bj,ntracer) |
361 |
molod |
1.15 |
|
362 |
molod |
1.5 |
return |
363 |
|
|
end |