1 |
jmc |
1.55 |
C $Header: /u/gcmpack/MITgcm/pkg/fizhi/do_fizhi.F,v 1.54 2012/03/20 19:52:32 jmc Exp $ |
2 |
edhill |
1.2 |
C $Name: $ |
3 |
molod |
1.24 |
#include "FIZHI_OPTIONS.h" |
4 |
jmc |
1.54 |
SUBROUTINE DO_FIZHI(myIter,myid, |
5 |
|
|
& idim1,idim2,jdim1,jdim2,Nrphin,nSxIn,nSyIn,im1,im2,jm1,jm2,bi,bj, |
6 |
jmc |
1.55 |
& turbStart, nchp,nchptot,nchpland, |
7 |
jmc |
1.54 |
& 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 |
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 |
jmc |
1.53 |
c model common blocks (held in fizhi_wrapper) and fizhi_driver. |
23 |
molod |
1.9 |
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 |
jmc |
1.54 |
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 |
jmc |
1.54 |
INTEGER myIter,myid,im1,im2,jm1,jm2,idim1,idim2,jdim1,jdim2 |
35 |
|
|
INTEGER Nrphin,nSxIn,nSyIn,bi,bj,nchp |
36 |
jmc |
1.55 |
LOGICAL turbStart |
37 |
jmc |
1.54 |
INTEGER nchptot(nSxIn,nSyIn),nchpland(nSxIn,nSyIn) |
38 |
|
|
_RL uphy(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
39 |
|
|
_RL vphy(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
40 |
|
|
_RL thphy(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
41 |
|
|
_RL sphy(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
42 |
|
|
_RL pephy(idim1:idim2,jdim1:jdim2,Nrphin+1,nSxIn,nSyIn) |
43 |
|
|
_RS lons(idim1:idim2,jdim1:jdim2,nSxIn,nSyIn) |
44 |
|
|
_RS lats(idim1:idim2,jdim1:jdim2,nSxIn,nSyIn) |
45 |
|
|
_RS Zsurf(idim1:idim2,jdim1:jdim2,nSxIn,nSyIn) |
46 |
|
|
_RL ctmt(nchp,nSxIn,nSyIn),xxmt(nchp,nSxIn,nSyIn) |
47 |
|
|
_RL yymt(nchp,nSxIn,nSyIn) |
48 |
|
|
_RL zetamt(nchp,nSxIn,nSyIn) |
49 |
|
|
_RL xlmt(nchp,Nrphin,nSxIn,nSyIn),khmt(nchp,Nrphin,nSxIn,nSyIn) |
50 |
|
|
_RL tke(nchp,Nrphin,nSxIn,nSyIn) |
51 |
|
|
_RL tgz(im2,jm2,nSxIn,nSyIn) |
52 |
|
|
_RL sst(idim1:idim2,jdim1:jdim2,nSxIn,nSyIn) |
53 |
|
|
_RL sice(idim1:idim2,jdim1:jdim2,nSxIn,nSyIn) |
54 |
|
|
_RL phis_var(im2,jm2,nSxIn,nSyIn) |
55 |
|
|
INTEGER landtype(im2,jm2,nSxIn,nSyIn) |
56 |
|
|
_RL fracland(im2,jm2,nSxIn,nSyIn),emiss(im2,jm2,10,nSxIn,nSyIn) |
57 |
|
|
_RL albvisdr(im2,jm2,nSxIn,nSyIn),albvisdf(im2,jm2,nSxIn,nSyIn) |
58 |
|
|
_RL albnirdr(im2,jm2,nSxIn,nSyIn),albnirdf(im2,jm2,nSxIn,nSyIn) |
59 |
|
|
_RL chfr(nchp,nSxIn,nSyIn),alai(nchp,nSxIn,nSyIn) |
60 |
|
|
_RL agrn(nchp,nSxIn,nSyIn) |
61 |
|
|
INTEGER ityp(nchp,nSxIn,nSyIn),igrd(nchp,nSxIn,nSyIn) |
62 |
|
|
_RL chlat(nchp,nSxIn,nSyIn),chlon(nchp,nSxIn,nSyIn) |
63 |
|
|
_RL tcanopy(nchp,nSxIn,nSyIn),tdeep(nchp,nSxIn,nSyIn) |
64 |
|
|
_RL ecanopy(nchp,nSxIn,nSyIn),swetshal(nchp,nSxIn,nSyIn) |
65 |
|
|
_RL swetroot(nchp,nSxIn,nSyIn),swetdeep(nchp,nSxIn,nSyIn) |
66 |
|
|
_RL snodep(nchp,nSxIn,nSyIn),capac(nchp,nSxIn,nSyIn) |
67 |
|
|
_RL o3(im2,jm2,Nrphin,nSxIn,nSyIn) |
68 |
|
|
_RL qstr(im2,jm2,Nrphin,nSxIn,nSyIn) |
69 |
molod |
1.22 |
_RL co2,cfc11,cfc12,cfc22,n2o(Nrphin),methane(Nrphin) |
70 |
molod |
1.40 |
|
71 |
jmc |
1.54 |
INTEGER iras(nSxIn,nSyIn) |
72 |
|
|
INTEGER nlwcld(nSxIn,nSyIn),nlwlz(nSxIn,nSyIn) |
73 |
|
|
INTEGER nswcld(nSxIn,nSyIn),nswlz(nSxIn,nSyIn) |
74 |
|
|
INTEGER imstturbsw(nSxIn,nSyIn),imstturblw(nSxIn,nSyIn) |
75 |
|
|
_RL cldtotlwin(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
76 |
|
|
_RL cldraslwin(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
77 |
|
|
_RL cldlsplwin(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
78 |
|
|
_RL lwlzin(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
79 |
|
|
_RL cldtotswin(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
80 |
|
|
_RL cldrasswin(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
81 |
|
|
_RL cldlspswin(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
82 |
|
|
_RL swlzin(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
83 |
|
|
_RL qliqaveswin(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
84 |
|
|
_RL qliqavelwin(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
85 |
|
|
_RL fccaveswin(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
86 |
|
|
_RL fccavelwin(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
87 |
|
|
_RL rainlspin(idim1:idim2,jdim1:jdim2,nSxIn,nSyIn) |
88 |
|
|
_RL rainconin(idim1:idim2,jdim1:jdim2,nSxIn,nSyIn) |
89 |
|
|
_RL snowfallin(idim1:idim2,jdim1:jdim2,nSxIn,nSyIn) |
90 |
|
|
|
91 |
|
|
|
92 |
|
|
_RL duphy(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
93 |
|
|
_RL dvphy(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
94 |
|
|
_RL dthphy(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
95 |
|
|
_RL dsphy(idim1:idim2,jdim1:jdim2,Nrphin,nSxIn,nSyIn) |
96 |
molod |
1.22 |
|
97 |
|
|
c Local Variables |
98 |
jmc |
1.54 |
INTEGER ptracer,ntracer |
99 |
|
|
PARAMETER (ptracer = 1) |
100 |
|
|
PARAMETER (ntracer = 1) |
101 |
molod |
1.10 |
|
102 |
jmc |
1.53 |
_RL xlats(sNx,sNy),xlons(sNx,sNy),sea_ice(sNx,sNy) |
103 |
molod |
1.47 |
_RL surfZ(sNx,sNy) |
104 |
jmc |
1.54 |
_RL p(sNx,sNy,nSx,nSy) |
105 |
molod |
1.24 |
_RL u(sNx,sNy,Nrphys),v(sNx,sNy,Nrphys),t(sNx,sNy,Nrphys) |
106 |
|
|
_RL q(sNx,sNy,Nrphys,ntracer) |
107 |
jmc |
1.54 |
_RL pl(sNx,sNy,Nrphys,nSx,nSy),pkl(sNx,sNy,Nrphys,nSx,nSy) |
108 |
|
|
_RL ple(sNx,sNy,Nrphys+1,nSx,nSy) |
109 |
|
|
_RL pkle(sNx,sNy,Nrphys+1,nSx,nSy) |
110 |
|
|
_RL dpres(sNx,sNy,Nrphys,nSx,nSy) |
111 |
|
|
_RL lwdt(sNx,sNy,Nrphys,nSx,nSy) |
112 |
|
|
_RL lwdtclr(sNx,sNy,Nrphys,nSx,nSy) |
113 |
|
|
_RL swdt(sNx,sNy,Nrphys,nSx,nSy) |
114 |
|
|
_RL swdtclr(sNx,sNy,Nrphys,nSx,nSy) |
115 |
|
|
_RL turbu(sNx,sNy,Nrphys,nSx,nSy) |
116 |
|
|
_RL turbv(sNx,sNy,Nrphys,nSx,nSy) |
117 |
|
|
_RL turbt(sNx,sNy,Nrphys,nSx,nSy) |
118 |
|
|
_RL turbq(sNx,sNy,Nrphys,ntracer,nSx,nSy) |
119 |
|
|
_RL moistu(sNx,sNy,Nrphys,nSx,nSy) |
120 |
|
|
_RL moistv(sNx,sNy,Nrphys,nSx,nSy) |
121 |
|
|
_RL moistt(sNx,sNy,Nrphys,nSx,nSy) |
122 |
|
|
_RL moistq(sNx,sNy,Nrphys,ntracer,nSx,nSy) |
123 |
|
|
_RL radswt(sNx,sNy,nSx,nSy),radswg(sNx,sNy,nSx,nSy) |
124 |
|
|
_RL swgclr(sNx,sNy,nSx,nSy) |
125 |
|
|
_RL fdirpar(sNx,sNy,nSx,nSy),fdifpar(sNx,sNy,nSx,nSy) |
126 |
|
|
_RL osr(sNx,sNy,nSx,nSy),osrclr(sNx,sNy,nSx,nSy) |
127 |
|
|
_RL tg0(sNx,sNy,nSx,nSy),radlwg(sNx,sNy,nSx,nSy) |
128 |
|
|
_RL lwgclr(sNx,sNy,nSx,nSy),st4(sNx,sNy,nSx,nSy) |
129 |
|
|
_RL dst4(sNx,sNy,nSx,nSy),dlwdtg(sNx,sNy,Nrphys,nSx,nSy) |
130 |
|
|
_RL qq(sNx,sNy,Nrphys,nSx,nSy) |
131 |
|
|
INTEGER i,j,L |
132 |
molod |
1.24 |
_RL getcon, kappa, p0kappa, s0, ra |
133 |
|
|
_RL cosz(sNx,sNy) |
134 |
molod |
1.42 |
_RL cldtot_lw(sNx,sNy,Nrphys) |
135 |
|
|
_RL cldras_lw(sNx,sNy,Nrphys) |
136 |
|
|
_RL cldlsp_lw(sNx,sNy,Nrphys) |
137 |
|
|
_RL lwlz(sNx,sNy,Nrphys) |
138 |
|
|
_RL cldtot_sw(sNx,sNy,Nrphys) |
139 |
|
|
_RL cldras_sw(sNx,sNy,Nrphys) |
140 |
|
|
_RL cldlsp_sw(sNx,sNy,Nrphys) |
141 |
|
|
_RL swlz(sNx,sNy,Nrphys) |
142 |
|
|
_RL qliqavesw(sNx,sNy,Nrphys) |
143 |
|
|
_RL qliqavelw(sNx,sNy,Nrphys) |
144 |
|
|
_RL fccavesw(sNx,sNy,Nrphys) |
145 |
|
|
_RL fccavelw(sNx,sNy,Nrphys) |
146 |
|
|
_RL rainlsp(sNx,sNy) |
147 |
|
|
_RL raincon(sNx,sNy) |
148 |
|
|
_RL snowfall(sNx,sNy) |
149 |
molod |
1.11 |
|
150 |
molod |
1.29 |
_RL tempij(sNx,sNy) |
151 |
|
|
|
152 |
jmc |
1.54 |
LOGICAL alarm |
153 |
|
|
EXTERNAL alarm |
154 |
molod |
1.13 |
|
155 |
jmc |
1.54 |
COMMON /saver/ lwdt,lwdtclr,swdt,swdtclr,turbu,turbv,turbt,turbq |
156 |
|
|
COMMON /saver/ moistu,moistv,moistt,moistq |
157 |
|
|
COMMON /saver/ radswg,swgclr,fdirpar,fdifpar,osr,osrclr,tg0,radlwg |
158 |
|
|
COMMON /saver/ st4,dst4,dlwdtg,lwgclr |
159 |
|
|
COMMON /saver/ qq |
160 |
|
|
COMMON /saver/ p,pl,ple,dpres,pkle,pkl |
161 |
jmc |
1.53 |
|
162 |
molod |
1.11 |
C*********************************************************************** |
163 |
|
|
C Unshadow input arrays (and make 'fizhi theta' from true theta) |
164 |
|
|
C*********************************************************************** |
165 |
|
|
kappa = getcon('KAPPA') |
166 |
|
|
p0kappa = 1000.0 ** kappa |
167 |
molod |
1.12 |
S0 = getcon('S0') |
168 |
jmc |
1.53 |
|
169 |
molod |
1.26 |
do j = jm1,jm2 |
170 |
|
|
do i = im1,im2 |
171 |
|
|
xlats(i,j) = lats(i,j,bi,bj) |
172 |
|
|
xlons(i,j) = lons(i,j,bi,bj) |
173 |
molod |
1.47 |
surfZ(i,j) = Zsurf(i,j,bi,bj) |
174 |
molod |
1.26 |
enddo |
175 |
|
|
enddo |
176 |
|
|
|
177 |
jmc |
1.53 |
#ifdef FIZHI_USE_FIXED_DAY |
178 |
|
|
call astro ( 20040321,nhms, xlats,xlons, im2*jm2, cosz,ra ) |
179 |
|
|
#else |
180 |
molod |
1.43 |
call astro ( nymd,nhms, xlats,xlons, im2*jm2, cosz,ra ) |
181 |
jmc |
1.53 |
#endif |
182 |
molod |
1.13 |
do j=jm1,jm2 |
183 |
|
|
do i=im1,im2 |
184 |
molod |
1.19 |
radswt(i,j,bi,bj) = S0*(1.0/ra**2)*cosz(i,j) |
185 |
molod |
1.11 |
enddo |
186 |
|
|
enddo |
187 |
molod |
1.13 |
|
188 |
|
|
if( alarm('moist') .or. alarm('turb') .or. |
189 |
jmc |
1.54 |
& alarm('radsw') .or. alarm('radlw') ) then |
190 |
molod |
1.13 |
|
191 |
molod |
1.18 |
C compute pressures - all pressure are converted here to hPa |
192 |
molod |
1.11 |
do j = jm1,jm2 |
193 |
|
|
do i = im1,im2 |
194 |
molod |
1.18 |
ple(i,j,Nrphys+1,bi,bj) = pephy(i,j,Nrphys+1,bi,bj)/100. |
195 |
|
|
pkle(i,j,Nrphys+1,bi,bj)=(pephy(i,j,Nrphys+1,bi,bj)/100.) **kappa |
196 |
|
|
p(i,j,bi,bj) = pephy(i,j,Nrphys+1,bi,bj)/100. |
197 |
molod |
1.11 |
sea_ice(i,j) = sice(i,j,bi,bj) |
198 |
molod |
1.51 |
raincon(i,j) = rainconin(i,j,bi,bj) |
199 |
|
|
rainlsp(i,j) = rainlspin(i,j,bi,bj) |
200 |
|
|
snowfall(i,j) = snowfallin(i,j,bi,bj) |
201 |
molod |
1.11 |
enddo |
202 |
|
|
enddo |
203 |
molod |
1.13 |
do L = 1,Nrphys |
204 |
|
|
do j = jm1,jm2 |
205 |
|
|
do i = im1,im2 |
206 |
|
|
u(i,j,L) = uphy(i,j,L,bi,bj) |
207 |
|
|
v(i,j,L) = vphy(i,j,L,bi,bj) |
208 |
|
|
t(i,j,L) = thphy(i,j,L,bi,bj)/p0kappa |
209 |
|
|
q(i,j,L,1) = sphy(i,j,L,bi,bj) |
210 |
molod |
1.19 |
pl(i,j,L,bi,bj) = (pephy(i,j,L,bi,bj)+pephy(i,j,L+1,bi,bj))/200. |
211 |
|
|
dpres(i,j,L,bi,bj)=(pephy(i,j,L+1,bi,bj)-pephy(i,j,L,bi,bj))/100. |
212 |
molod |
1.18 |
ple(i,j,L,bi,bj) = pephy(i,j,L,bi,bj)/100. |
213 |
molod |
1.30 |
if (ple(i,j,L,bi,bj).gt.0.) then |
214 |
|
|
pkle(i,j,L,bi,bj) = ple(i,j,L,bi,bj) **kappa |
215 |
|
|
else |
216 |
|
|
pkle(i,j,L,bi,bj) = 0. |
217 |
|
|
endif |
218 |
molod |
1.42 |
cldtot_lw(i,j,L) = cldtotlwin(i,j,L,bi,bj) |
219 |
|
|
cldlsp_lw(i,j,L) = cldlsplwin(i,j,L,bi,bj) |
220 |
|
|
cldras_lw(i,j,L) = cldraslwin(i,j,L,bi,bj) |
221 |
|
|
lwlz(i,j,L) = lwlzin(i,j,L,bi,bj) |
222 |
|
|
qliqavelw(i,j,L) = qliqavelwin(i,j,L,bi,bj) |
223 |
|
|
fccavelw(i,j,L) = fccavelwin(i,j,L,bi,bj) |
224 |
|
|
cldtot_sw(i,j,L) = cldtotswin(i,j,L,bi,bj) |
225 |
|
|
cldlsp_sw(i,j,L) = cldlspswin(i,j,L,bi,bj) |
226 |
|
|
cldras_sw(i,j,L) = cldrasswin(i,j,L,bi,bj) |
227 |
|
|
swlz(i,j,L) = swlzin(i,j,L,bi,bj) |
228 |
|
|
qliqavesw(i,j,L) = qliqaveswin(i,j,L,bi,bj) |
229 |
|
|
fccavesw(i,j,L) = fccaveswin(i,j,L,bi,bj) |
230 |
molod |
1.13 |
enddo |
231 |
molod |
1.12 |
enddo |
232 |
|
|
enddo |
233 |
|
|
|
234 |
molod |
1.27 |
call pkappa (im2,jm2,Nrphys,ple(1,1,1,bi,bj),pkle(1,1,1,bi,bj), |
235 |
jmc |
1.54 |
& pkl(1,1,1,bi,bj)) |
236 |
molod |
1.1 |
|
237 |
jmc |
1.55 |
call fizhi_driver(myid,im2,jm2,Nrphys,bi,bj,ptracer,ntracer, |
238 |
|
|
& turbStart, xlats, xlons, |
239 |
|
|
& p(1,1,bi,bj),u,v,t,q,pl(1,1,1,bi,bj),ple(1,1,1,bi,bj), |
240 |
jmc |
1.54 |
& dpres(1,1,1,bi,bj),pkle(1,1,1,bi,bj),pkl(1,1,1,bi,bj),surfZ, |
241 |
|
|
& fracland(1,1,bi,bj),landtype(1,1,bi,bj),radswt(1,1,bi,bj), |
242 |
|
|
& phis_var(1,1,bi,bj),tgz(1,1,bi,bj),sea_ice,nchp,chlat(1,bi,bj), |
243 |
|
|
& chlon(1,bi,bj),igrd(1,bi,bj),nchptot(bi,bj),nchpland(bi,bj), |
244 |
|
|
& chfr(1,bi,bj),ityp(1,bi,bj),tcanopy(1,bi,bj),tdeep(1,bi,bj), |
245 |
|
|
& ecanopy(1,bi,bj),swetshal(1,bi,bj),swetroot(1,bi,bj), |
246 |
|
|
& swetdeep(1,bi,bj),capac(1,bi,bj),snodep(1,bi,bj), |
247 |
|
|
& ctmt(1,bi,bj),xxmt(1,bi,bj),yymt(1,bi,bj),zetamt(1,bi,bj), |
248 |
|
|
& xlmt(1,1,bi,bj),khmt(1,1,bi,bj),tke(1,1,bi,bj), |
249 |
|
|
& albvisdr(1,1,bi,bj),albvisdf(1,1,bi,bj),albnirdr(1,1,bi,bj), |
250 |
|
|
& albnirdf(1,1,bi,bj),emiss(1,1,1,bi,bj),alai(1,bi,bj), |
251 |
|
|
& agrn(1,bi,bj), |
252 |
|
|
& qstr(1,1,1,bi,bj),o3(1,1,1,bi,bj), |
253 |
|
|
& co2,cfc11,cfc12,cfc22,methane,n2o, |
254 |
|
|
& lwdt(1,1,1,bi,bj),lwdtclr(1,1,1,bi,bj),swdt(1,1,1,bi,bj), |
255 |
|
|
& swdtclr(1,1,1,bi,bj),turbu(1,1,1,bi,bj),turbv(1,1,1,bi,bj), |
256 |
|
|
& turbt(1,1,1,bi,bj),turbq(1,1,1,1,bi,bj),moistu(1,1,1,bi,bj), |
257 |
|
|
& moistv(1,1,1,bi,bj),moistt(1,1,1,bi,bj),moistq(1,1,1,1,bi,bj), |
258 |
|
|
& radswg(1,1,bi,bj),swgclr(1,1,bi,bj),fdirpar(1,1,bi,bj), |
259 |
|
|
& fdifpar(1,1,bi,bj),osr(1,1,bi,bj),osrclr(1,1,bi,bj), |
260 |
|
|
& tg0(1,1,bi,bj),radlwg(1,1,bi,bj),lwgclr(1,1,bi,bj), |
261 |
|
|
& st4(1,1,bi,bj),dst4(1,1,bi,bj),dlwdtg(1,1,1,bi,bj), |
262 |
|
|
& rainlsp,raincon,snowfall,iras(bi,bj), |
263 |
|
|
& nlwcld(bi,bj),cldtot_lw,cldras_lw,cldlsp_lw,nlwlz(bi,bj),lwlz, |
264 |
|
|
& nswcld(bi,bj),cldtot_sw,cldras_sw,cldlsp_sw,nswlz(bi,bj),swlz, |
265 |
|
|
& imstturbsw(bi,bj),imstturblw(bi,bj),qliqavesw,qliqavelw, |
266 |
|
|
& fccavesw,fccavelw,qq(1,1,1,bi,bj)) |
267 |
molod |
1.12 |
|
268 |
|
|
do L = 1,Nrphys |
269 |
|
|
do j = jm1,jm2 |
270 |
|
|
do i = im1,im2 |
271 |
molod |
1.44 |
cldtotlwin(i,j,L,bi,bj) = cldtot_lw(i,j,L) |
272 |
|
|
cldlsplwin(i,j,L,bi,bj) = cldlsp_lw(i,j,L) |
273 |
|
|
cldraslwin(i,j,L,bi,bj) = cldras_lw(i,j,L) |
274 |
|
|
lwlzin(i,j,L,bi,bj) = lwlz(i,j,L) |
275 |
|
|
qliqavelwin(i,j,L,bi,bj) = qliqavelw(i,j,L) |
276 |
|
|
fccavelwin(i,j,L,bi,bj) = fccavelw(i,j,L) |
277 |
|
|
cldtotswin(i,j,L,bi,bj) = cldtot_sw(i,j,L) |
278 |
|
|
cldlspswin(i,j,L,bi,bj) = cldlsp_sw(i,j,L) |
279 |
|
|
cldrasswin(i,j,L,bi,bj) = cldras_sw(i,j,L) |
280 |
|
|
swlzin(i,j,L,bi,bj) = swlz(i,j,L) |
281 |
|
|
qliqaveswin(i,j,L,bi,bj) = qliqavesw(i,j,L) |
282 |
|
|
fccaveswin(i,j,L,bi,bj) = fccavesw(i,j,L) |
283 |
|
|
enddo |
284 |
|
|
enddo |
285 |
|
|
enddo |
286 |
|
|
|
287 |
|
|
do j = jm1,jm2 |
288 |
|
|
do i = im1,im2 |
289 |
|
|
rainconin(i,j,bi,bj) = raincon(i,j) |
290 |
|
|
rainlspin(i,j,bi,bj) = rainlsp(i,j) |
291 |
|
|
snowfallin(i,j,bi,bj) = snowfall(i,j) |
292 |
molod |
1.12 |
enddo |
293 |
|
|
enddo |
294 |
molod |
1.31 |
|
295 |
|
|
endif |
296 |
molod |
1.5 |
|
297 |
molod |
1.51 |
do L = 1,Nrphys |
298 |
|
|
do j = jm1,jm2 |
299 |
|
|
do i = im1,im2 |
300 |
|
|
duphy(i,j,L,bi,bj) = moistu(i,j,L,bi,bj) + turbu(i,j,L,bi,bj) |
301 |
|
|
dvphy(i,j,L,bi,bj) = moistv(i,j,L,bi,bj) + turbv(i,j,L,bi,bj) |
302 |
|
|
dthphy(i,j,L,bi,bj) = ((moistt(i,j,L,bi,bj)+turbt(i,j,L,bi,bj)+ |
303 |
jmc |
1.54 |
& lwdt(i,j,L,bi,bj) + |
304 |
|
|
& dlwdtg(i,j,L,bi,bj) * (tgz(i,j,bi,bj)-tg0(i,j,bi,bj)) + |
305 |
|
|
& swdt(i,j,L,bi,bj)*radswt(i,j,bi,bj) )*p0kappa ) / p(i,j,bi,bj) |
306 |
molod |
1.51 |
dsphy(i,j,L,bi,bj) = (moistq(i,j,L,1,bi,bj)+turbq(i,j,L,1,bi,bj)) |
307 |
jmc |
1.54 |
& /p(i,j,bi,bj) |
308 |
molod |
1.51 |
enddo |
309 |
|
|
enddo |
310 |
|
|
enddo |
311 |
|
|
|
312 |
molod |
1.52 |
call fizhi_step_diag(myid,p,u,v,t,q,qq,pkl,dpres, |
313 |
jmc |
1.54 |
& radswt,radswg,swgclr,osr,osrclr,st4,dst4,tgz,tg0,radlwg,lwgclr, |
314 |
|
|
& turbu,turbv,turbt,turbq,moistu,moistv,moistt,moistq, |
315 |
|
|
& lwdt,swdt,lwdtclr,swdtclr,dlwdtg, |
316 |
|
|
& im1,im2,jm1,jm2,Nrphys,nSx,nSy,bi,bj,ntracer) |
317 |
molod |
1.15 |
|
318 |
molod |
1.5 |
return |
319 |
|
|
end |