1 |
C $Header: /u/gcmpack/MITgcm/pkg/fizhi/do_fizhi.F,v 1.52 2006/03/09 00:00:36 molod Exp $ |
2 |
C $Name: $ |
3 |
#include "FIZHI_OPTIONS.h" |
4 |
subroutine do_fizhi(myIter,myid, |
5 |
. idim1,idim2,jdim1,jdim2,Nrphin,Nsxin,Nsyin,im1,im2,jm1,jm2,bi,bj, |
6 |
. nchp,nchptot,nchpland, |
7 |
. uphy,vphy,thphy,sphy,pephy,lons,lats,Zsurf, |
8 |
. ctmt,xxmt,yymt,zetamt,xlmt,khmt,tke, |
9 |
. tgz,sst,sice,phis_var,landtype,fracland,emiss,albnirdr,albnirdf, |
10 |
. 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 |
. 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 |
. duphy,dvphy,dthphy,dsphy) |
18 |
c----------------------------------------------------------------------- |
19 |
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 |
c |
27 |
c----------------------------------------------------------------------- |
28 |
implicit none |
29 |
#include "SIZE.h" |
30 |
#include "fizhi_SIZE.h" |
31 |
#include "chronos.h" |
32 |
|
33 |
C Argument list declarations |
34 |
integer myIter,myid,im1,im2,jm1,jm2,idim1,idim2,jdim1,jdim2 |
35 |
integer Nrphin,Nsxin,Nsyin,bi,bj,nchp |
36 |
integer nchptot(Nsxin,Nsyin),nchpland(Nsxin,Nsyin) |
37 |
_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 |
_RS lons(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
43 |
_RS lats(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
44 |
_RS Zsurf(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
45 |
_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 |
_RL sst(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
52 |
_RL sice(idim1:idim2,jdim1:jdim2,Nsxin,Nsyin) |
53 |
_RL phis_var(im2,jm2,Nsxin,Nsyin) |
54 |
integer landtype(im2,jm2,Nsxin,Nsyin) |
55 |
_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 |
_RL o3(im2,jm2,Nrphin,Nsxin,Nsyin) |
67 |
_RL qstr(im2,jm2,Nrphin,Nsxin,Nsyin) |
68 |
_RL co2,cfc11,cfc12,cfc22,n2o(Nrphin),methane(Nrphin) |
69 |
|
70 |
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 |
_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 |
|
90 |
|
91 |
_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 |
integer ptracer,ntracer |
98 |
parameter (ptracer = 1) |
99 |
parameter (ntracer = 1) |
100 |
|
101 |
_RL xlats(sNx,sNy),xlons(sNx,sNy),sea_ice(sNx,sNy) |
102 |
_RL surfZ(sNx,sNy) |
103 |
_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 |
_RL qq(sNx,sNy,Nrphys,Nsx,Nsy) |
130 |
integer i,j,L |
131 |
_RL getcon, kappa, p0kappa, s0, ra |
132 |
_RL cosz(sNx,sNy) |
133 |
_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 |
|
149 |
_RL tempij(sNx,sNy) |
150 |
|
151 |
logical alarm |
152 |
external alarm |
153 |
|
154 |
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 |
common /saver/ st4,dst4,dlwdtg |
158 |
common /saver/ qq |
159 |
common /saver/ pl,ple,dpres,pkle,pkl |
160 |
|
161 |
C*********************************************************************** |
162 |
C Unshadow input arrays (and make 'fizhi theta' from true theta) |
163 |
C*********************************************************************** |
164 |
kappa = getcon('KAPPA') |
165 |
p0kappa = 1000.0 ** kappa |
166 |
S0 = getcon('S0') |
167 |
|
168 |
do j = jm1,jm2 |
169 |
do i = im1,im2 |
170 |
xlats(i,j) = lats(i,j,bi,bj) |
171 |
xlons(i,j) = lons(i,j,bi,bj) |
172 |
surfZ(i,j) = Zsurf(i,j,bi,bj) |
173 |
enddo |
174 |
enddo |
175 |
|
176 |
#ifdef FIZHI_USE_FIXED_DAY |
177 |
call astro ( 20040321,nhms, xlats,xlons, im2*jm2, cosz,ra ) |
178 |
#else |
179 |
call astro ( nymd,nhms, xlats,xlons, im2*jm2, cosz,ra ) |
180 |
#endif |
181 |
do j=jm1,jm2 |
182 |
do i=im1,im2 |
183 |
radswt(i,j,bi,bj) = S0*(1.0/ra**2)*cosz(i,j) |
184 |
enddo |
185 |
enddo |
186 |
|
187 |
if( alarm('moist') .or. alarm('turb') .or. |
188 |
. alarm('radsw') .or. alarm('radlw') ) then |
189 |
|
190 |
C compute pressures - all pressure are converted here to hPa |
191 |
do j = jm1,jm2 |
192 |
do i = im1,im2 |
193 |
ple(i,j,Nrphys+1,bi,bj) = pephy(i,j,Nrphys+1,bi,bj)/100. |
194 |
pkle(i,j,Nrphys+1,bi,bj)=(pephy(i,j,Nrphys+1,bi,bj)/100.) **kappa |
195 |
p(i,j,bi,bj) = pephy(i,j,Nrphys+1,bi,bj)/100. |
196 |
sea_ice(i,j) = sice(i,j,bi,bj) |
197 |
raincon(i,j) = rainconin(i,j,bi,bj) |
198 |
rainlsp(i,j) = rainlspin(i,j,bi,bj) |
199 |
snowfall(i,j) = snowfallin(i,j,bi,bj) |
200 |
enddo |
201 |
enddo |
202 |
do L = 1,Nrphys |
203 |
do j = jm1,jm2 |
204 |
do i = im1,im2 |
205 |
u(i,j,L) = uphy(i,j,L,bi,bj) |
206 |
v(i,j,L) = vphy(i,j,L,bi,bj) |
207 |
t(i,j,L) = thphy(i,j,L,bi,bj)/p0kappa |
208 |
q(i,j,L,1) = sphy(i,j,L,bi,bj) |
209 |
pl(i,j,L,bi,bj) = (pephy(i,j,L,bi,bj)+pephy(i,j,L+1,bi,bj))/200. |
210 |
dpres(i,j,L,bi,bj)=(pephy(i,j,L+1,bi,bj)-pephy(i,j,L,bi,bj))/100. |
211 |
ple(i,j,L,bi,bj) = pephy(i,j,L,bi,bj)/100. |
212 |
if (ple(i,j,L,bi,bj).gt.0.) then |
213 |
pkle(i,j,L,bi,bj) = ple(i,j,L,bi,bj) **kappa |
214 |
else |
215 |
pkle(i,j,L,bi,bj) = 0. |
216 |
endif |
217 |
cldtot_lw(i,j,L) = cldtotlwin(i,j,L,bi,bj) |
218 |
cldlsp_lw(i,j,L) = cldlsplwin(i,j,L,bi,bj) |
219 |
cldras_lw(i,j,L) = cldraslwin(i,j,L,bi,bj) |
220 |
lwlz(i,j,L) = lwlzin(i,j,L,bi,bj) |
221 |
qliqavelw(i,j,L) = qliqavelwin(i,j,L,bi,bj) |
222 |
fccavelw(i,j,L) = fccavelwin(i,j,L,bi,bj) |
223 |
cldtot_sw(i,j,L) = cldtotswin(i,j,L,bi,bj) |
224 |
cldlsp_sw(i,j,L) = cldlspswin(i,j,L,bi,bj) |
225 |
cldras_sw(i,j,L) = cldrasswin(i,j,L,bi,bj) |
226 |
swlz(i,j,L) = swlzin(i,j,L,bi,bj) |
227 |
qliqavesw(i,j,L) = qliqaveswin(i,j,L,bi,bj) |
228 |
fccavesw(i,j,L) = fccaveswin(i,j,L,bi,bj) |
229 |
enddo |
230 |
enddo |
231 |
enddo |
232 |
|
233 |
call pkappa (im2,jm2,Nrphys,ple(1,1,1,bi,bj),pkle(1,1,1,bi,bj), |
234 |
. pkl(1,1,1,bi,bj)) |
235 |
|
236 |
call fizhi_driver(myid,im2,jm2,Nrphys,bi,bj,ptracer,ntracer,xlats, |
237 |
. xlons,p(1,1,bi,bj),u,v,t,q,pl(1,1,1,bi,bj),ple(1,1,1,bi,bj), |
238 |
. dpres(1,1,1,bi,bj),pkle(1,1,1,bi,bj),pkl(1,1,1,bi,bj),surfZ, |
239 |
. fracland(1,1,bi,bj),landtype(1,1,bi,bj),radswt(1,1,bi,bj), |
240 |
. phis_var(1,1,bi,bj),tgz(1,1,bi,bj),sea_ice,nchp,chlat(1,bi,bj), |
241 |
. chlon(1,bi,bj),igrd(1,bi,bj),nchptot(bi,bj),nchpland(bi,bj), |
242 |
. chfr(1,bi,bj),ityp(1,bi,bj),tcanopy(1,bi,bj),tdeep(1,bi,bj), |
243 |
. ecanopy(1,bi,bj),swetshal(1,bi,bj),swetroot(1,bi,bj), |
244 |
. swetdeep(1,bi,bj),capac(1,bi,bj),snodep(1,bi,bj), |
245 |
. ctmt(1,bi,bj),xxmt(1,bi,bj),yymt(1,bi,bj),zetamt(1,bi,bj), |
246 |
. xlmt(1,1,bi,bj),khmt(1,1,bi,bj),tke(1,1,bi,bj), |
247 |
. albvisdr(1,1,bi,bj),albvisdf(1,1,bi,bj),albnirdr(1,1,bi,bj), |
248 |
. albnirdf(1,1,bi,bj),emiss(1,1,1,bi,bj),alai(1,bi,bj), |
249 |
. agrn(1,bi,bj), |
250 |
. qstr(1,1,1,bi,bj),o3(1,1,1,bi,bj), |
251 |
. co2,cfc11,cfc12,cfc22,methane,n2o, |
252 |
. lwdt(1,1,1,bi,bj),lwdtclr(1,1,1,bi,bj),swdt(1,1,1,bi,bj), |
253 |
. swdtclr(1,1,1,bi,bj),turbu(1,1,1,bi,bj),turbv(1,1,1,bi,bj), |
254 |
. turbt(1,1,1,bi,bj),turbq(1,1,1,1,bi,bj),moistu(1,1,1,bi,bj), |
255 |
. moistv(1,1,1,bi,bj),moistt(1,1,1,bi,bj),moistq(1,1,1,1,bi,bj), |
256 |
. radswg(1,1,bi,bj),swgclr(1,1,bi,bj),fdirpar(1,1,bi,bj), |
257 |
. fdifpar(1,1,bi,bj),osr(1,1,bi,bj),osrclr(1,1,bi,bj), |
258 |
. tg0(1,1,bi,bj),radlwg(1,1,bi,bj),lwgclr(1,1,bi,bj), |
259 |
. st4(1,1,bi,bj),dst4(1,1,bi,bj),dlwdtg(1,1,1,bi,bj), |
260 |
. rainlsp,raincon,snowfall,iras(bi,bj), |
261 |
. nlwcld(bi,bj),cldtot_lw,cldras_lw,cldlsp_lw,nlwlz(bi,bj),lwlz, |
262 |
. nswcld(bi,bj),cldtot_sw,cldras_sw,cldlsp_sw,nswlz(bi,bj),swlz, |
263 |
. imstturbsw(bi,bj),imstturblw(bi,bj),qliqavesw,qliqavelw, |
264 |
. fccavesw,fccavelw,qq(1,1,1,bi,bj)) |
265 |
|
266 |
do L = 1,Nrphys |
267 |
do j = jm1,jm2 |
268 |
do i = im1,im2 |
269 |
cldtotlwin(i,j,L,bi,bj) = cldtot_lw(i,j,L) |
270 |
cldlsplwin(i,j,L,bi,bj) = cldlsp_lw(i,j,L) |
271 |
cldraslwin(i,j,L,bi,bj) = cldras_lw(i,j,L) |
272 |
lwlzin(i,j,L,bi,bj) = lwlz(i,j,L) |
273 |
qliqavelwin(i,j,L,bi,bj) = qliqavelw(i,j,L) |
274 |
fccavelwin(i,j,L,bi,bj) = fccavelw(i,j,L) |
275 |
cldtotswin(i,j,L,bi,bj) = cldtot_sw(i,j,L) |
276 |
cldlspswin(i,j,L,bi,bj) = cldlsp_sw(i,j,L) |
277 |
cldrasswin(i,j,L,bi,bj) = cldras_sw(i,j,L) |
278 |
swlzin(i,j,L,bi,bj) = swlz(i,j,L) |
279 |
qliqaveswin(i,j,L,bi,bj) = qliqavesw(i,j,L) |
280 |
fccaveswin(i,j,L,bi,bj) = fccavesw(i,j,L) |
281 |
enddo |
282 |
enddo |
283 |
enddo |
284 |
|
285 |
do j = jm1,jm2 |
286 |
do i = im1,im2 |
287 |
rainconin(i,j,bi,bj) = raincon(i,j) |
288 |
rainlspin(i,j,bi,bj) = rainlsp(i,j) |
289 |
snowfallin(i,j,bi,bj) = snowfall(i,j) |
290 |
enddo |
291 |
enddo |
292 |
|
293 |
endif |
294 |
|
295 |
do L = 1,Nrphys |
296 |
do j = jm1,jm2 |
297 |
do i = im1,im2 |
298 |
duphy(i,j,L,bi,bj) = moistu(i,j,L,bi,bj) + turbu(i,j,L,bi,bj) |
299 |
dvphy(i,j,L,bi,bj) = moistv(i,j,L,bi,bj) + turbv(i,j,L,bi,bj) |
300 |
dthphy(i,j,L,bi,bj) = ((moistt(i,j,L,bi,bj)+turbt(i,j,L,bi,bj)+ |
301 |
. lwdt(i,j,L,bi,bj) + |
302 |
. dlwdtg(i,j,L,bi,bj) * (tgz(i,j,bi,bj)-tg0(i,j,bi,bj)) + |
303 |
. swdt(i,j,L,bi,bj)*radswt(i,j,bi,bj) )*p0kappa ) / p(i,j,bi,bj) |
304 |
dsphy(i,j,L,bi,bj) = (moistq(i,j,L,1,bi,bj)+turbq(i,j,L,1,bi,bj)) |
305 |
. /p(i,j,bi,bj) |
306 |
enddo |
307 |
enddo |
308 |
enddo |
309 |
|
310 |
call fizhi_step_diag(myid,p,u,v,t,q,qq,pkl,dpres, |
311 |
. radswt,radswg,swgclr,osr,osrclr,st4,dst4,tgz,tg0,radlwg,lwgclr, |
312 |
. turbu,turbv,turbt,turbq,moistu,moistv,moistt,moistq, |
313 |
. lwdt,swdt,lwdtclr,swdtclr,dlwdtg, |
314 |
. im1,im2,jm1,jm2,Nrphys,Nsx,Nsy,bi,bj,ntracer) |
315 |
|
316 |
return |
317 |
end |