1 | ! |
---|
2 | ! $Id: recmwf_aero.F90 3525 2019-05-28 12:52:20Z fhourdin $ |
---|
3 | ! |
---|
4 | !OPTIONS XOPT(NOEVAL) |
---|
5 | SUBROUTINE RECMWF_AERO (KST, KEND, KPROMA, KTDIA , KLEV,& |
---|
6 | & KMODE,& |
---|
7 | & PALBD , PALBP , PAPRS , PAPRSF , PCCO2 , PCLFR,& |
---|
8 | & PQO3 , PAER , PDP , PEMIS , PMU0,& |
---|
9 | & PQ , PQS , PQIWP , PQLWP , PSLM , PT , PTS,& |
---|
10 | & PREF_LIQ, PREF_ICE,& |
---|
11 | !--OB |
---|
12 | & PREF_LIQ_PI, PREF_ICE_PI,& |
---|
13 | !--fin |
---|
14 | & PEMTD , PEMTU , PTRSO,& |
---|
15 | & PTH , PCTRSO, PCEMTR, PTRSOD,& |
---|
16 | & PLWFC, PLWFT, PSWFC, PSWFT, PSFSWDIR, PSFSWDIF,& |
---|
17 | & PFSDNN, PFSDNV,& |
---|
18 | & PPIZA_TOT,PCGA_TOT,PTAU_TOT, & |
---|
19 | !--OB |
---|
20 | & PPIZA_NAT,PCGA_NAT,PTAU_NAT, & |
---|
21 | !--fin OB |
---|
22 | !--C.Kleinschmitt |
---|
23 | & PTAU_LW_TOT, PTAU_LW_NAT, & |
---|
24 | !--end |
---|
25 | & PFLUX,PFLUC,& |
---|
26 | & PFSDN ,PFSUP , PFSCDN , PFSCUP, PFSCCDN, PFSCCUP, PFLCCDN, PFLCCUP,& |
---|
27 | !--OB diagnostics |
---|
28 | & PTOPSWADAERO,PSOLSWADAERO,& |
---|
29 | & PTOPSWAD0AERO,PSOLSWAD0AERO,& |
---|
30 | & PTOPSWAIAERO,PSOLSWAIAERO,& |
---|
31 | & PTOPSWCFAERO,PSOLSWCFAERO,& |
---|
32 | & PSWADAERO,& !--NL |
---|
33 | !--LW diagnostics CK |
---|
34 | & PTOPLWADAERO,PSOLLWADAERO,& |
---|
35 | & PTOPLWAD0AERO,PSOLLWAD0AERO,& |
---|
36 | & PTOPLWAIAERO,PSOLLWAIAERO,& |
---|
37 | & PLWADAERO,& !--NL |
---|
38 | !..end |
---|
39 | & ok_ade, ok_aie, ok_volcan, flag_aerosol,flag_aerosol_strat,flag_aer_feedback) |
---|
40 | !--fin |
---|
41 | |
---|
42 | !**** *RECMWF* - METEO-FRANCE RADIATION INTERFACE TO ECMWF RADIATION SCHEME |
---|
43 | |
---|
44 | ! PURPOSE. |
---|
45 | ! -------- |
---|
46 | ! SIMPLE INTERFACE TO RADLSW (NO INTERPOLATION) |
---|
47 | |
---|
48 | !** INTERFACE. |
---|
49 | ! ---------- |
---|
50 | |
---|
51 | ! EXPLICIT ARGUMENTS : |
---|
52 | ! -------------------- |
---|
53 | ! KST : START INDEX OF DATA IN KPROMA-LONG VECTOR |
---|
54 | ! KEND : END INDEX OF DATA IN KPROMA-LONG VECTOR |
---|
55 | ! KPROMA : VECTOR LENGTH |
---|
56 | ! KTDIA : INDEX OF TOP LEVEL FROM WHICH COMPUTATIONS ARE ACTIVE |
---|
57 | ! KLEV : NUMBER OF LEVELS |
---|
58 | ! PAER : (KPROMA,KLEV ,6) ; OPTICAL THICKNESS OF THE AEROSOLS |
---|
59 | ! PALBD : (KPROMA,NSW) ; DIFFUSE ALBEDO IN THE 2 SW INTERVALS |
---|
60 | ! PALBP : (KPROMA,NSW) ; PARALLEL ALBEDO IN THE 2 SW INTERVALS |
---|
61 | ! PAPRS : (KPROMA,KLEV+1) ; HALF LEVEL PRESSURE |
---|
62 | ! PAPRSF : (KPROMA,KLEV ) ; FULL LEVEL PRESSURE |
---|
63 | ! PCCO2 : ; CONCENTRATION IN CO2 (PA/PA) |
---|
64 | ! PCLFR : (KPROMA,KLEV ) ; CLOUD FRACTIONAL COVER |
---|
65 | ! PQO3 : (KPROMA,KLEV ) ; OZONE MIXING RATIO (MASS) |
---|
66 | ! PDP : (KPROMA,KLEV) ; LAYER PRESSURE THICKNESS |
---|
67 | ! PEMIS : (KPROMA) ; SURFACE EMISSIVITY |
---|
68 | ! PMU0 : (KPROMA) ; SOLAR ANGLE |
---|
69 | ! PQ : (KPROMA,KLEV ) ; SPECIFIC HUMIDITY PA/PA |
---|
70 | ! PQS : (KPROMA,KLEV ) ; SATURATION SPECIFIC HUMIDITY PA/PA |
---|
71 | ! PQIWP : (KPROMA,KLEV ) ; ICE WATER KG/KG |
---|
72 | ! PQLWP : (KPROMA,KLEV ) ; LIQUID WATER KG/KG |
---|
73 | ! PSLM : (KPROMA) ; LAND-SEA MASK |
---|
74 | ! PT : (KPROMA,KLEV) ; FULL LEVEL TEMPERATURE |
---|
75 | ! PTS : (KPROMA) ; SURFACE TEMPERATURE |
---|
76 | ! PPIZA_TOT : (KPROMA,KLEV,NSW); Single scattering albedo of total aerosol |
---|
77 | ! PCGA_TOT : (KPROMA,KLEV,NSW); Assymetry factor for total aerosol |
---|
78 | ! PTAU_TOT: (KPROMA,KLEV,NSW) ; Optical depth of total aerosol |
---|
79 | ! PREF_LIQ (KPROMA,KLEV) ; Liquid droplet radius (um) - present-day |
---|
80 | ! PREF_ICE (KPROMA,KLEV) ; Ice crystal radius (um) - present-day |
---|
81 | !--OB |
---|
82 | ! PREF_LIQ_PI (KPROMA,KLEV) ; Liquid droplet radius (um) - pre-industrial |
---|
83 | ! PREF_ICE_PI (KPROMA,KLEV) ; Ice crystal radius (um) - pre-industrial |
---|
84 | ! ok_ade---input-L- apply the Aerosol Direct Effect or not? |
---|
85 | ! ok_aie---input-L- apply the Aerosol Indirect Effect or not? |
---|
86 | ! ok_volcan-input-L- activate volcanic diags (SW heat & LW cool rate, SW & LW flux) |
---|
87 | ! flag_aerosol-input-I- aerosol flag from 0 to 7 |
---|
88 | ! flag_aerosol_strat-input-I- use stratospheric aerosols flag (T/F) |
---|
89 | ! flag_aer_feedback-input-I- use aerosols radiative effect flag (T/F) |
---|
90 | ! PPIZA_NAT : (KPROMA,KLEV,NSW); Single scattering albedo of natural aerosol |
---|
91 | ! PCGA_NAT : (KPROMA,KLEV,NSW); Assymetry factor for natural aerosol |
---|
92 | ! PTAU_NAT: (KPROMA,KLEV,NSW) ; Optical depth of natural aerosol |
---|
93 | ! PTAU_LW_TOT (KPROMA,KLEV,NLW); LW Optical depth of total aerosols |
---|
94 | ! PTAU_LW_NAT (KPROMA,KLEV,NLW); LW Optical depth of natural aerosols |
---|
95 | !--fin OB |
---|
96 | |
---|
97 | ! ==== OUTPUTS === |
---|
98 | ! PEMTD (KPROMA,KLEV+1) ; TOTAL DOWNWARD LONGWAVE EMISSIVITY |
---|
99 | ! PEMTU (KPROMA,KLEV+1) ; TOTAL UPWARD LONGWAVE EMISSIVITY |
---|
100 | ! PTRSO (KPROMA,KLEV+1) ; TOTAL SHORTWAVE TRANSMISSIVITY |
---|
101 | ! PTH (KPROMA,KLEV+1) ; HALF LEVEL TEMPERATURE |
---|
102 | ! PCTRSO(KPROMA,2) ; CLEAR-SKY SHORTWAVE TRANSMISSIVITY |
---|
103 | ! PCEMTR(KPROMA,2) ; CLEAR-SKY NET LONGWAVE EMISSIVITY |
---|
104 | ! PTRSOD(KPROMA) ; TOTAL-SKY SURFACE SW TRANSMISSITY |
---|
105 | ! PLWFC (KPROMA,2) ; CLEAR-SKY LONGWAVE FLUXES |
---|
106 | ! PLWFT (KPROMA,KLEV+1) ; TOTAL-SKY LONGWAVE FLUXES |
---|
107 | ! PSWFC (KPROMA,2) ; CLEAR-SKY SHORTWAVE FLUXES |
---|
108 | ! PSWFT (KPROMA,KLEV+1) ; TOTAL-SKY SHORTWAVE FLUXES |
---|
109 | ! Ajout flux LW et SW montants et descendants, et ciel clair (MPL 19.12.08) |
---|
110 | ! PFLUX (KPROMA,2,KLEV+1) ; LW total sky flux (1=up, 2=down) |
---|
111 | ! PFLUC (KPROMA,2,KLEV+1) ; LW clear sky flux (1=up, 2=down) |
---|
112 | ! PFSDN(KPROMA,KLEV+1) ; SW total sky flux down |
---|
113 | ! PFSUP(KPROMA,KLEV+1) ; SW total sky flux up |
---|
114 | ! PFSCDN(KPROMA,KLEV+1) ; SW clear sky flux down |
---|
115 | ! PFSCUP(KPROMA,KLEV+1) ; SW clear sky flux up |
---|
116 | ! PFSCCDN(KPROMA,KLEV+1) ; SW clear sky clean (no aerosol) flux down |
---|
117 | ! PFSCCUP(KPROMA,KLEV+1) ; SW clear sky clean (no aerosol) flux up |
---|
118 | ! PFLCCDN(KPROMA,KLEV+1) ; LW clear sky clean (no aerosol) flux down |
---|
119 | ! PFLCCUP(KPROMA,KLEV+1) ; LW clear sky clean (no aerosol) flux up |
---|
120 | |
---|
121 | |
---|
122 | ! IMPLICIT ARGUMENTS : NONE |
---|
123 | ! -------------------- |
---|
124 | |
---|
125 | ! METHOD. |
---|
126 | ! ------- |
---|
127 | ! SEE DOCUMENTATION |
---|
128 | |
---|
129 | ! EXTERNALS. |
---|
130 | ! ---------- |
---|
131 | |
---|
132 | ! REFERENCE. |
---|
133 | ! ---------- |
---|
134 | ! ECMWF RESEARCH DEPARTMENT DOCUMENTATION OF THE IFS |
---|
135 | |
---|
136 | ! AUTHORS. |
---|
137 | ! -------- |
---|
138 | ! ORIGINAL BY B. RITTER *ECMWF* 83-10-13 |
---|
139 | ! REWRITING FOR IFS BY J.-J. MORCRETTE 94-11-15 |
---|
140 | ! 96-11: Ph. Dandin. Meteo-France |
---|
141 | ! REWRITING FOR DM BY J.PH. PIEDELIEVRE 1998-07 |
---|
142 | ! Duplication of RFMR to use present (cy25) ECMWF radiation scheme : Y. Bouteloup 09-2003 |
---|
143 | ! Use of 6 aerosols & introduce NSW : F. Bouyssel 09-2004 |
---|
144 | ! 04-11-18 : 4 New arguments for AROME : Y. Seity |
---|
145 | ! 2005-10-10 Y. Seity : 3 optional arguments for dust optical properties |
---|
146 | ! JJMorcrette 20060721 PP of clear-sky PAR and TOA incident solar radiation (ECMWF) |
---|
147 | ! Olivier Boucher: added LMD radiation diagnostics 2014-03 |
---|
148 | |
---|
149 | !----------------------------------------------------------------------- |
---|
150 | |
---|
151 | USE PARKIND1 ,ONLY : JPIM ,JPRB |
---|
152 | USE YOMHOOK ,ONLY : LHOOK, DR_HOOK |
---|
153 | USE YOEAERD , ONLY : RCAEROS |
---|
154 | USE YOMCST , ONLY : RMD ,RMO3 |
---|
155 | USE YOMPHY3 , ONLY : RII0 |
---|
156 | USE YOERAD , ONLY : NLW, NAER, RCCNLND ,RCCNSEA |
---|
157 | USE YOERAD , ONLY : NAER, RCCNLND ,RCCNSEA |
---|
158 | USE YOERDU , ONLY : REPSCQ |
---|
159 | USE YOMGEM , ONLY : NGPTOT |
---|
160 | USE YOERDI , ONLY : RRAE ,REPCLC ,REPH2O |
---|
161 | USE YOMARPHY , ONLY : LRDUST |
---|
162 | USE phys_output_mod, ONLY : swaerofree_diag, swaero_diag |
---|
163 | |
---|
164 | !----------------------------------------------------------------------- |
---|
165 | |
---|
166 | !* 0.1 ARGUMENTS. |
---|
167 | ! ---------- |
---|
168 | |
---|
169 | IMPLICIT NONE |
---|
170 | INCLUDE "clesphys.h" |
---|
171 | |
---|
172 | INTEGER(KIND=JPIM),INTENT(IN) :: KPROMA |
---|
173 | INTEGER(KIND=JPIM),INTENT(IN) :: KLEV |
---|
174 | INTEGER(KIND=JPIM),INTENT(IN) :: KST |
---|
175 | INTEGER(KIND=JPIM),INTENT(IN) :: KEND |
---|
176 | INTEGER(KIND=JPIM) :: KTDIA ! Argument NOT used |
---|
177 | INTEGER(KIND=JPIM),INTENT(IN) :: KMODE |
---|
178 | REAL(KIND=JPRB) ,INTENT(IN) :: PALBD(KPROMA,NSW) |
---|
179 | REAL(KIND=JPRB) ,INTENT(IN) :: PALBP(KPROMA,NSW) |
---|
180 | REAL(KIND=JPRB) ,INTENT(IN) :: PAPRS(KPROMA,KLEV+1) |
---|
181 | REAL(KIND=JPRB) ,INTENT(IN) :: PAPRSF(KPROMA,KLEV) |
---|
182 | REAL(KIND=JPRB) ,INTENT(IN) :: PCCO2 |
---|
183 | REAL(KIND=JPRB) ,INTENT(IN) :: PCLFR(KPROMA,KLEV) |
---|
184 | REAL(KIND=JPRB) ,INTENT(IN) :: PQO3(KPROMA,KLEV) |
---|
185 | REAL(KIND=JPRB) ,INTENT(IN) :: PAER(KPROMA,KLEV,6) |
---|
186 | REAL(KIND=JPRB) ,INTENT(IN) :: PDP(KPROMA,KLEV) |
---|
187 | REAL(KIND=JPRB) ,INTENT(IN) :: PEMIS(KPROMA) |
---|
188 | REAL(KIND=JPRB) ,INTENT(IN) :: PMU0(KPROMA) |
---|
189 | REAL(KIND=JPRB) ,INTENT(IN) :: PQ(KPROMA,KLEV) |
---|
190 | REAL(KIND=JPRB) ,INTENT(IN) :: PQS(KPROMA,KLEV) |
---|
191 | REAL(KIND=JPRB) ,INTENT(IN) :: PQIWP(KPROMA,KLEV) |
---|
192 | REAL(KIND=JPRB) ,INTENT(IN) :: PQLWP(KPROMA,KLEV) |
---|
193 | REAL(KIND=JPRB) ,INTENT(IN) :: PSLM(KPROMA) |
---|
194 | REAL(KIND=JPRB) ,INTENT(IN) :: PT(KPROMA,KLEV) |
---|
195 | REAL(KIND=JPRB) ,INTENT(IN) :: PTS(KPROMA) |
---|
196 | REAL(KIND=JPRB) ,INTENT(IN) :: PPIZA_TOT(KPROMA,KLEV,NSW) |
---|
197 | REAL(KIND=JPRB) ,INTENT(IN) :: PCGA_TOT(KPROMA,KLEV,NSW) |
---|
198 | REAL(KIND=JPRB) ,INTENT(IN) :: PTAU_TOT(KPROMA,KLEV,NSW) |
---|
199 | !--OB |
---|
200 | REAL(KIND=JPRB) ,INTENT(IN) :: PPIZA_NAT(KPROMA,KLEV,NSW) |
---|
201 | REAL(KIND=JPRB) ,INTENT(IN) :: PCGA_NAT(KPROMA,KLEV,NSW) |
---|
202 | REAL(KIND=JPRB) ,INTENT(IN) :: PTAU_NAT(KPROMA,KLEV,NSW) |
---|
203 | REAL(KIND=JPRB) :: PPIZA_ZERO(KPROMA,KLEV,NSW) |
---|
204 | REAL(KIND=JPRB) :: PCGA_ZERO(KPROMA,KLEV,NSW) |
---|
205 | REAL(KIND=JPRB) :: PTAU_ZERO(KPROMA,KLEV,NSW) |
---|
206 | !--fin |
---|
207 | !--C.Kleinschmitt |
---|
208 | REAL(KIND=JPRB) :: PTAU_LW_ZERO(KPROMA,KLEV,NLW) |
---|
209 | REAL(KIND=JPRB) ,INTENT(IN) :: PTAU_LW_TOT(KPROMA,KLEV,NLW) |
---|
210 | REAL(KIND=JPRB) ,INTENT(IN) :: PTAU_LW_NAT(KPROMA,KLEV,NLW) |
---|
211 | !--end |
---|
212 | REAL(KIND=JPRB) ,INTENT(IN) :: PREF_LIQ(KPROMA,KLEV) |
---|
213 | REAL(KIND=JPRB) ,INTENT(IN) :: PREF_ICE(KPROMA,KLEV) |
---|
214 | !--OB |
---|
215 | REAL(KIND=JPRB) ,INTENT(IN) :: PREF_LIQ_PI(KPROMA,KLEV) |
---|
216 | REAL(KIND=JPRB) ,INTENT(IN) :: PREF_ICE_PI(KPROMA,KLEV) |
---|
217 | LOGICAL, INTENT(in) :: ok_ade, ok_aie ! switches whether to use aerosol direct (indirect) effects or not |
---|
218 | LOGICAL, INTENT(in) :: ok_volcan ! produce volcanic diags (SW/LW heat flux and rate) |
---|
219 | INTEGER, INTENT(in) :: flag_aerosol ! takes value 0 (no aerosol) or 1 to 6 (aerosols) |
---|
220 | LOGICAL, INTENT(in) :: flag_aerosol_strat ! use stratospheric aerosols |
---|
221 | LOGICAL, INTENT(in) :: flag_aer_feedback ! use aerosols radiative feedback |
---|
222 | REAL(KIND=JPRB) ,INTENT(out) :: PTOPSWADAERO(KPROMA), PSOLSWADAERO(KPROMA) ! Aerosol direct forcing at TOA and surface |
---|
223 | REAL(KIND=JPRB) ,INTENT(OUT) :: PTOPSWAD0AERO(KPROMA), PSOLSWAD0AERO(KPROMA) ! Aerosol direct forcing at TOA and surface |
---|
224 | REAL(KIND=JPRB) ,INTENT(OUT) :: PTOPSWAIAERO(KPROMA), PSOLSWAIAERO(KPROMA) ! ditto, indirect |
---|
225 | REAL(KIND=JPRB) ,INTENT(OUT) :: PTOPSWCFAERO(KPROMA,3), PSOLSWCFAERO(KPROMA,3) !--do we keep this ? |
---|
226 | !--fin |
---|
227 | !--NL |
---|
228 | REAL(KIND=JPRB) ,INTENT(OUT) :: PSWADAERO(KPROMA, KLEV+1) ! SW Aerosol direct forcing |
---|
229 | REAL(KIND=JPRB) ,INTENT(OUT) :: PLWADAERO(KPROMA, KLEV+1) ! LW Aerosol direct forcing |
---|
230 | !--CK |
---|
231 | REAL(KIND=JPRB) ,INTENT(out) :: PTOPLWADAERO(KPROMA), PSOLLWADAERO(KPROMA) ! LW Aerosol direct forcing at TOA + surface |
---|
232 | REAL(KIND=JPRB) ,INTENT(OUT) :: PTOPLWAD0AERO(KPROMA), PSOLLWAD0AERO(KPROMA) ! LW Aerosol direct forcing at TOA + surface |
---|
233 | REAL(KIND=JPRB) ,INTENT(OUT) :: PTOPLWAIAERO(KPROMA), PSOLLWAIAERO(KPROMA) ! LW Aer. indirect forcing at TOA + surface |
---|
234 | !--end |
---|
235 | REAL(KIND=JPRB) ,INTENT(OUT) :: PEMTD(KPROMA,KLEV+1) |
---|
236 | REAL(KIND=JPRB) ,INTENT(OUT) :: PEMTU(KPROMA,KLEV+1) |
---|
237 | REAL(KIND=JPRB) ,INTENT(OUT) :: PTRSO(KPROMA,KLEV+1) |
---|
238 | REAL(KIND=JPRB) ,INTENT(INOUT) :: PTH(KPROMA,KLEV+1) |
---|
239 | REAL(KIND=JPRB) ,INTENT(OUT) :: PCTRSO(KPROMA,2) |
---|
240 | REAL(KIND=JPRB) ,INTENT(OUT) :: PCEMTR(KPROMA,2) |
---|
241 | REAL(KIND=JPRB) ,INTENT(OUT) :: PTRSOD(KPROMA) |
---|
242 | REAL(KIND=JPRB) ,INTENT(OUT) :: PLWFC(KPROMA,2) |
---|
243 | REAL(KIND=JPRB) ,INTENT(OUT) :: PLWFT(KPROMA,KLEV+1) |
---|
244 | REAL(KIND=JPRB) ,INTENT(OUT) :: PSWFC(KPROMA,2) |
---|
245 | REAL(KIND=JPRB) ,INTENT(OUT) :: PSWFT(KPROMA,KLEV+1) |
---|
246 | REAL(KIND=JPRB) ,INTENT(OUT) :: PSFSWDIR(KPROMA,NSW) |
---|
247 | REAL(KIND=JPRB) ,INTENT(OUT) :: PSFSWDIF(KPROMA,NSW) |
---|
248 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFSDNN(KPROMA) |
---|
249 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFSDNV(KPROMA) |
---|
250 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFLUX(KPROMA,2,KLEV+1) ! LW total sky flux (1=up, 2=down) |
---|
251 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFLUC(KPROMA,2,KLEV+1) ! LW clear sky flux (1=up, 2=down) |
---|
252 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFSDN(KPROMA,KLEV+1) ! SW total sky flux down |
---|
253 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFSUP(KPROMA,KLEV+1) ! SW total sky flux up |
---|
254 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFSCDN(KPROMA,KLEV+1) ! SW clear sky flux down |
---|
255 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFSCUP(KPROMA,KLEV+1) ! SW clear sky flux up |
---|
256 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFSCCDN(KPROMA,KLEV+1) ! SW clear sky clean (no aerosol) flux down |
---|
257 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFSCCUP(KPROMA,KLEV+1) ! SW clear sky clean (no aerosol) flux up |
---|
258 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFLCCDN(KPROMA,KLEV+1) ! LW clear sky clean (no aerosol) flux down |
---|
259 | REAL(KIND=JPRB) ,INTENT(OUT) :: PFLCCUP(KPROMA,KLEV+1) ! LW clear sky clean (no aerosol) flux up |
---|
260 | |
---|
261 | ! ==== COMPUTED IN RADITE === |
---|
262 | ! ------------------------------------------------------------------ |
---|
263 | !* 0.2 LOCAL ARRAYS. |
---|
264 | ! ------------- |
---|
265 | REAL(KIND=JPRB) :: ZRAER (KPROMA,6,KLEV) |
---|
266 | REAL(KIND=JPRB) :: ZRCLC (KPROMA,KLEV) |
---|
267 | REAL(KIND=JPRB) :: ZRMU0 (KPROMA) |
---|
268 | REAL(KIND=JPRB) :: ZRPR (KPROMA,KLEV) |
---|
269 | REAL(KIND=JPRB) :: ZRTI (KPROMA,KLEV) |
---|
270 | REAL(KIND=JPRB) :: ZQLWP (KPROMA,KLEV ) , ZQIWP (KPROMA,KLEV ) |
---|
271 | |
---|
272 | REAL(KIND=JPRB) :: ZPQO3 (KPROMA,KLEV) |
---|
273 | REAL(KIND=JPRB) :: ZQOZ (NGPTOT,KLEV) |
---|
274 | REAL(KIND=JPRB) :: ZQS (KPROMA,KLEV) |
---|
275 | REAL(KIND=JPRB) :: ZQ (KPROMA,KLEV) |
---|
276 | REAL(KIND=JPRB) :: ZEMTD (KPROMA,KLEV+1) |
---|
277 | REAL(KIND=JPRB) :: ZEMTU (KPROMA,KLEV+1) |
---|
278 | REAL(KIND=JPRB) :: ZTRSOC (KPROMA,2) |
---|
279 | REAL(KIND=JPRB) :: ZEMTC (KPROMA,2) |
---|
280 | |
---|
281 | REAL(KIND=JPRB) :: ZNBAS (KPROMA) |
---|
282 | REAL(KIND=JPRB) :: ZNTOP (KPROMA) |
---|
283 | REAL(KIND=JPRB) :: ZQRAIN (KPROMA,KLEV) |
---|
284 | REAL(KIND=JPRB) :: ZQRAINT(KPROMA,KLEV) |
---|
285 | REAL(KIND=JPRB) :: ZCCNL (KPROMA) |
---|
286 | REAL(KIND=JPRB) :: ZCCNO (KPROMA) |
---|
287 | |
---|
288 | ! output of radlsw |
---|
289 | |
---|
290 | REAL(KIND=JPRB) :: ZEMIT (KPROMA) |
---|
291 | REAL(KIND=JPRB) :: ZFCT (KPROMA,KLEV+1) |
---|
292 | REAL(KIND=JPRB) :: ZFLT (KPROMA,KLEV+1) |
---|
293 | REAL(KIND=JPRB) :: ZFCS (KPROMA,KLEV+1) |
---|
294 | REAL(KIND=JPRB) :: ZFLS (KPROMA,KLEV+1) |
---|
295 | REAL(KIND=JPRB) :: ZFRSOD (KPROMA),ZSUDU(KPROMA) |
---|
296 | REAL(KIND=JPRB) :: ZPARF (KPROMA),ZUVDF(KPROMA),ZPARCF(KPROMA),ZTINCF(KPROMA) |
---|
297 | |
---|
298 | INTEGER(KIND=JPIM) :: IBEG, IEND, JK, JL |
---|
299 | |
---|
300 | REAL(KIND=JPRB) :: ZCRAE, ZRII0, ZEMIW(KPROMA) |
---|
301 | REAL(KIND=JPRB) :: ZHOOK_HANDLE |
---|
302 | |
---|
303 | !---aerosol radiative diagnostics |
---|
304 | ! Key to define the aerosol effect acting on climate |
---|
305 | ! OB: AEROSOLFEEDBACK_ACTIVE is now a LOGICAL |
---|
306 | ! TRUE: fluxes use natural and/or anthropogenic aerosols according to ok_ade and ok_aie, DEFAULT |
---|
307 | ! FALSE: fluxes use no aerosols (case 1) |
---|
308 | ! to be used only for maintaining bit reproducibility with aerosol diagnostics activated |
---|
309 | LOGICAL :: AEROSOLFEEDBACK_ACTIVE ! now externalized from .def files |
---|
310 | |
---|
311 | !OB - Fluxes including aerosol effects |
---|
312 | ! | direct effect |
---|
313 | !ind effect | no aerosol NATural TOTal |
---|
314 | !standard | 5 |
---|
315 | !natural (PI) | 1 3 |
---|
316 | !total (PD) | 2 4 |
---|
317 | ! so we need which case when ? |
---|
318 | ! if flag_aerosol is on |
---|
319 | ! ok_ade and ok_aie = 4-2, 4-3 and 4 to proceed |
---|
320 | ! ok_ade and not ok_aie = 3-1 and 3 to proceed |
---|
321 | ! not ok_ade and ok_aie = 2-1 and 2 to proceed |
---|
322 | ! not ok_ade and not ok_aie = 1 to proceed |
---|
323 | ! therefore the cases have the following corresponding switches |
---|
324 | ! 1 = not ok_ade and not ok_aie OR not ok_ade and ok_aie and swaero_diag OR ok_ade and not ok_aie and swaero_diag |
---|
325 | ! 2 = not ok_ade and ok_aie OR ok_aie and ok_ade and swaero_diag |
---|
326 | ! 3 = ok_ade and not ok_aie OR ok_aie and ok_ade and swaero_diag |
---|
327 | ! 4 = ok_ade and ok_aie |
---|
328 | ! 5 = no aerosol feedback wanted or no aerosol at all |
---|
329 | ! if they are called in this order then the correct call is used to proceed |
---|
330 | |
---|
331 | REAL(KIND=JPRB) :: ZFSUP_AERO(KPROMA,KLEV+1,5) |
---|
332 | REAL(KIND=JPRB) :: ZFSDN_AERO(KPROMA,KLEV+1,5) |
---|
333 | REAL(KIND=JPRB) :: ZFSUP0_AERO(KPROMA,KLEV+1,5) |
---|
334 | REAL(KIND=JPRB) :: ZFSDN0_AERO(KPROMA,KLEV+1,5) |
---|
335 | !--LW (CK): |
---|
336 | REAL(KIND=JPRB) :: LWUP_AERO(KPROMA,KLEV+1,5) |
---|
337 | REAL(KIND=JPRB) :: LWDN_AERO(KPROMA,KLEV+1,5) |
---|
338 | REAL(KIND=JPRB) :: LWUP0_AERO(KPROMA,KLEV+1,5) |
---|
339 | REAL(KIND=JPRB) :: LWDN0_AERO(KPROMA,KLEV+1,5) |
---|
340 | |
---|
341 | #include "radlsw.intfb.h" |
---|
342 | |
---|
343 | IF (LHOOK) CALL DR_HOOK('RECMWF_AERO',0,ZHOOK_HANDLE) |
---|
344 | IBEG=KST |
---|
345 | IEND=KEND |
---|
346 | |
---|
347 | AEROSOLFEEDBACK_ACTIVE = flag_aer_feedback !NL: externalize aer feedback |
---|
348 | |
---|
349 | |
---|
350 | !* 1. PREPARATORY WORK |
---|
351 | ! ---------------- |
---|
352 | !--OB |
---|
353 | ! 1.0 INITIALIZATIONS |
---|
354 | ! -------------- |
---|
355 | |
---|
356 | ZFSUP_AERO (:,:,:)=0. |
---|
357 | ZFSDN_AERO (:,:,:)=0. |
---|
358 | ZFSUP0_AERO(:,:,:)=0. |
---|
359 | ZFSDN0_AERO(:,:,:)=0. |
---|
360 | |
---|
361 | LWUP_AERO (:,:,:)=0. |
---|
362 | LWDN_AERO (:,:,:)=0. |
---|
363 | LWUP0_AERO(:,:,:)=0. |
---|
364 | LWDN0_AERO(:,:,:)=0. |
---|
365 | |
---|
366 | PTAU_ZERO(:,:,:) =1.e-15 |
---|
367 | PPIZA_ZERO(:,:,:)=1.0 |
---|
368 | PCGA_ZERO(:,:,:) =0.0 |
---|
369 | |
---|
370 | PTAU_LW_ZERO(:,:,:) =1.e-15 |
---|
371 | |
---|
372 | |
---|
373 | !* 1.1 LOCAL CONSTANTS |
---|
374 | ! --------------- |
---|
375 | |
---|
376 | ZRII0=RII0 |
---|
377 | ZCRAE=RRAE*(RRAE+2.0_JPRB) |
---|
378 | |
---|
379 | !* 2.1 FULL-LEVEL QUANTITIES |
---|
380 | |
---|
381 | ZRPR =PAPRSF |
---|
382 | |
---|
383 | DO JK=1,KLEV |
---|
384 | DO JL=IBEG,IEND |
---|
385 | ! ZPQO3(JL,JK)=PQO3(JL,JK)*PDP(JL,JK)*RMD/RMO3 |
---|
386 | ZPQO3(JL,JK)=PQO3(JL,JK)*PDP(JL,JK) |
---|
387 | ZRCLC(JL,JK)=MAX( 0.0_JPRB ,MIN( 1.0_JPRB ,PCLFR(JL,JK))) |
---|
388 | IF (ZRCLC(JL,JK) > REPCLC) THEN |
---|
389 | ZQLWP(JL,JK)=PQLWP(JL,JK) |
---|
390 | ZQIWP(JL,JK)=PQIWP(JL,JK) |
---|
391 | ELSE |
---|
392 | ZQLWP(JL,JK)=REPH2O*ZRCLC(JL,JK) |
---|
393 | ZQIWP(JL,JK)=REPH2O*ZRCLC(JL,JK) |
---|
394 | ENDIF |
---|
395 | ZQRAIN(JL,JK)=0. |
---|
396 | ZQRAINT(JL,JK)=0. |
---|
397 | ZRTI(JL,JK) =PT(JL,JK) |
---|
398 | ZQS (JL,JK)=MAX(2.0_JPRB*REPH2O,PQS(JL,JK)) |
---|
399 | ZQ (JL,JK)=MAX(REPH2O,MIN(PQ(JL,JK),ZQS(JL,JK)*(1.0_JPRB-REPH2O))) |
---|
400 | ZEMIW(JL)=PEMIS(JL) |
---|
401 | ENDDO |
---|
402 | ENDDO |
---|
403 | |
---|
404 | IF (NAER == 0) THEN |
---|
405 | ZRAER=RCAEROS |
---|
406 | ELSE |
---|
407 | DO JK=1,KLEV |
---|
408 | DO JL=IBEG,IEND |
---|
409 | ZRAER(JL,1,JK)=PAER(JL,JK,1) |
---|
410 | ZRAER(JL,2,JK)=PAER(JL,JK,2) |
---|
411 | ZRAER(JL,3,JK)=PAER(JL,JK,3) |
---|
412 | ZRAER(JL,4,JK)=PAER(JL,JK,4) |
---|
413 | ZRAER(JL,5,JK)=RCAEROS |
---|
414 | ZRAER(JL,6,JK)=PAER(JL,JK,6) |
---|
415 | ENDDO |
---|
416 | ENDDO |
---|
417 | ENDIF |
---|
418 | |
---|
419 | !* 2.2 HALF-LEVEL QUANTITIES |
---|
420 | |
---|
421 | DO JK=2,KLEV |
---|
422 | DO JL=IBEG,IEND |
---|
423 | PTH(JL,JK)=& |
---|
424 | & (PT(JL,JK-1)*PAPRSF(JL,JK-1)*(PAPRSF(JL,JK)-PAPRS(JL,JK))& |
---|
425 | & +PT(JL,JK)*PAPRSF(JL,JK)*(PAPRS(JL,JK)-PAPRSF(JL,JK-1)))& |
---|
426 | & *(1.0_JPRB/(PAPRS(JL,JK)*(PAPRSF(JL,JK)-PAPRSF(JL,JK-1)))) |
---|
427 | ENDDO |
---|
428 | ENDDO |
---|
429 | |
---|
430 | !* 2.3 QUANTITIES AT BOUNDARIES |
---|
431 | |
---|
432 | DO JL=IBEG,IEND |
---|
433 | PTH(JL,KLEV+1)=PTS(JL) |
---|
434 | PTH(JL,1)=PT(JL,1)-PAPRSF(JL,1)*(PT(JL,1)-PTH(JL,2))& |
---|
435 | & /(PAPRSF(JL,1)-PAPRS(JL,2)) |
---|
436 | ZNBAS(JL)=1. |
---|
437 | ZNTOP(JL)=1. |
---|
438 | ZCCNL(JL)=RCCNLND |
---|
439 | ZCCNO(JL)=RCCNSEA |
---|
440 | ENDDO |
---|
441 | |
---|
442 | !* 3.1 SOLAR ZENITH ANGLE IS EARTH'S CURVATURE |
---|
443 | ! CORRECTED |
---|
444 | |
---|
445 | ! CCMVAL: on impose ZRMU0=PMU0 MPL 25032010 |
---|
446 | ! 2eme essai en 3D MPL 20052010 |
---|
447 | !DO JL=IBEG,IEND |
---|
448 | ! ZRMU0(JL)=PMU0(JL) |
---|
449 | !ENDDO |
---|
450 | !!!!! A REVOIR MPL 20091201: enleve cette correction pour comparer a AR4 |
---|
451 | DO JL=IBEG,IEND |
---|
452 | IF (PMU0(JL) > 1.E-10_JPRB) THEN |
---|
453 | ZRMU0(JL)=RRAE/(SQRT(PMU0(JL)**2+ZCRAE)-PMU0(JL)) |
---|
454 | ELSE |
---|
455 | ZRMU0(JL)= RRAE/SQRT(ZCRAE) |
---|
456 | ENDIF |
---|
457 | ENDDO |
---|
458 | |
---|
459 | !* 4.1 CALL TO ACTUAL RADIATION SCHEME |
---|
460 | ! |
---|
461 | !----now we make multiple calls to the radiation according to which |
---|
462 | !----aerosol flags are on |
---|
463 | |
---|
464 | IF (flag_aerosol .GT. 0 .OR. flag_aerosol_strat) THEN |
---|
465 | |
---|
466 | !--Case 1 |
---|
467 | IF ( ( .not. ok_ade .AND. .not. ok_aie ) .OR. & |
---|
468 | & ( .not. ok_ade .AND. ok_aie .AND. swaero_diag ) .OR. & |
---|
469 | & ( ok_ade .AND. .not. ok_aie .AND. swaero_diag ) ) THEN |
---|
470 | |
---|
471 | ! natural aerosols for direct and indirect effect |
---|
472 | ! PI cloud optical properties |
---|
473 | ! use PREF_LIQ_PI and PREF_ICE_PI |
---|
474 | ! use NAT aerosol optical properties |
---|
475 | ! store fluxes in index 1 |
---|
476 | |
---|
477 | CALL RADLSW (& |
---|
478 | & IBEG , IEND , KPROMA , KLEV , KMODE , NAER,& |
---|
479 | & ZRII0 ,& |
---|
480 | & ZRAER , PALBD , PALBP , PAPRS , ZRPR ,& |
---|
481 | & ZCCNL , ZCCNO ,& |
---|
482 | & PCCO2 , ZRCLC , PDP , PEMIS , ZEMIW ,PSLM , ZRMU0 , ZPQO3,& |
---|
483 | & ZQ , ZQIWP , ZQLWP , ZQS , ZQRAIN,ZQRAINT ,& |
---|
484 | & PTH , ZRTI , PTS , ZNBAS , ZNTOP ,& |
---|
485 | & PREF_LIQ_PI, PREF_ICE_PI,& |
---|
486 | & ZEMIT , ZFCT , ZFLT , ZFCS , ZFLS ,& |
---|
487 | & ZFRSOD, ZSUDU , ZUVDF , ZPARF , ZPARCF, ZTINCF, PSFSWDIR,& |
---|
488 | & PSFSWDIF,PFSDNN, PFSDNV ,& |
---|
489 | & LRDUST,PPIZA_NAT,PCGA_NAT,PTAU_NAT,PTAU_LW_NAT,PFLUX,PFLUC,& |
---|
490 | & PFSDN , PFSUP , PFSCDN , PFSCUP ) |
---|
491 | |
---|
492 | !* SAVE VARIABLES IN INTERIM VARIABLES A LA SW_AEROAR4 |
---|
493 | ZFSUP0_AERO(:,:,1) = PFSCUP(:,:) |
---|
494 | ZFSDN0_AERO(:,:,1) = PFSCDN(:,:) |
---|
495 | |
---|
496 | ZFSUP_AERO(:,:,1) = PFSUP(:,:) |
---|
497 | ZFSDN_AERO(:,:,1) = PFSDN(:,:) |
---|
498 | |
---|
499 | LWUP0_AERO(:,:,1) = PFLUC(:,1,:) |
---|
500 | LWDN0_AERO(:,:,1) = PFLUC(:,2,:) |
---|
501 | |
---|
502 | LWUP_AERO(:,:,1) = PFLUX(:,1,:) |
---|
503 | LWDN_AERO(:,:,1) = PFLUX(:,2,:) |
---|
504 | |
---|
505 | ENDIF |
---|
506 | |
---|
507 | !--Case 2 |
---|
508 | IF ( ( .not. ok_ade .AND. ok_aie ) .OR. & |
---|
509 | & ( ok_ade .AND. ok_aie .AND. swaero_diag ) ) THEN |
---|
510 | |
---|
511 | ! natural aerosols for direct indirect effect |
---|
512 | ! use NAT aerosol optical properties |
---|
513 | ! PD cloud optical properties |
---|
514 | ! use PREF_LIQ and PREF_ICE |
---|
515 | ! store fluxes in index 2 |
---|
516 | |
---|
517 | CALL RADLSW (& |
---|
518 | & IBEG , IEND , KPROMA , KLEV , KMODE , NAER,& |
---|
519 | & ZRII0 ,& |
---|
520 | & ZRAER , PALBD , PALBP , PAPRS , ZRPR ,& |
---|
521 | & ZCCNL , ZCCNO ,& |
---|
522 | & PCCO2 , ZRCLC , PDP , PEMIS , ZEMIW ,PSLM , ZRMU0 , ZPQO3,& |
---|
523 | & ZQ , ZQIWP , ZQLWP , ZQS , ZQRAIN,ZQRAINT ,& |
---|
524 | & PTH , ZRTI , PTS , ZNBAS , ZNTOP ,& |
---|
525 | & PREF_LIQ, PREF_ICE,& |
---|
526 | & ZEMIT , ZFCT , ZFLT , ZFCS , ZFLS ,& |
---|
527 | & ZFRSOD, ZSUDU , ZUVDF , ZPARF , ZPARCF, ZTINCF, PSFSWDIR,& |
---|
528 | & PSFSWDIF,PFSDNN, PFSDNV ,& |
---|
529 | & LRDUST,PPIZA_NAT,PCGA_NAT,PTAU_NAT,PTAU_LW_NAT,PFLUX,PFLUC,& |
---|
530 | & PFSDN , PFSUP , PFSCDN , PFSCUP ) |
---|
531 | |
---|
532 | !* SAVE VARIABLES IN INTERIM VARIABLES A LA SW_AEROAR4 |
---|
533 | ZFSUP0_AERO(:,:,2) = PFSCUP(:,:) |
---|
534 | ZFSDN0_AERO(:,:,2) = PFSCDN(:,:) |
---|
535 | |
---|
536 | ZFSUP_AERO(:,:,2) = PFSUP(:,:) |
---|
537 | ZFSDN_AERO(:,:,2) = PFSDN(:,:) |
---|
538 | |
---|
539 | LWUP0_AERO(:,:,2) = PFLUC(:,1,:) |
---|
540 | LWDN0_AERO(:,:,2) = PFLUC(:,2,:) |
---|
541 | |
---|
542 | LWUP_AERO(:,:,2) = PFLUX(:,1,:) |
---|
543 | LWDN_AERO(:,:,2) = PFLUX(:,2,:) |
---|
544 | |
---|
545 | ENDIF ! ok_aie |
---|
546 | |
---|
547 | !--Case 3 |
---|
548 | IF ( ( ok_ade .AND. .not. ok_aie ) .OR. & |
---|
549 | & ( ok_ade .AND. ok_aie .AND. swaero_diag ) ) THEN |
---|
550 | |
---|
551 | ! direct effect of total aerosol activated |
---|
552 | ! TOT aerosols for direct effect |
---|
553 | ! PI cloud optical properties |
---|
554 | ! use PREF_LIQ_PI and PREF_ICE_PI |
---|
555 | ! STORE fluxes in index 3 |
---|
556 | |
---|
557 | CALL RADLSW (& |
---|
558 | & IBEG , IEND , KPROMA , KLEV , KMODE , NAER,& |
---|
559 | & ZRII0 ,& |
---|
560 | & ZRAER , PALBD , PALBP , PAPRS , ZRPR ,& |
---|
561 | & ZCCNL , ZCCNO ,& |
---|
562 | & PCCO2 , ZRCLC , PDP , PEMIS , ZEMIW ,PSLM , ZRMU0 , ZPQO3,& |
---|
563 | & ZQ , ZQIWP , ZQLWP , ZQS , ZQRAIN,ZQRAINT ,& |
---|
564 | & PTH , ZRTI , PTS , ZNBAS , ZNTOP ,& |
---|
565 | & PREF_LIQ_PI, PREF_ICE_PI,& |
---|
566 | & ZEMIT , ZFCT , ZFLT , ZFCS , ZFLS ,& |
---|
567 | & ZFRSOD, ZSUDU , ZUVDF , ZPARF , ZPARCF, ZTINCF, PSFSWDIR,& |
---|
568 | & PSFSWDIF,PFSDNN, PFSDNV ,& |
---|
569 | & LRDUST,PPIZA_TOT,PCGA_TOT,PTAU_TOT,PTAU_LW_TOT,PFLUX,PFLUC,& |
---|
570 | & PFSDN , PFSUP , PFSCDN , PFSCUP ) |
---|
571 | |
---|
572 | !* SAVE VARIABLES IN INTERIM VARIABLES A LA SW_AEROAR4 |
---|
573 | ZFSUP0_AERO(:,:,3) = PFSCUP(:,:) |
---|
574 | ZFSDN0_AERO(:,:,3) = PFSCDN(:,:) |
---|
575 | |
---|
576 | ZFSUP_AERO(:,:,3) = PFSUP(:,:) |
---|
577 | ZFSDN_AERO(:,:,3) = PFSDN(:,:) |
---|
578 | |
---|
579 | LWUP0_AERO(:,:,3) = PFLUC(:,1,:) |
---|
580 | LWDN0_AERO(:,:,3) = PFLUC(:,2,:) |
---|
581 | |
---|
582 | LWUP_AERO(:,:,3) = PFLUX(:,1,:) |
---|
583 | LWDN_AERO(:,:,3) = PFLUX(:,2,:) |
---|
584 | |
---|
585 | ENDIF !-end ok_ade |
---|
586 | |
---|
587 | !--Case 4 |
---|
588 | IF (ok_ade .and. ok_aie) THEN |
---|
589 | |
---|
590 | ! total aerosols for direct indirect effect |
---|
591 | ! use TOT aerosol optical properties |
---|
592 | ! PD cloud optical properties |
---|
593 | ! use PREF_LIQ and PREF_ICE |
---|
594 | ! store fluxes in index 4 |
---|
595 | |
---|
596 | CALL RADLSW (& |
---|
597 | & IBEG , IEND , KPROMA , KLEV , KMODE , NAER,& |
---|
598 | & ZRII0 ,& |
---|
599 | & ZRAER , PALBD , PALBP , PAPRS , ZRPR ,& |
---|
600 | & ZCCNL , ZCCNO ,& |
---|
601 | & PCCO2 , ZRCLC , PDP , PEMIS , ZEMIW ,PSLM , ZRMU0 , ZPQO3,& |
---|
602 | & ZQ , ZQIWP , ZQLWP , ZQS , ZQRAIN,ZQRAINT ,& |
---|
603 | & PTH , ZRTI , PTS , ZNBAS , ZNTOP ,& |
---|
604 | & PREF_LIQ, PREF_ICE,& |
---|
605 | & ZEMIT , ZFCT , ZFLT , ZFCS , ZFLS ,& |
---|
606 | & ZFRSOD, ZSUDU , ZUVDF , ZPARF , ZPARCF, ZTINCF, PSFSWDIR,& |
---|
607 | & PSFSWDIF,PFSDNN, PFSDNV ,& |
---|
608 | & LRDUST,PPIZA_TOT,PCGA_TOT,PTAU_TOT,PTAU_LW_TOT,PFLUX,PFLUC,& |
---|
609 | & PFSDN , PFSUP , PFSCDN , PFSCUP ) |
---|
610 | |
---|
611 | !* SAVE VARIABLES IN INTERIM VARIABLES A LA SW_AEROAR4 |
---|
612 | ZFSUP0_AERO(:,:,4) = PFSCUP(:,:) |
---|
613 | ZFSDN0_AERO(:,:,4) = PFSCDN(:,:) |
---|
614 | |
---|
615 | ZFSUP_AERO(:,:,4) = PFSUP(:,:) |
---|
616 | ZFSDN_AERO(:,:,4) = PFSDN(:,:) |
---|
617 | |
---|
618 | LWUP0_AERO(:,:,4) = PFLUC(:,1,:) |
---|
619 | LWDN0_AERO(:,:,4) = PFLUC(:,2,:) |
---|
620 | |
---|
621 | LWUP_AERO(:,:,4) = PFLUX(:,1,:) |
---|
622 | LWDN_AERO(:,:,4) = PFLUX(:,2,:) |
---|
623 | |
---|
624 | ENDIF ! ok_ade .and. ok_aie |
---|
625 | |
---|
626 | ENDIF !--if flag_aerosol GT 0 OR flag_aerosol_strat |
---|
627 | |
---|
628 | ! case with no aerosols at all is also computed IF ACTIVEFEEDBACK_ACTIVE is false |
---|
629 | IF (.not. AEROSOLFEEDBACK_ACTIVE .OR. flag_aerosol .EQ. 0 .OR. swaerofree_diag) THEN |
---|
630 | |
---|
631 | ! ZERO aerosol effect |
---|
632 | ! ZERO aerosol optical depth |
---|
633 | ! STANDARD cloud optical properties |
---|
634 | ! STORE fluxes in index 5 |
---|
635 | |
---|
636 | CALL RADLSW (& |
---|
637 | & IBEG , IEND , KPROMA , KLEV , KMODE , NAER,& |
---|
638 | & ZRII0 ,& |
---|
639 | & ZRAER , PALBD , PALBP , PAPRS , ZRPR ,& |
---|
640 | & ZCCNL , ZCCNO ,& |
---|
641 | & PCCO2 , ZRCLC , PDP , PEMIS , ZEMIW ,PSLM , ZRMU0 , ZPQO3,& |
---|
642 | & ZQ , ZQIWP , ZQLWP , ZQS , ZQRAIN,ZQRAINT ,& |
---|
643 | & PTH , ZRTI , PTS , ZNBAS , ZNTOP ,& |
---|
644 | !--this needs to be changed to fixed cloud optical properties |
---|
645 | & PREF_LIQ_PI, PREF_ICE_PI,& |
---|
646 | & ZEMIT , ZFCT , ZFLT , ZFCS , ZFLS ,& |
---|
647 | & ZFRSOD, ZSUDU , ZUVDF , ZPARF , ZPARCF, ZTINCF, PSFSWDIR,& |
---|
648 | & PSFSWDIF,PFSDNN, PFSDNV ,& |
---|
649 | & LRDUST,PPIZA_ZERO,PCGA_ZERO,PTAU_ZERO, PTAU_LW_ZERO,PFLUX,PFLUC,& |
---|
650 | & PFSDN , PFSUP , PFSCDN , PFSCUP ) |
---|
651 | |
---|
652 | !* SAVE VARIABLES IN INTERIM VARIABLES A LA SW_AEROAR4 |
---|
653 | ZFSUP0_AERO(:,:,5) = PFSCUP(:,:) |
---|
654 | ZFSDN0_AERO(:,:,5) = PFSCDN(:,:) |
---|
655 | |
---|
656 | ZFSUP_AERO(:,:,5) = PFSUP(:,:) |
---|
657 | ZFSDN_AERO(:,:,5) = PFSDN(:,:) |
---|
658 | |
---|
659 | LWUP0_AERO(:,:,5) = PFLUC(:,1,:) |
---|
660 | LWDN0_AERO(:,:,5) = PFLUC(:,2,:) |
---|
661 | |
---|
662 | LWUP_AERO(:,:,5) = PFLUX(:,1,:) |
---|
663 | LWDN_AERO(:,:,5) = PFLUX(:,2,:) |
---|
664 | |
---|
665 | ENDIF ! .not. AEROSOLFEEDBACK_ACTIVE |
---|
666 | |
---|
667 | !* 4.2 TRANSFORM FLUXES TO MODEL HISTORICAL VARIABLES |
---|
668 | |
---|
669 | DO JK=1,KLEV+1 |
---|
670 | DO JL=IBEG,IEND |
---|
671 | PSWFT(JL,JK)=ZFLS(JL,JK)/(ZRII0*ZRMU0(JL)) |
---|
672 | PLWFT(JL,JK)=ZFLT(JL,JK) |
---|
673 | ENDDO |
---|
674 | ENDDO |
---|
675 | |
---|
676 | ZEMTD=PLWFT |
---|
677 | ZEMTU=PLWFT |
---|
678 | |
---|
679 | DO JL=IBEG,IEND |
---|
680 | ZTRSOC(JL, 1)=ZFCS(JL, 1)/(ZRII0*ZRMU0(JL)) |
---|
681 | ZTRSOC(JL, 2)=ZFCS(JL,KLEV+1)/(ZRII0*ZRMU0(JL)) |
---|
682 | ZEMTC (JL, 1)=ZFCT(JL, 1) |
---|
683 | ZEMTC (JL, 2)=ZFCT(JL,KLEV+1) |
---|
684 | ENDDO |
---|
685 | |
---|
686 | ! ------------ -- ------- -- ---- ----- |
---|
687 | !* 5.1 STORAGE OF TRANSMISSIVITY AND EMISSIVITIES |
---|
688 | !* IN KPROMA-LONG ARRAYS |
---|
689 | |
---|
690 | DO JK=1,KLEV+1 |
---|
691 | DO JL=IBEG,IEND |
---|
692 | PEMTD(JL,JK)=ZEMTD(JL,JK) |
---|
693 | PEMTU(JL,JK)=ZEMTU(JL,JK) |
---|
694 | PTRSO(JL,JK)=MAX(0.0_JPRB,MIN(1.0_JPRB,PSWFT(JL,JK))) |
---|
695 | ENDDO |
---|
696 | ENDDO |
---|
697 | DO JK=1,2 |
---|
698 | DO JL=IBEG,IEND |
---|
699 | PCEMTR(JL,JK)=ZEMTC (JL,JK) |
---|
700 | PCTRSO(JL,JK)=MAX( 0.0_JPRB,MIN(1.0_JPRB,ZTRSOC(JL,JK))) |
---|
701 | ENDDO |
---|
702 | ENDDO |
---|
703 | DO JL=IBEG,IEND |
---|
704 | PTRSOD(JL)=MAX(0.0_JPRB,MIN(1.0_JPRB,ZFRSOD(JL)/(ZRII0*ZRMU0(JL)))) |
---|
705 | ENDDO |
---|
706 | |
---|
707 | !* 7.3 RECONSTRUCT FLUXES FOR DIAGNOSTICS |
---|
708 | |
---|
709 | DO JL=IBEG,IEND |
---|
710 | IF (PMU0(JL) < 1.E-10_JPRB) ZRMU0(JL)=0.0_JPRB |
---|
711 | ENDDO |
---|
712 | DO JK=1,KLEV+1 |
---|
713 | DO JL=IBEG,IEND |
---|
714 | PLWFT(JL,JK)=PEMTD(JL,JK) |
---|
715 | PSWFT(JL,JK)=ZRMU0(JL)*ZRII0*PTRSO(JL,JK) |
---|
716 | ENDDO |
---|
717 | ENDDO |
---|
718 | DO JK=1,2 |
---|
719 | DO JL=IBEG,IEND |
---|
720 | PSWFC(JL,JK)=ZRMU0(JL)*ZRII0*PCTRSO(JL,JK) |
---|
721 | PLWFC(JL,JK)=PCEMTR(JL,JK) |
---|
722 | ENDDO |
---|
723 | ENDDO |
---|
724 | |
---|
725 | !* 8.0 DIAGNOSTICS |
---|
726 | !---Now we copy back the correct fields to proceed to the next timestep |
---|
727 | |
---|
728 | IF ( AEROSOLFEEDBACK_ACTIVE .AND. (flag_aerosol .GT. 0 .OR. flag_aerosol_strat) ) THEN |
---|
729 | |
---|
730 | IF ( ok_ade .and. ok_aie ) THEN |
---|
731 | PFSUP(:,:) = ZFSUP_AERO(:,:,4) |
---|
732 | PFSDN(:,:) = ZFSDN_AERO(:,:,4) |
---|
733 | PFSCUP(:,:) = ZFSUP0_AERO(:,:,4) |
---|
734 | PFSCDN(:,:) = ZFSDN0_AERO(:,:,4) |
---|
735 | |
---|
736 | PFLUX(:,1,:) = LWUP_AERO(:,:,4) |
---|
737 | PFLUX(:,2,:) = LWDN_AERO(:,:,4) |
---|
738 | PFLUC(:,1,:) = LWUP0_AERO(:,:,4) |
---|
739 | PFLUC(:,2,:) = LWDN0_AERO(:,:,4) |
---|
740 | ENDIF |
---|
741 | |
---|
742 | IF ( ok_ade .and. (.not. ok_aie) ) THEN |
---|
743 | PFSUP(:,:) = ZFSUP_AERO(:,:,3) |
---|
744 | PFSDN(:,:) = ZFSDN_AERO(:,:,3) |
---|
745 | PFSCUP(:,:) = ZFSUP0_AERO(:,:,3) |
---|
746 | PFSCDN(:,:) = ZFSDN0_AERO(:,:,3) |
---|
747 | |
---|
748 | PFLUX(:,1,:) = LWUP_AERO(:,:,3) |
---|
749 | PFLUX(:,2,:) = LWDN_AERO(:,:,3) |
---|
750 | PFLUC(:,1,:) = LWUP0_AERO(:,:,3) |
---|
751 | PFLUC(:,2,:) = LWDN0_AERO(:,:,3) |
---|
752 | ENDIF |
---|
753 | |
---|
754 | IF ( (.not. ok_ade) .and. ok_aie ) THEN |
---|
755 | PFSUP(:,:) = ZFSUP_AERO(:,:,2) |
---|
756 | PFSDN(:,:) = ZFSDN_AERO(:,:,2) |
---|
757 | PFSCUP(:,:) = ZFSUP0_AERO(:,:,2) |
---|
758 | PFSCDN(:,:) = ZFSDN0_AERO(:,:,2) |
---|
759 | |
---|
760 | PFLUX(:,1,:) = LWUP_AERO(:,:,2) |
---|
761 | PFLUX(:,2,:) = LWDN_AERO(:,:,2) |
---|
762 | PFLUC(:,1,:) = LWUP0_AERO(:,:,2) |
---|
763 | PFLUC(:,2,:) = LWDN0_AERO(:,:,2) |
---|
764 | ENDiF |
---|
765 | |
---|
766 | IF ((.not. ok_ade) .and. (.not. ok_aie)) THEN |
---|
767 | PFSUP(:,:) = ZFSUP_AERO(:,:,1) |
---|
768 | PFSDN(:,:) = ZFSDN_AERO(:,:,1) |
---|
769 | PFSCUP(:,:) = ZFSUP0_AERO(:,:,1) |
---|
770 | PFSCDN(:,:) = ZFSDN0_AERO(:,:,1) |
---|
771 | |
---|
772 | PFLUX(:,1,:) = LWUP_AERO(:,:,1) |
---|
773 | PFLUX(:,2,:) = LWDN_AERO(:,:,1) |
---|
774 | PFLUC(:,1,:) = LWUP0_AERO(:,:,1) |
---|
775 | PFLUC(:,2,:) = LWDN0_AERO(:,:,1) |
---|
776 | ENDIF |
---|
777 | |
---|
778 | ! The following allows to compute the forcing diagostics without |
---|
779 | ! letting the aerosol forcing act on the meteorology |
---|
780 | ! SEE logic above |
---|
781 | |
---|
782 | ELSE !--not AEROSOLFEEDBACK_ACTIVE |
---|
783 | |
---|
784 | PFSUP(:,:) = ZFSUP_AERO(:,:,5) |
---|
785 | PFSDN(:,:) = ZFSDN_AERO(:,:,5) |
---|
786 | PFSCUP(:,:) = ZFSUP0_AERO(:,:,5) |
---|
787 | PFSCDN(:,:) = ZFSDN0_AERO(:,:,5) |
---|
788 | |
---|
789 | PFLUX(:,1,:) = LWUP_AERO(:,:,5) |
---|
790 | PFLUX(:,2,:) = LWDN_AERO(:,:,5) |
---|
791 | PFLUC(:,1,:) = LWUP0_AERO(:,:,5) |
---|
792 | PFLUC(:,2,:) = LWDN0_AERO(:,:,5) |
---|
793 | |
---|
794 | ENDIF |
---|
795 | |
---|
796 | IF (swaerofree_diag) THEN |
---|
797 | ! copy shortwave clear-sky clean (no aerosol) case |
---|
798 | PFSCCUP(:,:) = ZFSUP0_AERO(:,:,5) |
---|
799 | PFSCCDN(:,:) = ZFSDN0_AERO(:,:,5) |
---|
800 | ! copy longwave clear-sky clean (no aerosol) case |
---|
801 | PFLCCUP(:,:) = LWUP0_AERO(:,:,5) |
---|
802 | PFLCCDN(:,:) = LWDN0_AERO(:,:,5) |
---|
803 | ENDIF |
---|
804 | |
---|
805 | !OB- HERE CHECK WITH MP IF BOTTOM AND TOP INDICES ARE OK !!!!!!!!!!!!!!!!!! |
---|
806 | ! net anthropogenic forcing direct and 1st indirect effect diagnostics |
---|
807 | ! requires a natural aerosol field read and used |
---|
808 | ! Difference of net fluxes from double call to radiation |
---|
809 | ! Will need to be extended to LW radiation -> done by CK (2014-05-23) |
---|
810 | |
---|
811 | IF (flag_aerosol .GT. 0 .OR. flag_aerosol_strat) THEN |
---|
812 | |
---|
813 | IF (ok_ade.AND.ok_aie) THEN |
---|
814 | |
---|
815 | ! direct anthropogenic forcing |
---|
816 | PSOLSWADAERO(:) = (ZFSDN_AERO(:,1,4) -ZFSUP_AERO(:,1,4)) -(ZFSDN_AERO(:,1,2) -ZFSUP_AERO(:,1,2)) |
---|
817 | PTOPSWADAERO(:) = (ZFSDN_AERO(:,KLEV+1,4) -ZFSUP_AERO(:,KLEV+1,4)) -(ZFSDN_AERO(:,KLEV+1,2) -ZFSUP_AERO(:,KLEV+1,2)) |
---|
818 | PSOLSWAD0AERO(:) = (ZFSDN0_AERO(:,1,4) -ZFSUP0_AERO(:,1,4)) -(ZFSDN0_AERO(:,1,2) -ZFSUP0_AERO(:,1,2)) |
---|
819 | PTOPSWAD0AERO(:) = (ZFSDN0_AERO(:,KLEV+1,4)-ZFSUP0_AERO(:,KLEV+1,4))-(ZFSDN0_AERO(:,KLEV+1,2)-ZFSUP0_AERO(:,KLEV+1,2)) |
---|
820 | IF(ok_volcan) THEN |
---|
821 | PSWADAERO(:,:) = (ZFSDN_AERO(:,:,4) -ZFSUP_AERO(:,:,4)) -(ZFSDN_AERO(:,:,2) -ZFSUP_AERO(:,:,2)) !--NL |
---|
822 | ENDIF |
---|
823 | |
---|
824 | ! indirect anthropogenic forcing |
---|
825 | PSOLSWAIAERO(:) = (ZFSDN_AERO(:,1,4) -ZFSUP_AERO(:,1,4)) -(ZFSDN_AERO(:,1,3) -ZFSUP_AERO(:,1,3)) |
---|
826 | PTOPSWAIAERO(:) = (ZFSDN_AERO(:,KLEV+1,4)-ZFSUP_AERO(:,KLEV+1,4))-(ZFSDN_AERO(:,KLEV+1,3)-ZFSUP_AERO(:,KLEV+1,3)) |
---|
827 | |
---|
828 | ! Cloud radiative forcing with natural aerosol for direct effect |
---|
829 | PSOLSWCFAERO(:,1) = (ZFSDN_AERO(:,1,2) -ZFSUP_AERO(:,1,2)) -(ZFSDN0_AERO(:,1,2) -ZFSUP0_AERO(:,1,2)) |
---|
830 | PTOPSWCFAERO(:,1) = (ZFSDN_AERO(:,KLEV+1,2)-ZFSUP_AERO(:,KLEV+1,2))-(ZFSDN0_AERO(:,KLEV+1,2)-ZFSUP0_AERO(:,KLEV+1,2)) |
---|
831 | ! Cloud radiative forcing with anthropogenic aerosol for direct effect |
---|
832 | PSOLSWCFAERO(:,2) = (ZFSDN_AERO(:,1,4) -ZFSUP_AERO(:,1,4)) -(ZFSDN0_AERO(:,1,4) -ZFSUP0_AERO(:,1,4)) |
---|
833 | PTOPSWCFAERO(:,2) = (ZFSDN_AERO(:,KLEV+1,4)-ZFSUP_AERO(:,KLEV+1,4))-(ZFSDN0_AERO(:,KLEV+1,4)-ZFSUP0_AERO(:,KLEV+1,4)) |
---|
834 | ! Cloud radiative forcing with no direct effect at all |
---|
835 | PSOLSWCFAERO(:,3) = 0.0 |
---|
836 | PTOPSWCFAERO(:,3) = 0.0 |
---|
837 | |
---|
838 | ! LW direct anthropogenic forcing |
---|
839 | PSOLLWADAERO(:) = (-LWDN_AERO(:,1,4) -LWUP_AERO(:,1,4)) -(-LWDN_AERO(:,1,2) -LWUP_AERO(:,1,2)) |
---|
840 | PTOPLWADAERO(:) = (-LWDN_AERO(:,KLEV+1,4) -LWUP_AERO(:,KLEV+1,4)) -(-LWDN_AERO(:,KLEV+1,2) -LWUP_AERO(:,KLEV+1,2)) |
---|
841 | PSOLLWAD0AERO(:) = (-LWDN0_AERO(:,1,4) -LWUP0_AERO(:,1,4)) -(-LWDN0_AERO(:,1,2) -LWUP0_AERO(:,1,2)) |
---|
842 | PTOPLWAD0AERO(:) = (-LWDN0_AERO(:,KLEV+1,4)-LWUP0_AERO(:,KLEV+1,4))-(-LWDN0_AERO(:,KLEV+1,2)-LWUP0_AERO(:,KLEV+1,2)) |
---|
843 | IF(ok_volcan) THEN |
---|
844 | PLWADAERO(:,:) = (-LWDN_AERO(:,:,4) -LWUP_AERO(:,:,4)) -(-LWDN_AERO(:,:,2) -LWUP_AERO(:,:,2)) !--NL |
---|
845 | ENDIF |
---|
846 | |
---|
847 | ! LW indirect anthropogenic forcing |
---|
848 | PSOLLWAIAERO(:) = (-LWDN_AERO(:,1,4) -LWUP_AERO(:,1,4)) -(-LWDN_AERO(:,1,3) -LWUP_AERO(:,1,3)) |
---|
849 | PTOPLWAIAERO(:) = (-LWDN_AERO(:,KLEV+1,4)-LWUP_AERO(:,KLEV+1,4))-(-LWDN_AERO(:,KLEV+1,3)-LWUP_AERO(:,KLEV+1,3)) |
---|
850 | |
---|
851 | ENDIF |
---|
852 | |
---|
853 | IF (ok_ade.AND..NOT.ok_aie) THEN |
---|
854 | |
---|
855 | ! direct anthropogenic forcing |
---|
856 | PSOLSWADAERO(:) = (ZFSDN_AERO(:,1,3) -ZFSUP_AERO(:,1,3)) -(ZFSDN_AERO(:,1,1) -ZFSUP_AERO(:,1,1)) |
---|
857 | PTOPSWADAERO(:) = (ZFSDN_AERO(:,KLEV+1,3) -ZFSUP_AERO(:,KLEV+1,3)) -(ZFSDN_AERO(:,KLEV+1,1) -ZFSUP_AERO(:,KLEV+1,1)) |
---|
858 | PSOLSWAD0AERO(:) = (ZFSDN0_AERO(:,1,3) -ZFSUP0_AERO(:,1,3)) -(ZFSDN0_AERO(:,1,1) -ZFSUP0_AERO(:,1,1)) |
---|
859 | PTOPSWAD0AERO(:) = (ZFSDN0_AERO(:,KLEV+1,3)-ZFSUP0_AERO(:,KLEV+1,3))-(ZFSDN0_AERO(:,KLEV+1,1)-ZFSUP0_AERO(:,KLEV+1,1)) |
---|
860 | IF(ok_volcan) THEN |
---|
861 | PSWADAERO(:,:) = (ZFSDN_AERO(:,:,3) -ZFSUP_AERO(:,:,3)) -(ZFSDN_AERO(:,:,1) -ZFSUP_AERO(:,:,1)) !--NL |
---|
862 | ENDIF |
---|
863 | |
---|
864 | ! indirect anthropogenic forcing |
---|
865 | PSOLSWAIAERO(:) = 0.0 |
---|
866 | PTOPSWAIAERO(:) = 0.0 |
---|
867 | |
---|
868 | ! Cloud radiative forcing with natural aerosol for direct effect |
---|
869 | PSOLSWCFAERO(:,1) = (ZFSDN_AERO(:,1,1) -ZFSUP_AERO(:,1,1)) -(ZFSDN0_AERO(:,1,1) -ZFSUP0_AERO(:,1,1)) |
---|
870 | PTOPSWCFAERO(:,1) = (ZFSDN_AERO(:,KLEV+1,1)-ZFSUP_AERO(:,KLEV+1,1))-(ZFSDN0_AERO(:,KLEV+1,1)-ZFSUP0_AERO(:,KLEV+1,1)) |
---|
871 | ! Cloud radiative forcing with anthropogenic aerosol for direct effect |
---|
872 | PSOLSWCFAERO(:,2) = (ZFSDN_AERO(:,1,3) -ZFSUP_AERO(:,1,3)) -(ZFSDN0_AERO(:,1,3) -ZFSUP0_AERO(:,1,3)) |
---|
873 | PTOPSWCFAERO(:,2) = (ZFSDN_AERO(:,KLEV+1,3)-ZFSUP_AERO(:,KLEV+1,3))-(ZFSDN0_AERO(:,KLEV+1,3)-ZFSUP0_AERO(:,KLEV+1,3)) |
---|
874 | ! Cloud radiative forcing with no direct effect at all |
---|
875 | PSOLSWCFAERO(:,3) = 0.0 |
---|
876 | PTOPSWCFAERO(:,3) = 0.0 |
---|
877 | |
---|
878 | ! LW direct anthropogenic forcing |
---|
879 | PSOLLWADAERO(:) = (-LWDN_AERO(:,1,3) -LWUP_AERO(:,1,3)) -(-LWDN_AERO(:,1,1) -LWUP_AERO(:,1,1)) |
---|
880 | PTOPLWADAERO(:) = (-LWDN_AERO(:,KLEV+1,3) -LWUP_AERO(:,KLEV+1,3)) -(-LWDN_AERO(:,KLEV+1,1) -LWUP_AERO(:,KLEV+1,1)) |
---|
881 | PSOLLWAD0AERO(:) = (-LWDN0_AERO(:,1,3) -LWUP0_AERO(:,1,3)) -(-LWDN0_AERO(:,1,1) -LWUP0_AERO(:,1,1)) |
---|
882 | PTOPLWAD0AERO(:) = (-LWDN0_AERO(:,KLEV+1,3)-LWUP0_AERO(:,KLEV+1,3))-(-LWDN0_AERO(:,KLEV+1,1)-LWUP0_AERO(:,KLEV+1,1)) |
---|
883 | IF(ok_volcan) THEN |
---|
884 | PLWADAERO(:,:) = (-LWDN_AERO(:,:,3) -LWUP_AERO(:,:,3)) -(-LWDN_AERO(:,:,1) -LWUP_AERO(:,:,1)) !--NL |
---|
885 | ENDIF |
---|
886 | |
---|
887 | ! LW indirect anthropogenic forcing |
---|
888 | PSOLLWAIAERO(:) = 0.0 |
---|
889 | PTOPLWAIAERO(:) = 0.0 |
---|
890 | |
---|
891 | ENDIF |
---|
892 | |
---|
893 | IF (.NOT.ok_ade.AND.ok_aie) THEN |
---|
894 | |
---|
895 | ! direct anthropogenic forcing |
---|
896 | PSOLSWADAERO(:) = 0.0 |
---|
897 | PTOPSWADAERO(:) = 0.0 |
---|
898 | PSOLSWAD0AERO(:) = 0.0 |
---|
899 | PTOPSWAD0AERO(:) = 0.0 |
---|
900 | IF(ok_volcan) THEN |
---|
901 | PSWADAERO(:,:) = 0.0 !--NL |
---|
902 | ENDIF |
---|
903 | |
---|
904 | ! indirect anthropogenic forcing |
---|
905 | PSOLSWAIAERO(:) = (ZFSDN_AERO(:,1,2) -ZFSUP_AERO(:,1,2)) -(ZFSDN_AERO(:,1,1) -ZFSUP_AERO(:,1,1)) |
---|
906 | PTOPSWAIAERO(:) = (ZFSDN_AERO(:,KLEV+1,2)-ZFSUP_AERO(:,KLEV+1,2))-(ZFSDN_AERO(:,KLEV+1,1)-ZFSUP_AERO(:,KLEV+1,1)) |
---|
907 | |
---|
908 | ! Cloud radiative forcing with natural aerosol for direct effect |
---|
909 | PSOLSWCFAERO(:,1) = (ZFSDN_AERO(:,1,2) -ZFSUP_AERO(:,1,2)) -(ZFSDN0_AERO(:,1,2) -ZFSUP0_AERO(:,1,2)) |
---|
910 | PTOPSWCFAERO(:,1) = (ZFSDN_AERO(:,KLEV+1,2)-ZFSUP_AERO(:,KLEV+1,2))-(ZFSDN0_AERO(:,KLEV+1,2)-ZFSUP0_AERO(:,KLEV+1,2)) |
---|
911 | ! Cloud radiative forcing with anthropogenic aerosol for direct effect |
---|
912 | PSOLSWCFAERO(:,2) = 0.0 |
---|
913 | PTOPSWCFAERO(:,2) = 0.0 |
---|
914 | ! Cloud radiative forcing with no direct effect at all |
---|
915 | PSOLSWCFAERO(:,3) = 0.0 |
---|
916 | PTOPSWCFAERO(:,3) = 0.0 |
---|
917 | |
---|
918 | ! LW direct anthropogenic forcing |
---|
919 | PSOLLWADAERO(:) = 0.0 |
---|
920 | PTOPLWADAERO(:) = 0.0 |
---|
921 | PSOLLWAD0AERO(:) = 0.0 |
---|
922 | PTOPLWAD0AERO(:) = 0.0 |
---|
923 | IF(ok_volcan) THEN |
---|
924 | PLWADAERO(:,:) = 0.0 !--NL |
---|
925 | ENDIF |
---|
926 | |
---|
927 | ! LW indirect anthropogenic forcing |
---|
928 | PSOLLWAIAERO(:) = (-LWDN_AERO(:,1,2) -LWUP_AERO(:,1,2)) -(-LWDN_AERO(:,1,1) -LWUP_AERO(:,1,1)) |
---|
929 | PTOPLWAIAERO(:) = (-LWDN_AERO(:,KLEV+1,2)-LWUP_AERO(:,KLEV+1,2))-(-LWDN_AERO(:,KLEV+1,1)-LWUP_AERO(:,KLEV+1,1)) |
---|
930 | |
---|
931 | ENDIF |
---|
932 | |
---|
933 | IF (.NOT.ok_ade.AND..NOT.ok_aie) THEN |
---|
934 | |
---|
935 | ! direct anthropogenic forcing |
---|
936 | PSOLSWADAERO(:) = 0.0 |
---|
937 | PTOPSWADAERO(:) = 0.0 |
---|
938 | PSOLSWAD0AERO(:) = 0.0 |
---|
939 | PTOPSWAD0AERO(:) = 0.0 |
---|
940 | IF(ok_volcan) THEN |
---|
941 | PSWADAERO(:,:) = 0.0 !--NL |
---|
942 | ENDIF |
---|
943 | |
---|
944 | ! indirect anthropogenic forcing |
---|
945 | PSOLSWAIAERO(:) = 0.0 |
---|
946 | PTOPSWAIAERO(:) = 0.0 |
---|
947 | |
---|
948 | ! Cloud radiative forcing with natural aerosol for direct effect |
---|
949 | PSOLSWCFAERO(:,1) = (ZFSDN_AERO(:,1,1) -ZFSUP_AERO(:,1,1)) -(ZFSDN0_AERO(:,1,1) -ZFSUP0_AERO(:,1,1)) |
---|
950 | PTOPSWCFAERO(:,1) = (ZFSDN_AERO(:,KLEV+1,1)-ZFSUP_AERO(:,KLEV+1,1))-(ZFSDN0_AERO(:,KLEV+1,1)-ZFSUP0_AERO(:,KLEV+1,1)) |
---|
951 | ! Cloud radiative forcing with anthropogenic aerosol for direct effect |
---|
952 | PSOLSWCFAERO(:,2) = 0.0 |
---|
953 | PTOPSWCFAERO(:,2) = 0.0 |
---|
954 | ! Cloud radiative forcing with no direct effect at all |
---|
955 | PSOLSWCFAERO(:,3) = 0.0 |
---|
956 | PTOPSWCFAERO(:,3) = 0.0 |
---|
957 | |
---|
958 | ! LW direct anthropogenic forcing |
---|
959 | PSOLLWADAERO(:) = 0.0 |
---|
960 | PTOPLWADAERO(:) = 0.0 |
---|
961 | PSOLLWAD0AERO(:) = 0.0 |
---|
962 | PTOPLWAD0AERO(:) = 0.0 |
---|
963 | IF(ok_volcan) THEN |
---|
964 | PLWADAERO(:,:) = 0.0 !--NL |
---|
965 | ENDIF |
---|
966 | |
---|
967 | ! LW indirect anthropogenic forcing |
---|
968 | PSOLLWAIAERO(:) = 0.0 |
---|
969 | PTOPLWAIAERO(:) = 0.0 |
---|
970 | |
---|
971 | ENDIF |
---|
972 | |
---|
973 | ENDIF |
---|
974 | |
---|
975 | !IF (swaero_diag .OR. .NOT. AEROSOLFEEDBACK_ACTIVE) THEN |
---|
976 | IF (.NOT. AEROSOLFEEDBACK_ACTIVE) THEN |
---|
977 | ! Cloudforcing without aerosol at all |
---|
978 | PSOLSWCFAERO(:,3) = (ZFSDN_AERO(:,1,5) -ZFSUP_AERO(:,1,5)) -(ZFSDN0_AERO(:,1,5) -ZFSUP0_AERO(:,1,5)) |
---|
979 | PTOPSWCFAERO(:,3) = (ZFSDN_AERO(:,KLEV+1,5)-ZFSUP_AERO(:,KLEV+1,5))-(ZFSDN0_AERO(:,KLEV+1,5)-ZFSUP0_AERO(:,KLEV+1,5)) |
---|
980 | |
---|
981 | ENDIF |
---|
982 | |
---|
983 | IF (LHOOK) CALL DR_HOOK('RECMWF_AERO',1,ZHOOK_HANDLE) |
---|
984 | END SUBROUTINE RECMWF_AERO |
---|