/[MITgcm]/MITgcm/pkg/fizhi/fizhi_driver.F
ViewVC logotype

Annotation of /MITgcm/pkg/fizhi/fizhi_driver.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.29 - (hide annotations) (download)
Thu Oct 21 16:35:23 2004 UTC (19 years, 8 months ago) by molod
Branch: MAIN
Changes since 1.28: +3 -2 lines
Pass surface height through to lowest level fizhi drivers

1 molod 1.29 C $Header: /u/gcmpack/MITgcm/pkg/fizhi/fizhi_driver.F,v 1.28 2004/10/14 22:11:42 molod Exp $
2 molod 1.1 C $Name: $
3    
4 molod 1.13 #include "FIZHI_OPTIONS.h"
5 molod 1.5 subroutine fizhi_driver (myid,im,jm,lm,bi,bj,ptracer,ntracer,
6 molod 1.2 . xlats,xlons,
7 molod 1.29 . p,u,v,t,q,pl,ple,dpres,pkht,pkl,surfz,fracland,landtype,radswt,
8 molod 1.2 . phis_var,tgz,sea_ice,
9 molod 1.12 . nchp,chlat,chlon,igrd,nchptot,nchpland,chfr,ityp,
10 molod 1.1 . tcanopy,tdeep,ecanopy,swetshal,swetroot,swetdeep,capac,snodep,
11     . ctmt,xxmt,yymt,zetamt,xlmt,khmt,tke,
12     . albvisdr,albvisdf,albnirdr,albnirdf,emiss,alai,agrn,
13 molod 1.2 . chemq,chemo3,co2,cfc11,cfc12,cfc22,methane,n2o,
14 molod 1.1 . lwdt,lwdtclr,swdt,swdtclr,turbu,turbv,turbt,turbq,
15     . moistu,moistv,moistt,moistq,
16 molod 1.11 . radswg,swgclr,fdirpar,fdifpar,osr,osrclr,tg0,radlwg,lwgclr,
17 molod 1.3 . st4,dst4,dlwdtg,rainlsp,raincon,snowfall,iras,nlwcld,
18 molod 1.11 . cldtot_lw,cldras_lw,cldlsp_lw,nlwlz,lwlz,nswcld,cldtot_sw,
19     . cldras_sw,cldlsp_sw,nswlz,swlz,imstturbsw,imstturblw,qliqavesw,
20 molod 1.4 . qliqavelw,fccavesw,fccavelw,qq)
21 molod 1.1 C***********************************************************************
22     C Purpose
23     C -------
24     C Driver for the FIZHI high-end Atmospheric Physics
25     C
26     C Arguments Description
27     C ----------------------
28     C nymd ..... Current YYMMDD
29     C nhms ..... Current HHMMSS
30     C fracland.. Land Fractions
31     C landtype.. Land Vegetation Types
32     C radswt ... Incident Solar Radiation
33     C
34     C***********************************************************************
35     implicit none
36    
37     c Diagnostic Common
38     c -----------------
39     #ifdef ALLOW_DIAGNOSTICS
40 molod 1.14 #include "SIZE.h"
41     #include "diagnostics_SIZE.h"
42     #include "diagnostics.h"
43 molod 1.1 #endif
44    
45     c Timers Common
46     c -------------
47 molod 1.11 #include "chronos.h"
48 molod 1.1
49     c Input Parameters
50     c ----------------
51 molod 1.5 integer myid,im,jm,lm,bi,bj,ptracer,ntracer
52 molod 1.12 integer nchp,igrd(nchp),nchptot,nchpland,ityp(nchp)
53 molod 1.1 integer iras,nlwcld,nlwlz,nswcld,nswlz
54     integer imstturbsw,imstturblw
55    
56 molod 1.13 _RL xlats(im,jm), xlons(im,jm)
57     _RL p(im,jm)
58     _RL u(im,jm,lm),v(im,jm,lm),t(im,jm,lm)
59     _RL q(im,jm,lm,ntracer)
60     _RL pl(im,jm,lm),ple(im,jm,lm+1),dpres(im,jm,lm)
61     _RL pkht(im,jm,lm)
62     _RL pkl(im,jm,lm)
63 molod 1.29 _RL surfz(im,jm)
64 molod 1.16 _RL radswt(im,jm), fracland(im,jm)
65     integer landtype(im,jm)
66 molod 1.13 _RL phis_var(im,jm), sea_ice(im,jm)
67     _RL chlat(nchp),chlon(nchp),chfr(nchp)
68     _RL tcanopy(nchp),tdeep(nchp),ecanopy(nchp),swetshal(nchp)
69     _RL swetroot(nchp),swetdeep(nchp),capac(nchp),snodep(nchp)
70     _RL ctmt(nchp),xxmt(nchp),yymt(nchp),zetamt(nchp)
71     _RL xlmt(nchp,lm),khmt(nchp,lm),tke(nchp,lm)
72     _RL co2,cfc11,cfc12,cfc22,methane(lm),n2o(lm)
73     _RL lwdt(im,jm,lm),lwdtclr(im,jm,lm)
74     _RL swdt(im,jm,lm),swdtclr(im,jm,lm)
75     _RL turbu(im,jm,lm),turbv(im,jm,lm),turbt(im,jm,lm)
76 molod 1.24 _RL turbq(im,jm,lm,ntracer)
77 molod 1.13 _RL moistu(im,jm,lm),moistv(im,jm,lm),moistt(im,jm,lm)
78 molod 1.24 _RL moistq(im,jm,lm,ntracer)
79 molod 1.13 _RL chemo3(im,jm,lm),chemq(im,jm,lm)
80     _RL albvisdr(im,jm),albvisdf(im,jm),albnirdr(im,jm)
81 molod 1.23 _RL albnirdf(im,jm),emiss(im,jm,10)
82 molod 1.13 _RL alai(nchp),agrn(nchp)
83     _RL radswg(im,jm),swgclr(im,jm)
84     _RL fdirpar(im,jm),fdifpar(im,jm),osr(im,jm),osrclr(im,jm)
85     _RL tg0(im,jm),radlwg(im,jm),lwgclr(im,jm),st4(im,jm)
86     _RL dst4(im,jm)
87     _RL dlwdtg(im,jm,lm)
88     _RL rainlsp(im,jm),raincon(im,jm),snowfall(im,jm)
89     _RL cldtot_lw(im,jm,lm),cldras_lw(im,jm,lm)
90     _RL cldlsp_lw(im,jm,lm)
91     _RL lwlz(im,jm,lm)
92     _RL cldtot_sw(im,jm,lm),cldras_sw(im,jm,lm)
93     _RL cldlsp_sw(im,jm,lm)
94     _RL swlz(im,jm,lm)
95     _RL qliqavesw(im,jm,lm),qliqavelw(im,jm,lm)
96     _RL fccavesw(im,jm,lm),fccavelw(im,jm,lm)
97     _RL qq(im,jm,lm)
98     _RL tgz(im,jm)
99 molod 1.1
100     c Local Variables
101     c ---------------
102     logical alarm
103     external alarm
104 molod 1.7 integer numpcheck
105     parameter (numpcheck = 5)
106     integer pchecklevs(numpcheck)
107 molod 1.13 _RL pcheckpress(numpcheck)
108 molod 1.7 data pcheckpress/950.,750.,700.,400.,10./
109 molod 1.1
110 molod 1.8 integer low_level,mid_level,nltop,nsubmin,nsubmax,Lup
111 molod 1.2 integer ndmoist,ndturb,ndlw,ndsw
112 molod 1.1 integer istrip,npcs
113 molod 1.17 integer i,j,L
114 molod 1.1 integer ndum,ndpnt
115 molod 1.13 _RL akap,getcon
116     _RL ptop
117 molod 1.1 logical lpnt
118    
119 molod 1.15 istrip = im*jm
120     npcs = 1
121 molod 1.1
122     ptop = 0.
123     akap = getcon('KAPPA')
124    
125     C **********************************************************************
126     C **** Initialization ****
127     C **********************************************************************
128 molod 1.2 call get_alarm ( 'radlw',ndum,ndum,ndlw ,ndum )
129     call get_alarm ( 'radsw',ndum,ndum,ndsw ,ndum )
130     call get_alarm ( 'turb' ,ndum,ndum,ndturb ,ndum )
131     call get_alarm ( 'moist',ndum,ndum,ndmoist,ndum )
132    
133 molod 1.1 call get_alarm ( 'pnt',ndum,ndum,ndpnt,ndum )
134     lpnt = ndpnt.ne.0
135    
136 molod 1.7 C Fill array of model levels closest to a given pressure value
137    
138     call getpwhere(myid,numpcheck,pcheckpress,pchecklevs)
139 molod 1.15
140 molod 1.8 low_level = pchecklevs(3)
141     mid_level = pchecklevs(4)
142     nltop = pchecklevs(5)
143     nsubmin = pchecklevs(1)
144     nsubmax = pchecklevs(2)
145     Lup = pchecklevs(3)
146 molod 1.1
147     C **********************************************************************
148     C **** Call Physics Mini-Drivers ****
149     C **********************************************************************
150 molod 1.17
151 molod 1.1 C SHORT WAVE RADIATION
152     C ====================
153     IF ( alarm('radsw') ) THEN
154    
155 molod 1.5 call swrio ( nymd,nhms,bi,bj,ndsw,myid,istrip,npcs,
156 molod 1.17 . low_level,mid_level,im,jm,lm,
157 molod 1.1 . p,pl,ple,dpres,pkht,pkl,t,chemq,chemo3,co2,
158     . albvisdr,albvisdf,albnirdr,albnirdf,swdt,swdtclr,
159 molod 1.17 . radswg,swgclr,fdifpar,fdirpar,osr,osrclr,
160 molod 1.1 . ptop,nswcld,cldtot_sw,cldras_sw,nswlz,swlz,
161     . .false.,imstturbsw,qliqavesw,
162     . fccavesw,landtype,xlats,xlons )
163    
164     ENDIF
165    
166     C LONG WAVE RADIATION
167     C ===================
168     IF ( alarm('radlw') ) THEN
169    
170     c Set Reference Ground Temperature
171     c --------------------------------
172     do j=1,jm
173     do i=1,im
174     tg0(i,j) = tgz(i,j)
175     enddo
176     enddo
177    
178 molod 1.5 call lwrio ( nymd,nhms,bi,bj,istrip,npcs,
179 molod 1.17 . low_level,mid_level,im,jm,lm,
180 molod 1.15 . p,pl,ple,dpres,pkht,pkl,t,chemq,chemo3,co2,
181 molod 1.1 . cfc11,cfc12,cfc22,methane,n2o,emiss,tgz,radlwg,st4,dst4,
182 molod 1.23 . lwdt,dlwdtg,lwdtclr,lwgclr,
183 molod 1.1 . nlwcld,cldtot_lw,cldras_lw,nlwlz,lwlz,
184     . .false.,imstturblw,qliqavelw,
185     . fccavelw,landtype )
186    
187     ENDIF
188 molod 1.15
189 molod 1.1 C TURBULENCE
190     C ==========
191     IF ( alarm('turb') ) THEN
192 molod 1.20
193 molod 1.21 call turbio (im,jm,lm,istrip,nymd,nhms,bi,bj,ndturb,
194 molod 1.19 . ptop,p,u,v,t,q,ntracer,ptracer,pl,ple,dpres,pkht,pkl,
195     . ctmt,xxmt,yymt,zetamt,xlmt,khmt,tke,
196     . tgz,fracland,landtype,
197     . tcanopy,ecanopy,tdeep,swetshal,swetroot,swetdeep,snodep,capac,
198     . nchp,nchptot,nchpland,chfr,chlat,chlon,igrd,ityp,
199     . alai,agrn,sea_ice,lpnt,
200     . turbu,turbv,turbt,turbq,radlwg,st4,dst4,radswg,radswt,
201     . fdifpar,fdirpar,rainlsp,raincon,snowfall,tg0,
202     . imstturblw,imstturbsw,qliqavelw,qliqavesw,fccavelw,fccavesw,qq,
203     . myid)
204 molod 1.1
205     c Add Gravity-Wave Drag Tendency
206     c ------------------------------
207     C Comment this out for now - run tropospheric resolutions only.
208     C Need to see how to get zonal wavelengths on the cube.
209    
210     c call gwdrag (myid,p,pl,ple,dpres,pkht,pkl,u,v,t,q,phis_var,
211     c . turbu,turbv,turbt,im,jm,lm,ptop,istrip,npcs,
212     c . imglobal)
213 molod 1.17
214 molod 1.1 endif
215    
216     C MOIST PROCESSES
217     C ===============
218     if ( alarm('moist') ) then
219     call moistio (ndmoist,istrip,npcs,
220 molod 1.8 . low_level,mid_level,nltop,nsubmin,nsubmax,Lup,
221 molod 1.5 . p,pl,ple,dpres,pkht,pkl,t,q,bi,bj,ntracer,ptracer,qq,
222 molod 1.1 . moistu,moistv,moistt,moistq,im,jm,lm,ptop,iras,
223 molod 1.11 . rainlsp,raincon,snowfall,
224 molod 1.1 . nswcld,cldtot_sw,cldras_sw,cldlsp_sw,nswlz,swlz,
225     . nlwcld,cldtot_lw,cldras_lw,cldlsp_lw,nlwlz,lwlz,
226     . .false.,myid)
227     endif
228    
229     return
230     end

  ViewVC Help
Powered by ViewVC 1.1.22