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