source: LMDZ6/branches/Ocean_skin/libf/phylmd/ecrad/rrtm_taumol7.F90 @ 5407

Last change on this file since 5407 was 3908, checked in by idelkadi, 4 years ago

Online implementation of the radiative transfer code ECRAD in the LMDZ model.

  • Inclusion of the ecrad directory containing the sources of the ECRAD code
    • interface routine : radiation_scheme.F90
  • Adaptation of compilation scripts :
    • compilation under CPP key CPP_ECRAD
    • compilation with option "-rad ecard" or "-ecard true"
    • The "-rad old/rtm/ecran" build option will need to replace the "-rrtm true" and "-ecrad true" options in the future.
  • Runing LMDZ simulations with ecrad, you need :
    • logical key iflag_rrtm = 2 in physiq.def
    • namelist_ecrad (DefLists?)
    • the directory "data" containing the configuration files is temporarily placed in ../libfphylmd/ecrad/
  • Compilation and execution are tested in the 1D case. The repository under svn would allow to continue the implementation work: tests, verification of the results, ...
File size: 14.6 KB
Line 
1!----------------------------------------------------------------------------
2SUBROUTINE RRTM_TAUMOL7 (KIDIA,KFDIA,KLEV,P_TAU,&
3 & P_TAUAERL,P_FAC00,P_FAC01,P_FAC10,P_FAC11,P_FORFAC,P_FORFRAC,K_INDFOR,K_JP,K_JT,K_JT1,P_ONEMINUS,&
4 & P_COLH2O,P_COLO3,P_COLCO2,P_COLDRY,K_LAYTROP,P_SELFFAC,P_SELFFRAC,K_INDSELF,PFRAC, &
5 & P_RAT_H2OO3, P_RAT_H2OO3_1,PMINORFRAC,KINDMINOR) 
6
7!     BAND 7:  980-1080 cm-1 (low - H2O,O3; high - O3)
8
9!     AUTHOR.
10!     -------
11!      JJMorcrette, ECMWF
12
13!     MODIFICATIONS.
14!     --------------
15!      M.Hamrud      01-Oct-2003 CY28 Cleaning
16!      NEC           25-Oct-2007 Optimisations
17!      JJMorcrette 20110613 flexible number of g-points
18!      ABozzo 201306 updated to rrtmg v4.85
19!     band 7:  980-1080 cm-1 (low key - h2o,o3; low minor - co2)
20!                            (high key - o3; high minor - co2)
21! ---------------------------------------------------------------------------
22
23USE PARKIND1  ,ONLY : JPIM     ,JPRB
24USE YOMHOOK   ,ONLY : LHOOK,   DR_HOOK
25
26USE PARRRTM  , ONLY : JPBAND
27USE YOERRTM  , ONLY : JPGPT  ,NG7   ,NGS6
28USE YOERRTWN , ONLY : NSPA   ,NSPB
29USE YOERRTA7 , ONLY : ABSA   ,ABSB   ,KA_MCO2,KB_MCO2 ,FRACREFA ,FRACREFB,SELFREF,FORREF
30USE YOERRTRF, ONLY : CHI_MLS
31
32IMPLICIT NONE
33
34INTEGER(KIND=JPIM),INTENT(IN)    :: KIDIA
35INTEGER(KIND=JPIM),INTENT(IN)    :: KFDIA
36INTEGER(KIND=JPIM),INTENT(IN)    :: KLEV
37REAL(KIND=JPRB)   ,INTENT(OUT)   :: P_TAU(KIDIA:KFDIA,JPGPT,KLEV)
38REAL(KIND=JPRB)   ,INTENT(IN)    :: P_TAUAERL(KIDIA:KFDIA,KLEV,JPBAND)
39REAL(KIND=JPRB)   ,INTENT(IN)    :: P_FAC00(KIDIA:KFDIA,KLEV)
40REAL(KIND=JPRB)   ,INTENT(IN)    :: P_FAC01(KIDIA:KFDIA,KLEV)
41REAL(KIND=JPRB)   ,INTENT(IN)    :: P_FAC10(KIDIA:KFDIA,KLEV)
42REAL(KIND=JPRB)   ,INTENT(IN)    :: P_FAC11(KIDIA:KFDIA,KLEV)
43INTEGER(KIND=JPIM),INTENT(IN)    :: K_JP(KIDIA:KFDIA,KLEV)
44INTEGER(KIND=JPIM),INTENT(IN)    :: K_JT(KIDIA:KFDIA,KLEV)
45INTEGER(KIND=JPIM),INTENT(IN)    :: K_JT1(KIDIA:KFDIA,KLEV)
46REAL(KIND=JPRB)   ,INTENT(IN)    :: P_ONEMINUS
47REAL(KIND=JPRB)   ,INTENT(IN)    :: P_COLH2O(KIDIA:KFDIA,KLEV)
48REAL(KIND=JPRB)   ,INTENT(IN)    :: P_COLO3(KIDIA:KFDIA,KLEV)
49REAL(KIND=JPRB)   ,INTENT(IN)    :: P_COLCO2(KIDIA:KFDIA,KLEV)
50REAL(KIND=JPRB)   ,INTENT(IN)    :: P_COLDRY(KIDIA:KFDIA,KLEV)
51INTEGER(KIND=JPIM),INTENT(IN)    :: K_LAYTROP(KIDIA:KFDIA)
52REAL(KIND=JPRB)   ,INTENT(IN)    :: P_SELFFAC(KIDIA:KFDIA,KLEV)
53REAL(KIND=JPRB)   ,INTENT(IN)    :: P_SELFFRAC(KIDIA:KFDIA,KLEV)
54INTEGER(KIND=JPIM),INTENT(IN)    :: K_INDSELF(KIDIA:KFDIA,KLEV)
55REAL(KIND=JPRB)   ,INTENT(OUT)   :: PFRAC(KIDIA:KFDIA,JPGPT,KLEV)
56
57REAL(KIND=JPRB)   ,INTENT(IN)   :: P_RAT_H2OO3(KIDIA:KFDIA,KLEV)
58REAL(KIND=JPRB)   ,INTENT(IN)   :: P_RAT_H2OO3_1(KIDIA:KFDIA,KLEV)
59INTEGER(KIND=JPIM),INTENT(IN)   :: K_INDFOR(KIDIA:KFDIA,KLEV)
60REAL(KIND=JPRB)   ,INTENT(IN)   :: P_FORFRAC(KIDIA:KFDIA,KLEV)
61REAL(KIND=JPRB)   ,INTENT(IN)   :: P_FORFAC(KIDIA:KFDIA,KLEV)
62REAL(KIND=JPRB)   ,INTENT(IN)   :: PMINORFRAC(KIDIA:KFDIA,KLEV)
63INTEGER(KIND=JPIM),INTENT(IN)   :: KINDMINOR(KIDIA:KFDIA,KLEV)
64
65
66! ---------------------------------------------------------------------------
67
68REAL(KIND=JPRB) :: Z_SPECCOMB(KLEV),Z_SPECCOMB1(KLEV), &
69& Z_SPECCOMB_MCO2(KLEV), Z_SPECCOMB_PLANCK(KLEV)
70INTEGER(KIND=JPIM) :: IND0(KLEV),IND1(KLEV),INDS(KLEV),INDF(KLEV),INDM(KLEV)
71
72INTEGER(KIND=JPIM) :: IG, JS, JLAY, JS1, JPL, JMCO2
73INTEGER(KIND=JPIM) :: JLON
74
75REAL(KIND=JPRB) :: ZREFRAT_PLANCK_A, ZREFRAT_M_A
76REAL(KIND=JPRB) :: ZCHI_CO2, ZRATCO2, ZADJFAC, ZADJCOLCO2(KIDIA:KFDIA,KLEV)
77REAL(KIND=JPRB) ::  Z_FAC000, Z_FAC100, Z_FAC200,&
78 & Z_FAC010, Z_FAC110, Z_FAC210, &
79 & Z_FAC001, Z_FAC101, Z_FAC201, &
80 & Z_FAC011, Z_FAC111, Z_FAC211
81REAL(KIND=JPRB) :: ZP, ZP4, ZFK0, ZFK1, ZFK2
82REAL(KIND=JPRB) :: ZTAUFOR,ZTAUSELF,ZTAU_MAJOR,ZTAU_MAJOR1, ZCO2M1, ZCO2M2, ZABSCO2
83
84
85REAL(KIND=JPRB) :: Z_FS, Z_SPECMULT, Z_SPECPARM,  &
86& Z_FS1, Z_SPECMULT1, Z_SPECPARM1, &
87& Z_FPL, Z_SPECMULT_PLANCK, Z_SPECPARM_PLANCK, &
88& Z_FMCO2, Z_SPECMULT_MCO2, Z_SPECPARM_MCO2 
89REAL(KIND=JPRB) :: ZHOOK_HANDLE
90
91ASSOCIATE(NFLEVG=>KLEV)
92IF (LHOOK) CALL DR_HOOK('RRTM_TAUMOL7',0,ZHOOK_HANDLE)
93
94! Minor gas mapping level :
95!     lower - co2, p = 706.2620 mbar, t= 278.94 k
96!     upper - co2, p = 12.9350 mbar, t = 234.01 k
97
98! Calculate reference ratio to be used in calculation of Planck
99! fraction in lower atmosphere.
100
101! P = 706.2620 mb
102      Zrefrat_planck_a = chi_mls(1,3)/chi_mls(3,3)
103
104! P = 706.2720 mb
105      Zrefrat_m_a = chi_mls(1,3)/chi_mls(3,3)
106
107! Compute the optical depth by interpolating in ln(pressure),
108! temperature, and appropriate species.  Below laytrop, the water
109! vapor self-continuum and foreign continuum is interpolated
110! (in temperature) separately.
111
112DO JLAY = 1, KLEV
113  DO JLON = KIDIA, KFDIA
114    IF (JLAY <= K_LAYTROP(JLON)) THEN
115      Z_SPECCOMB(JLAY) = P_COLH2O(JLON,JLAY) + P_RAT_H2OO3(JLON,JLAY)*P_COLO3(JLON,JLAY)
116      Z_SPECPARM = P_COLH2O(JLON,JLAY)/Z_SPECCOMB(JLAY)
117      Z_SPECPARM=MIN(P_ONEMINUS,Z_SPECPARM)
118      Z_SPECMULT = 8._JPRB*Z_SPECPARM
119      JS = 1 + INT(Z_SPECMULT)
120      Z_FS = MOD(Z_SPECMULT,1.0_JPRB)
121
122      Z_SPECCOMB1(JLAY) = P_COLH2O(JLON,JLAY) + P_RAT_H2OO3_1(JLON,JLAY)*P_COLO3(JLON,JLAY)
123      Z_SPECPARM1 = P_COLH2O(JLON,JLAY)/Z_SPECCOMB1(JLAY)
124      IF (Z_SPECPARM1 >= P_ONEMINUS) Z_SPECPARM1 = P_ONEMINUS
125      Z_SPECMULT1 = 8._JPRB*(Z_SPECPARM1)
126      JS1 = 1 + INT(Z_SPECMULT1)
127      Z_FS1 = MOD(Z_SPECMULT1,1.0_JPRB)
128
129      Z_SPECCOMB_MCO2(JLAY) = P_COLH2O(JLON,JLAY) + ZREFRAT_M_A*P_COLO3(JLON,JLAY)
130      Z_SPECPARM_MCO2 = P_COLH2O(JLON,JLAY)/Z_SPECCOMB_MCO2(JLAY)
131      IF (Z_SPECPARM_MCO2 >= P_ONEMINUS) Z_SPECPARM_MCO2 = P_ONEMINUS
132      Z_SPECMULT_MCO2 = 8._JPRB*Z_SPECPARM_MCO2
133      JMCO2 = 1 + INT(Z_SPECMULT_MCO2)
134      Z_FMCO2 = MOD(Z_SPECMULT_MCO2,1.0_JPRB)
135
136! In atmospheres where the amount of CO2 is too great to be considered
137! a minor species, adjust the column amount of CO2 by an empirical factor
138! to obtain the proper contribution.
139      ZCHI_CO2 = P_COLCO2(JLON,JLAY)/P_COLDRY(JLON,JLAY)
140      ZRATCO2 = 1.E20_JPRB*ZCHI_CO2/CHI_MLS(2,K_JP(JLON,JLAY)+1)
141      IF (ZRATCO2 > 3.0_JPRB) THEN
142         ZADJFAC = 3.0_JPRB+(ZRATCO2-3.0_JPRB)**0.79_JPRB
143         ZADJCOLCO2(JLON,JLAY) = ZADJFAC*CHI_MLS(2,K_JP(JLON,JLAY)+1)*P_COLDRY(JLON,JLAY)*1.E-20_JPRB
144      ELSE
145         ZADJCOLCO2(JLON,JLAY) = P_COLCO2(JLON,JLAY)
146      ENDIF
147
148
149      Z_SPECCOMB_PLANCK(JLAY) = P_COLH2O(JLON,JLAY)+ZREFRAT_PLANCK_A*P_COLO3(JLON,JLAY)
150      Z_SPECPARM_PLANCK = P_COLH2O(JLON,JLAY)/Z_SPECCOMB_PLANCK(JLAY)
151      IF (Z_SPECPARM_PLANCK >= P_ONEMINUS) Z_SPECPARM_PLANCK=P_ONEMINUS
152      Z_SPECMULT_PLANCK = 8._JPRB*Z_SPECPARM_PLANCK
153      JPL= 1 + INT(Z_SPECMULT_PLANCK)
154      Z_FPL = MOD(Z_SPECMULT_PLANCK,1.0_JPRB)
155
156      IND0(JLAY) = ((K_JP(JLON,JLAY)-1)*5+(K_JT(JLON,JLAY)-1))*NSPA(7) + JS
157      IND1(JLAY) = (K_JP(JLON,JLAY)*5+(K_JT1(JLON,JLAY)-1))*NSPA(7) + JS1
158      INDS(JLAY) = K_INDSELF(JLON,JLAY)
159      INDF(JLAY) = K_INDFOR(JLON,JLAY)
160      INDM(JLAY) = KINDMINOR(JLON,JLAY)
161
162  IF (Z_SPECPARM < 0.125_JPRB) THEN
163            ZP = Z_FS - 1
164            ZP4 = ZP**4
165            ZFK0 = ZP4
166            ZFK1 = 1 - ZP - 2.0_JPRB*ZP4
167            ZFK2 = ZP + ZP4
168            Z_FAC000 = ZFK0*P_FAC00(JLON,JLAY)
169            Z_FAC100 = ZFK1*P_FAC00(JLON,JLAY)
170            Z_FAC200 = ZFK2*P_FAC00(JLON,JLAY)
171            Z_FAC010 = ZFK0*P_FAC10(JLON,JLAY)
172            Z_FAC110 = ZFK1*P_FAC10(JLON,JLAY)
173            Z_FAC210 = ZFK2*P_FAC10(JLON,JLAY)
174      ELSEIF (Z_SPECPARM > 0.875_JPRB) THEN
175            ZP = -Z_FS
176            ZP4 = ZP**4
177            ZFK0 = ZP4
178            ZFK1 = 1 - ZP - 2.0_JPRB*ZP4
179            ZFK2 = ZP + ZP4
180            Z_FAC000 = ZFK0*P_FAC00(JLON,JLAY)
181            Z_FAC100 = ZFK1*P_FAC00(JLON,JLAY)
182            Z_FAC200 = ZFK2*P_FAC00(JLON,JLAY)
183            Z_FAC010 = ZFK0*P_FAC10(JLON,JLAY)
184            Z_FAC110 = ZFK1*P_FAC10(JLON,JLAY)
185            Z_FAC210 = ZFK2*P_FAC10(JLON,JLAY)
186      ELSE
187            Z_FAC000 = (1._JPRB - Z_FS) * P_FAC00(JLON,JLAY)
188            Z_FAC010 = (1._JPRB - Z_FS) * P_FAC10(JLON,JLAY)
189            Z_FAC100 = Z_FS * P_FAC00(JLON,JLAY)
190            Z_FAC110 = Z_FS * P_FAC10(JLON,JLAY)
191      ENDIF
192      IF (Z_SPECPARM1 < 0.125_JPRB) THEN
193            ZP = Z_FS1 - 1
194            ZP4 = ZP**4
195            ZFK0 = ZP4
196            ZFK1 = 1 - ZP - 2.0_JPRB*ZP4
197            ZFK2 = ZP + ZP4
198            Z_FAC001 = ZFK0*P_FAC01(JLON,JLAY)
199            Z_FAC101 = ZFK1*P_FAC01(JLON,JLAY)
200            Z_FAC201 = ZFK2*P_FAC01(JLON,JLAY)
201            Z_FAC011 = ZFK0*P_FAC11(JLON,JLAY)
202            Z_FAC111 = ZFK1*P_FAC11(JLON,JLAY)
203            Z_FAC211 = ZFK2*P_FAC11(JLON,JLAY)
204      ELSEIF (Z_SPECPARM1 > 0.875_JPRB) THEN
205            ZP = -Z_FS1
206            ZP4 = ZP**4
207            ZFK0 = ZP4
208            ZFK1 = 1 - ZP - 2.0_JPRB*ZP4
209            ZFK2 = ZP + ZP4
210            Z_FAC001 = ZFK0*P_FAC01(JLON,JLAY)
211            Z_FAC101 = ZFK1*P_FAC01(JLON,JLAY)
212            Z_FAC201 = ZFK2*P_FAC01(JLON,JLAY)
213            Z_FAC011 = ZFK0*P_FAC11(JLON,JLAY)
214            Z_FAC111 = ZFK1*P_FAC11(JLON,JLAY)
215            Z_FAC211 = ZFK2*P_FAC11(JLON,JLAY)
216      ELSE
217            Z_FAC001 = (1._JPRB - Z_FS1) * P_FAC01(JLON,JLAY)
218            Z_FAC011 = (1._JPRB - Z_FS1) * P_FAC11(JLON,JLAY)
219            Z_FAC101 = Z_FS1 * P_FAC01(JLON,JLAY)
220            Z_FAC111 = Z_FS1 * P_FAC11(JLON,JLAY)
221      ENDIF
222
223!-- DS_000515
224!CDIR UNROLL=NG7
225      DO IG = 1, NG7
226!-- DS_000515
227         ZTAUSELF = P_SELFFAC(JLON,JLAY)* (SELFREF(INDS(JLAY),IG) + P_SELFFRAC(JLON,JLAY) * &
228          &       (SELFREF(INDS(JLAY)+1,IG) - SELFREF(INDS(JLAY),IG)))
229         ZTAUFOR = P_FORFAC(JLON,JLAY) * (FORREF(INDF(JLAY),IG) + P_FORFRAC(JLON,JLAY) * &
230          &       (FORREF(INDF(JLAY)+1,IG) - FORREF(INDF(JLAY),IG)))
231         ZCO2M1 = KA_MCO2(JMCO2,INDM(JLAY),IG) + Z_FMCO2 * &
232          &       (KA_MCO2(JMCO2+1,INDM(JLAY),IG) - KA_MCO2(JMCO2,INDM(JLAY),IG))
233         ZCO2M2 = KA_MCO2(JMCO2,INDM(JLAY)+1,IG) + Z_FMCO2 * &
234          &       (KA_MCO2(JMCO2+1,INDM(JLAY)+1,IG) - KA_MCO2(JMCO2,INDM(JLAY)+1,IG))
235         ZABSCO2 = ZCO2M1 + PMINORFRAC(JLON,JLAY) * (ZCO2M2 - ZCO2M1)
236
237            IF (Z_SPECPARM < 0.125_JPRB) THEN
238               ZTAU_MAJOR = Z_SPECCOMB(JLAY) * &
239                 &   (Z_FAC000 * ABSA(IND0(JLAY),IG) + &
240                 &   Z_FAC100 * ABSA(IND0(JLAY)+1,IG) + &
241                 &   Z_FAC200 * ABSA(IND0(JLAY)+2,IG) + &
242                 &   Z_FAC010 * ABSA(IND0(JLAY)+9,IG) + &
243                 &   Z_FAC110 * ABSA(IND0(JLAY)+10,IG) + &
244                 &   Z_FAC210 * ABSA(IND0(JLAY)+11,IG))
245            ELSEIF (Z_SPECPARM > 0.875_JPRB) THEN
246               ZTAU_MAJOR = Z_SPECCOMB(JLAY) * &
247                 &   (Z_FAC200 * ABSA(IND0(JLAY)-1,IG) + &
248                 &   Z_FAC100 * ABSA(IND0(JLAY),IG) + &
249                 &   Z_FAC000 * ABSA(IND0(JLAY)+1,IG) + &
250                 &   Z_FAC210 * ABSA(IND0(JLAY)+8,IG) + &
251                 &   Z_FAC110 * ABSA(IND0(JLAY)+9,IG) + &
252                 &   Z_FAC010 * ABSA(IND0(JLAY)+10,IG))
253            ELSE
254               ZTAU_MAJOR = Z_SPECCOMB(JLAY) * &
255                 &   (Z_FAC000 * ABSA(IND0(JLAY),IG) + &
256                 &   Z_FAC100 * ABSA(IND0(JLAY)+1,IG) + &
257                 &   Z_FAC010 * ABSA(IND0(JLAY)+9,IG) + &
258                 &   Z_FAC110 * ABSA(IND0(JLAY)+10,IG))
259            ENDIF
260
261            IF (Z_SPECPARM1 < 0.125_JPRB) THEN
262               ZTAU_MAJOR1 = Z_SPECCOMB1(JLAY) * &
263                &    (Z_FAC001 * ABSA(IND1(JLAY),IG) + &
264                &    Z_FAC101 * ABSA(IND1(JLAY)+1,IG) + &
265                &    Z_FAC201 * ABSA(IND1(JLAY)+2,IG) + &
266                &    Z_FAC011 * ABSA(IND1(JLAY)+9,IG) + &
267                &    Z_FAC111 * ABSA(IND1(JLAY)+10,IG) + &
268                &    Z_FAC211 * ABSA(IND1(JLAY)+11,IG))
269            ELSEIF (Z_SPECPARM1 > 0.875_JPRB) THEN
270               ZTAU_MAJOR1 = Z_SPECCOMB1(JLAY) * &
271                &    (Z_FAC201 * ABSA(IND1(JLAY)-1,IG) + &
272                &    Z_FAC101 * ABSA(IND1(JLAY),IG) + &
273                &    Z_FAC001 * ABSA(IND1(JLAY)+1,IG) + &
274                &    Z_FAC211 * ABSA(IND1(JLAY)+8,IG) + &
275                &    Z_FAC111 * ABSA(IND1(JLAY)+9,IG) + &
276                &    Z_FAC011 * ABSA(IND1(JLAY)+10,IG))
277            ELSE
278               ZTAU_MAJOR1 = Z_SPECCOMB1(JLAY) * &
279                &    (Z_FAC001 * ABSA(IND1(JLAY),IG) +  &
280                &    Z_FAC101 * ABSA(IND1(JLAY)+1,IG) + &
281                &    Z_FAC011 * ABSA(IND1(JLAY)+9,IG) + &
282                &    Z_FAC111 * ABSA(IND1(JLAY)+10,IG))
283            ENDIF
284
285
286        P_TAU(JLON,NGS6+IG,JLAY) = ZTAU_MAJOR + ZTAU_MAJOR1 &
287               & + ZTAUSELF + ZTAUFOR &
288               & + ZADJCOLCO2(JLON,JLAY)*ZABSCO2 &
289               & + P_TAUAERL(JLON,JLAY,7) 
290        PFRAC(JLON,NGS6+IG,JLAY) = FRACREFA(IG,JPL) + Z_FPL *&
291         & (FRACREFA(IG,JPL+1) - FRACREFA(IG,JPL)) 
292      ENDDO
293    ENDIF
294
295    IF (JLAY > K_LAYTROP(JLON)) THEN
296
297! In atmospheres where the amount of CO2 is too great to be considered
298! a minor species, adjust the column amount of CO2 by an empirical factor
299! to obtain the proper contribution.
300      ZCHI_CO2 = P_COLCO2(JLON,JLAY)/P_COLDRY(JLON,JLAY)
301      ZRATCO2 = 1.E20_JPRB*ZCHI_CO2/CHI_MLS(2,K_JP(JLON,JLAY)+1)
302      IF (ZRATCO2 > 3.0_JPRB) THEN
303         ZADJFAC = 2.0_JPRB+(ZRATCO2-2.0_JPRB)**0.79_JPRB
304         ZADJCOLCO2(JLON,JLAY) = ZADJFAC*CHI_MLS(2,K_JP(JLON,JLAY)+1)*P_COLDRY(JLON,JLAY)*1.E-20_JPRB
305      ELSE
306         ZADJCOLCO2(JLON,JLAY) = P_COLCO2(JLON,JLAY)
307      ENDIF
308
309
310      IND0(JLAY) = ((K_JP(JLON,JLAY)-13)*5+(K_JT(JLON,JLAY)-1))*NSPB(7) + 1
311      IND1(JLAY) = ((K_JP(JLON,JLAY)-12)*5+(K_JT1(JLON,JLAY)-1))*NSPB(7) + 1
312      INDM(JLAY) = KINDMINOR(JLON,JLAY)
313!-- JJM_000517
314!CDIR UNROLL=NG7
315      DO IG = 1, NG7
316!-- JJM_000517
317        ZABSCO2 = KB_MCO2(INDM(JLAY),IG) + PMINORFRAC(JLON,JLAY) * &
318         &       (KB_MCO2(INDM(JLAY)+1,IG) - KB_MCO2(INDM(JLAY),IG))
319
320        P_TAU(JLON,NGS6+IG,JLAY) = P_COLO3(JLON,JLAY) *&
321         & (P_FAC00(JLON,JLAY) * ABSB(IND0(JLAY)  ,IG) +&
322         & P_FAC10(JLON,JLAY) * ABSB(IND0(JLAY)+1,IG) +&
323         & P_FAC01(JLON,JLAY) * ABSB(IND1(JLAY)  ,IG) +&
324         & P_FAC11(JLON,JLAY) * ABSB(IND1(JLAY)+1,IG))&
325         & + ZADJCOLCO2(JLON,JLAY) * ZABSCO2 &
326         & + P_TAUAERL(JLON,JLAY,7) 
327        PFRAC(JLON,NGS6+IG,JLAY) = FRACREFB(IG)
328      ENDDO
329
330! Empirical modification to code to improve stratospheric cooling rates
331! for o3.  Revised to apply weighting for g-point reduction in this band.
332
333         P_TAU(JLON,ngs6+6,JLAY)=P_TAU(JLON,ngs6+6,JLAY)*0.92_JPRB
334         P_TAU(JLON,ngs6+7,JLAY)=P_TAU(JLON,ngs6+7,JLAY)*0.88_JPRB
335         P_TAU(JLON,ngs6+8,JLAY)=P_TAU(JLON,ngs6+8,JLAY)*1.07_JPRB
336         P_TAU(JLON,ngs6+9,JLAY)=P_TAU(JLON,ngs6+9,JLAY)*1.1_JPRB
337         P_TAU(JLON,ngs6+10,JLAY)=P_TAU(JLON,ngs6+10,JLAY)*0.99_JPRB
338         P_TAU(JLON,ngs6+11,JLAY)=P_TAU(JLON,ngs6+11,JLAY)*0.855_JPRB
339
340
341
342    ENDIF
343  ENDDO
344ENDDO
345
346IF (LHOOK) CALL DR_HOOK('RRTM_TAUMOL7',1,ZHOOK_HANDLE)
347
348END ASSOCIATE
349END SUBROUTINE RRTM_TAUMOL7
Note: See TracBrowser for help on using the repository browser.