[909] | 1 | MODULE phys_state_var_mod |
---|
| 2 | ! Variables sauvegardees pour le startphy.nc |
---|
| 3 | !====================================================================== |
---|
| 4 | ! |
---|
| 5 | ! |
---|
| 6 | !====================================================================== |
---|
| 7 | ! Declaration des variables |
---|
| 8 | USE dimphy |
---|
[952] | 9 | INTEGER, PARAMETER :: nlevSTD=17 |
---|
| 10 | INTEGER, PARAMETER :: nout=3 |
---|
| 11 | INTEGER, PARAMETER :: napisccp=1 |
---|
[967] | 12 | INTEGER, SAVE :: radpas |
---|
[1279] | 13 | REAL, SAVE :: dtime, solaire_etat0 |
---|
[967] | 14 | !$OMP THREADPRIVATE(radpas) |
---|
[1279] | 15 | !$OMP THREADPRIVATE(dtime, solaire_etat0) |
---|
[967] | 16 | |
---|
[909] | 17 | REAL, ALLOCATABLE, SAVE :: rlat(:), rlon(:), pctsrf(:,:) |
---|
[967] | 18 | !$OMP THREADPRIVATE(rlat, rlon, pctsrf) |
---|
[909] | 19 | REAL, ALLOCATABLE, SAVE :: ftsol(:,:) |
---|
[967] | 20 | !$OMP THREADPRIVATE(ftsol) |
---|
| 21 | ! character(len=6), SAVE :: ocean |
---|
| 22 | !!!!!!$OMP THREADPRIVATE(ocean) |
---|
| 23 | ! logical, SAVE :: ok_veget |
---|
| 24 | !!!!!!$OMP THREADPRIVATE(ok_veget) |
---|
[909] | 25 | REAL, ALLOCATABLE, SAVE :: falb1(:,:), falb2(:,:) |
---|
[967] | 26 | !$OMP THREADPRIVATE(falb1, falb2) |
---|
[909] | 27 | REAL, ALLOCATABLE, SAVE :: rain_fall(:), snow_fall(:) |
---|
[967] | 28 | !$OMP THREADPRIVATE( rain_fall, snow_fall) |
---|
[909] | 29 | REAL, ALLOCATABLE, SAVE :: solsw(:), sollw(:) |
---|
[967] | 30 | !$OMP THREADPRIVATE(solsw, sollw) |
---|
[909] | 31 | REAL, ALLOCATABLE, SAVE :: radsol(:) |
---|
[967] | 32 | !$OMP THREADPRIVATE(radsol) |
---|
| 33 | |
---|
[909] | 34 | !clesphy0 param physiq |
---|
| 35 | ! |
---|
| 36 | ! Parametres de l'Orographie a l'Echelle Sous-Maille (OESM): |
---|
| 37 | ! |
---|
| 38 | REAL, ALLOCATABLE, SAVE :: zmea(:), zstd(:), zsig(:), zgam(:) |
---|
[967] | 39 | !$OMP THREADPRIVATE(zmea, zstd, zsig, zgam) |
---|
[909] | 40 | REAL, ALLOCATABLE, SAVE :: zthe(:), zpic(:), zval(:) |
---|
[967] | 41 | !$OMP THREADPRIVATE(zthe, zpic, zval) |
---|
[909] | 42 | ! REAL tabcntr0(100) |
---|
| 43 | REAL, ALLOCATABLE, SAVE :: rugoro(:) |
---|
[967] | 44 | !$OMP THREADPRIVATE(rugoro) |
---|
[909] | 45 | REAL, ALLOCATABLE, SAVE :: t_ancien(:,:), q_ancien(:,:) |
---|
[967] | 46 | !$OMP THREADPRIVATE(t_ancien, q_ancien) |
---|
[1054] | 47 | REAL, ALLOCATABLE, SAVE :: u_ancien(:,:), v_ancien(:,:) |
---|
| 48 | !$OMP THREADPRIVATE(u_ancien, v_ancien) |
---|
[909] | 49 | LOGICAL, SAVE :: ancien_ok |
---|
[967] | 50 | !$OMP THREADPRIVATE(ancien_ok) |
---|
[909] | 51 | REAL, ALLOCATABLE, SAVE :: clwcon(:,:),rnebcon(:,:) |
---|
[967] | 52 | !$OMP THREADPRIVATE(clwcon,rnebcon) |
---|
[909] | 53 | REAL, ALLOCATABLE, SAVE :: ratqs(:,:) |
---|
[967] | 54 | !$OMP THREADPRIVATE(ratqs) |
---|
[909] | 55 | REAL, ALLOCATABLE, SAVE :: pbl_tke(:,:,:) ! turb kinetic energy |
---|
[967] | 56 | !$OMP THREADPRIVATE(pbl_tke) |
---|
[927] | 57 | REAL, ALLOCATABLE, SAVE :: zmax0(:), f0(:) ! |
---|
[967] | 58 | !$OMP THREADPRIVATE(zmax0,f0) |
---|
[937] | 59 | REAL, ALLOCATABLE, SAVE :: ema_work1(:,:), ema_work2(:,:) |
---|
[967] | 60 | !$OMP THREADPRIVATE(ema_work1,ema_work2) |
---|
[942] | 61 | REAL, ALLOCATABLE, SAVE :: entr_therm(:,:), fm_therm(:,:) |
---|
[967] | 62 | !$OMP THREADPRIVATE(entr_therm,fm_therm) |
---|
[952] | 63 | REAL, ALLOCATABLE, SAVE :: detr_therm(:,:) |
---|
[967] | 64 | !$OMP THREADPRIVATE(detr_therm) |
---|
[952] | 65 | !IM 150408 |
---|
| 66 | ! pour phsystoke avec thermiques |
---|
| 67 | REAL,ALLOCATABLE,SAVE :: clwcon0th(:,:),rnebcon0th(:,:) |
---|
[967] | 68 | !$OMP THREADPRIVATE(clwcon0th,rnebcon0th) |
---|
[952] | 69 | ! radiation outputs |
---|
| 70 | REAL,ALLOCATABLE,SAVE :: swdn0(:,:), swdn(:,:) |
---|
[967] | 71 | !$OMP THREADPRIVATE(swdn0,swdn) |
---|
[952] | 72 | REAL,ALLOCATABLE,SAVE :: swup0(:,:), swup(:,:) |
---|
[967] | 73 | !$OMP THREADPRIVATE(swup0,swup) |
---|
[952] | 74 | REAL,ALLOCATABLE,SAVE :: SWdn200clr(:), SWdn200(:) |
---|
[967] | 75 | !$OMP THREADPRIVATE(SWdn200clr,SWdn200) |
---|
[952] | 76 | REAL,ALLOCATABLE,SAVE :: SWup200clr(:), SWup200(:) |
---|
[967] | 77 | !$OMP THREADPRIVATE(SWup200clr,SWup200) |
---|
[952] | 78 | REAL,ALLOCATABLE,SAVE :: lwdn0(:,:), lwdn(:,:) |
---|
[967] | 79 | !$OMP THREADPRIVATE(lwdn0,lwdn) |
---|
[952] | 80 | REAL,ALLOCATABLE,SAVE :: lwup0(:,:), lwup(:,:) |
---|
[967] | 81 | !$OMP THREADPRIVATE(lwup0,lwup) |
---|
[952] | 82 | REAL,ALLOCATABLE,SAVE :: LWdn200clr(:), LWdn200(:) |
---|
[967] | 83 | !$OMP THREADPRIVATE(LWdn200clr,LWdn200) |
---|
[952] | 84 | REAL,ALLOCATABLE,SAVE :: LWup200clr(:), LWup200(:) |
---|
[967] | 85 | !$OMP THREADPRIVATE(LWup200clr,LWup200) |
---|
[952] | 86 | REAL,ALLOCATABLE,SAVE :: LWdnTOA(:), LWdnTOAclr(:) |
---|
[967] | 87 | !$OMP THREADPRIVATE(LWdnTOA,LWdnTOAclr) |
---|
[952] | 88 | ! pressure level |
---|
| 89 | REAL,ALLOCATABLE,SAVE :: tsumSTD(:,:,:) |
---|
[967] | 90 | !$OMP THREADPRIVATE(tsumSTD) |
---|
[952] | 91 | REAL,ALLOCATABLE,SAVE :: usumSTD(:,:,:), vsumSTD(:,:,:) |
---|
[967] | 92 | !$OMP THREADPRIVATE(usumSTD,vsumSTD) |
---|
[952] | 93 | REAL,ALLOCATABLE,SAVE :: wsumSTD(:,:,:), phisumSTD(:,:,:) |
---|
[967] | 94 | !$OMP THREADPRIVATE(wsumSTD,phisumSTD) |
---|
[952] | 95 | REAL,ALLOCATABLE,SAVE :: qsumSTD(:,:,:), rhsumSTD(:,:,:) |
---|
[967] | 96 | !$OMP THREADPRIVATE(qsumSTD,rhsumSTD) |
---|
[952] | 97 | REAL,ALLOCATABLE,SAVE :: tnondef(:,:,:) |
---|
[967] | 98 | !$OMP THREADPRIVATE(tnondef) |
---|
[952] | 99 | REAL,ALLOCATABLE,SAVE :: uvsumSTD(:,:,:) |
---|
[967] | 100 | !$OMP THREADPRIVATE(uvsumSTD) |
---|
[952] | 101 | REAL,ALLOCATABLE,SAVE :: vqsumSTD(:,:,:) |
---|
[967] | 102 | !$OMP THREADPRIVATE(vqsumSTD) |
---|
[952] | 103 | REAL,ALLOCATABLE,SAVE :: vTsumSTD(:,:,:) |
---|
[967] | 104 | !$OMP THREADPRIVATE(vTsumSTD) |
---|
[952] | 105 | REAL,ALLOCATABLE,SAVE :: wqsumSTD(:,:,:) |
---|
[967] | 106 | !$OMP THREADPRIVATE(wqsumSTD) |
---|
[952] | 107 | REAL,ALLOCATABLE,SAVE :: vphisumSTD(:,:,:) |
---|
[967] | 108 | !$OMP THREADPRIVATE(vphisumSTD) |
---|
[952] | 109 | REAL,ALLOCATABLE,SAVE :: wTsumSTD(:,:,:) |
---|
[967] | 110 | !$OMP THREADPRIVATE(wTsumSTD) |
---|
[952] | 111 | REAL,ALLOCATABLE,SAVE :: u2sumSTD(:,:,:) |
---|
[967] | 112 | !$OMP THREADPRIVATE(u2sumSTD) |
---|
[952] | 113 | REAL,ALLOCATABLE,SAVE :: v2sumSTD(:,:,:) |
---|
[967] | 114 | !$OMP THREADPRIVATE(v2sumSTD) |
---|
[952] | 115 | REAL,ALLOCATABLE,SAVE :: T2sumSTD(:,:,:) |
---|
[967] | 116 | !$OMP THREADPRIVATE(T2sumSTD) |
---|
[952] | 117 | INTEGER,ALLOCATABLE,SAVE :: seed_old(:,:) |
---|
[967] | 118 | !$OMP THREADPRIVATE(seed_old) |
---|
[952] | 119 | REAL,ALLOCATABLE,SAVE :: zuthe(:),zvthe(:) |
---|
[967] | 120 | !$OMP THREADPRIVATE(zuthe,zvthe) |
---|
[952] | 121 | REAL,ALLOCATABLE,SAVE :: alb_neig(:) |
---|
[967] | 122 | !$OMP THREADPRIVATE(alb_neig) |
---|
[952] | 123 | !cloud base mass flux |
---|
| 124 | REAL,ALLOCATABLE,SAVE :: ema_workcbmf(:), ema_cbmf(:) |
---|
[967] | 125 | !$OMP THREADPRIVATE(ema_workcbmf,ema_cbmf) |
---|
[952] | 126 | !cloud base pressure & cloud top pressure |
---|
| 127 | REAL,ALLOCATABLE,SAVE :: ema_pcb(:), ema_pct(:) |
---|
[967] | 128 | !$OMP THREADPRIVATE(ema_pcb,ema_pct) |
---|
[952] | 129 | REAL,ALLOCATABLE,SAVE :: Ma(:,:) ! undilute upward mass flux |
---|
[967] | 130 | !$OMP THREADPRIVATE(Ma) |
---|
[952] | 131 | REAL,ALLOCATABLE,SAVE :: qcondc(:,:) ! in-cld water content from convect |
---|
[967] | 132 | !$OMP THREADPRIVATE(qcondc) |
---|
[952] | 133 | REAL,ALLOCATABLE,SAVE :: wd(:) ! sb |
---|
[967] | 134 | !$OMP THREADPRIVATE(wd) |
---|
[952] | 135 | REAL,ALLOCATABLE,SAVE :: sigd(:) |
---|
[967] | 136 | !$OMP THREADPRIVATE(sigd) |
---|
[952] | 137 | ! |
---|
| 138 | REAL,ALLOCATABLE,SAVE :: cin(:) |
---|
[967] | 139 | !$OMP THREADPRIVATE(cin) |
---|
[952] | 140 | ! ftd : differential heating between wake and environment |
---|
| 141 | REAL,ALLOCATABLE,SAVE :: ftd(:,:) |
---|
[967] | 142 | !$OMP THREADPRIVATE(ftd) |
---|
[952] | 143 | ! fqd : differential moistening between wake and environment |
---|
| 144 | REAL,ALLOCATABLE,SAVE :: fqd(:,:) |
---|
[967] | 145 | !$OMP THREADPRIVATE(fqd) |
---|
[952] | 146 | !34EK |
---|
| 147 | ! -- Variables de controle de ALE et ALP |
---|
| 148 | !ALE : Energie disponible pour soulevement : utilisee par la |
---|
| 149 | ! convection d'Emanuel pour le declenchement et la regulation |
---|
| 150 | REAL,ALLOCATABLE,SAVE :: ALE(:) |
---|
[967] | 151 | !$OMP THREADPRIVATE(ALE) |
---|
[952] | 152 | !ALP : Puissance disponible pour soulevement |
---|
| 153 | REAL,ALLOCATABLE,SAVE :: ALP(:) |
---|
[967] | 154 | !$OMP THREADPRIVATE(ALP) |
---|
[952] | 155 | ! |
---|
| 156 | ! nouvelles variables pour le couplage convection-couche limite |
---|
| 157 | REAL,ALLOCATABLE,SAVE :: Ale_bl(:) |
---|
[967] | 158 | !$OMP THREADPRIVATE(Ale_bl) |
---|
[952] | 159 | REAL,ALLOCATABLE,SAVE :: Alp_bl(:) |
---|
[967] | 160 | !$OMP THREADPRIVATE(Alp_bl) |
---|
[952] | 161 | INTEGER,ALLOCATABLE,SAVE :: lalim_conv(:) |
---|
[967] | 162 | !$OMP THREADPRIVATE(lalim_conv) |
---|
[952] | 163 | REAL,ALLOCATABLE,SAVE :: wght_th(:,:) |
---|
[967] | 164 | !$OMP THREADPRIVATE(wght_th) |
---|
[952] | 165 | ! |
---|
| 166 | ! variables de la wake |
---|
| 167 | ! wake_deltat : ecart de temperature avec la zone non perturbee |
---|
| 168 | ! wake_deltaq : ecart d'humidite avec la zone non perturbee |
---|
| 169 | ! wake_Cstar : vitesse d'etalement de la poche |
---|
| 170 | ! wake_s : fraction surfacique occupee par la poche froide |
---|
| 171 | ! wake_fip : Gust Front Impinging power - ALP |
---|
| 172 | ! dt_wake, dq_wake: LS tendencies due to wake |
---|
| 173 | REAL,ALLOCATABLE,SAVE :: wake_deltat(:,:) |
---|
[967] | 174 | !$OMP THREADPRIVATE(wake_deltat) |
---|
[952] | 175 | REAL,ALLOCATABLE,SAVE :: wake_deltaq(:,:) |
---|
[967] | 176 | !$OMP THREADPRIVATE(wake_deltaq) |
---|
[952] | 177 | REAL,ALLOCATABLE,SAVE :: wake_Cstar(:) |
---|
[967] | 178 | !$OMP THREADPRIVATE(wake_Cstar) |
---|
[952] | 179 | REAL,ALLOCATABLE,SAVE :: wake_s(:) |
---|
[967] | 180 | !$OMP THREADPRIVATE(wake_s) |
---|
[952] | 181 | REAL,ALLOCATABLE,SAVE :: wake_fip(:) |
---|
[967] | 182 | !$OMP THREADPRIVATE(wake_fip) |
---|
[952] | 183 | REAL,ALLOCATABLE,SAVE :: dt_wake(:,:) |
---|
[967] | 184 | !$OMP THREADPRIVATE(dt_wake) |
---|
[952] | 185 | REAL,ALLOCATABLE,SAVE :: dq_wake(:,:) |
---|
[967] | 186 | !$OMP THREADPRIVATE(dq_wake) |
---|
[952] | 187 | ! |
---|
| 188 | ! pfrac_impa : Produits des coefs lessivage impaction |
---|
| 189 | ! pfrac_nucl : Produits des coefs lessivage nucleation |
---|
| 190 | ! pfrac_1nucl: Produits des coefs lessi nucl (alpha = 1) |
---|
| 191 | REAL,ALLOCATABLE,SAVE :: pfrac_impa(:,:), pfrac_nucl(:,:) |
---|
[967] | 192 | !$OMP THREADPRIVATE(pfrac_impa,pfrac_nucl) |
---|
[952] | 193 | REAL,ALLOCATABLE,SAVE :: pfrac_1nucl(:,:) |
---|
[967] | 194 | !$OMP THREADPRIVATE(pfrac_1nucl) |
---|
[952] | 195 | ! |
---|
| 196 | REAL,ALLOCATABLE,SAVE :: total_rain(:), nday_rain(:) |
---|
[967] | 197 | !$OMP THREADPRIVATE(total_rain,nday_rain) |
---|
[952] | 198 | REAL,ALLOCATABLE,SAVE :: paire_ter(:) |
---|
[967] | 199 | !$OMP THREADPRIVATE(paire_ter) |
---|
[952] | 200 | ! albsol1: albedo du sol total pour SW visible |
---|
| 201 | ! albsol2: albedo du sol total pour SW proche IR |
---|
| 202 | REAL,ALLOCATABLE,SAVE :: albsol1(:), albsol2(:) |
---|
[967] | 203 | !$OMP THREADPRIVATE(albsol1,albsol2) |
---|
[1279] | 204 | |
---|
| 205 | REAL, ALLOCATABLE, SAVE:: wo(:, :, :) |
---|
| 206 | ! column-density of ozone in a layer, in kilo-Dobsons |
---|
| 207 | ! Third dimension has size 1 or 2. |
---|
| 208 | ! "wo(:, :, 1)" is for the average day-night field, |
---|
| 209 | ! "wo(:, :, 2)" is for daylight time. |
---|
| 210 | !$OMP THREADPRIVATE(wo) |
---|
| 211 | |
---|
[952] | 212 | ! heat : chauffage solaire |
---|
| 213 | ! heat0: chauffage solaire ciel clair |
---|
| 214 | ! cool : refroidissement infrarouge |
---|
| 215 | ! cool0 : refroidissement infrarouge ciel clair |
---|
| 216 | ! sollwdown : downward LW flux at surface |
---|
| 217 | ! sollwdownclr : downward CS LW flux at surface |
---|
| 218 | ! toplwdown : downward CS LW flux at TOA |
---|
| 219 | ! toplwdownclr : downward CS LW flux at TOA |
---|
| 220 | REAL,ALLOCATABLE,SAVE :: clwcon0(:,:),rnebcon0(:,:) |
---|
[967] | 221 | !$OMP THREADPRIVATE(clwcon0,rnebcon0) |
---|
[952] | 222 | REAL,ALLOCATABLE,SAVE :: heat(:,:) |
---|
[967] | 223 | !$OMP THREADPRIVATE(heat) |
---|
[952] | 224 | REAL,ALLOCATABLE,SAVE :: heat0(:,:) |
---|
[967] | 225 | !$OMP THREADPRIVATE(heat0) |
---|
[952] | 226 | REAL,ALLOCATABLE,SAVE :: cool(:,:) |
---|
[967] | 227 | !$OMP THREADPRIVATE(cool) |
---|
[952] | 228 | REAL,ALLOCATABLE,SAVE :: cool0(:,:) |
---|
[967] | 229 | !$OMP THREADPRIVATE(cool0) |
---|
[952] | 230 | REAL,ALLOCATABLE,SAVE :: topsw(:), toplw(:) |
---|
[967] | 231 | !$OMP THREADPRIVATE(topsw,toplw) |
---|
[952] | 232 | REAL,ALLOCATABLE,SAVE :: sollwdown(:) |
---|
[967] | 233 | !$OMP THREADPRIVATE(sollwdown) |
---|
[952] | 234 | REAL,ALLOCATABLE,SAVE :: sollwdownclr(:) |
---|
[967] | 235 | !$OMP THREADPRIVATE(sollwdownclr) |
---|
[952] | 236 | REAL,ALLOCATABLE,SAVE :: toplwdown(:) |
---|
[967] | 237 | !$OMP THREADPRIVATE(toplwdown) |
---|
[952] | 238 | REAL,ALLOCATABLE,SAVE :: toplwdownclr(:) |
---|
[967] | 239 | !$OMP THREADPRIVATE(toplwdownclr) |
---|
[952] | 240 | REAL,ALLOCATABLE,SAVE :: topsw0(:),toplw0(:),solsw0(:),sollw0(:) |
---|
[967] | 241 | !$OMP THREADPRIVATE(topsw0,toplw0,solsw0,sollw0) |
---|
[952] | 242 | REAL,ALLOCATABLE,SAVE :: albpla(:) |
---|
[967] | 243 | !$OMP THREADPRIVATE(albpla) |
---|
[952] | 244 | ! pbase : cloud base pressure |
---|
| 245 | ! bbase : cloud base buoyancy |
---|
| 246 | REAL,ALLOCATABLE,SAVE :: cape(:) |
---|
[967] | 247 | !$OMP THREADPRIVATE(cape) |
---|
[952] | 248 | REAL,ALLOCATABLE,SAVE :: pbase(:) |
---|
[967] | 249 | !$OMP THREADPRIVATE(pbase) |
---|
[952] | 250 | REAL,ALLOCATABLE,SAVE :: bbase(:) |
---|
[967] | 251 | !$OMP THREADPRIVATE(bbase) |
---|
[952] | 252 | ! |
---|
| 253 | REAL,SAVE,ALLOCATABLE :: zqasc(:,:) |
---|
[967] | 254 | !$OMP THREADPRIVATE( zqasc) |
---|
[952] | 255 | INTEGER,ALLOCATABLE,SAVE :: ibas_con(:), itop_con(:) |
---|
[967] | 256 | !$OMP THREADPRIVATE(ibas_con,itop_con) |
---|
[952] | 257 | REAL,SAVE,ALLOCATABLE :: rain_con(:) |
---|
[967] | 258 | !$OMP THREADPRIVATE(rain_con) |
---|
[952] | 259 | REAL,SAVE,ALLOCATABLE :: snow_con(:) |
---|
[967] | 260 | !$OMP THREADPRIVATE(snow_con) |
---|
[952] | 261 | ! |
---|
| 262 | REAL,SAVE,ALLOCATABLE :: rlonPOS(:) |
---|
[967] | 263 | !$OMP THREADPRIVATE(rlonPOS) |
---|
[952] | 264 | REAL,SAVE,ALLOCATABLE :: newsst(:) |
---|
[967] | 265 | !$OMP THREADPRIVATE(newsst) |
---|
[952] | 266 | REAL,SAVE,ALLOCATABLE :: u10m(:,:), v10m(:,:) |
---|
[967] | 267 | !$OMP THREADPRIVATE(u10m,v10m) |
---|
[952] | 268 | ! |
---|
| 269 | ! ok_ade=T -ADE=topswad-topsw |
---|
| 270 | ! ok_aie=T -> |
---|
| 271 | ! ok_ade=T -AIE=topswai-topswad |
---|
[1279] | 272 | ! ok_ade=F -AIE=topswai-topsw |
---|
[952] | 273 | ! |
---|
| 274 | !topswad, solswad : Aerosol direct effect |
---|
| 275 | REAL,SAVE,ALLOCATABLE :: topswad(:), solswad(:) |
---|
[967] | 276 | !$OMP THREADPRIVATE(topswad,solswad) |
---|
[952] | 277 | !topswai, solswai : Aerosol indirect effect |
---|
| 278 | REAL,SAVE,ALLOCATABLE :: topswai(:), solswai(:) |
---|
[967] | 279 | !$OMP THREADPRIVATE(topswai,solswai) |
---|
[959] | 280 | |
---|
[1279] | 281 | REAL,SAVE,ALLOCATABLE :: tau_aero(:,:,:,:), piz_aero(:,:,:,:), cg_aero(:,:,:,:) |
---|
| 282 | !$OMP THREADPRIVATE(tau_aero, piz_aero, cg_aero) |
---|
[952] | 283 | REAL,SAVE,ALLOCATABLE :: ccm(:,:,:) |
---|
[967] | 284 | !$OMP THREADPRIVATE(ccm) |
---|
[952] | 285 | |
---|
[909] | 286 | CONTAINS |
---|
| 287 | |
---|
| 288 | !====================================================================== |
---|
[1279] | 289 | SUBROUTINE phys_state_var_init(read_climoz) |
---|
[909] | 290 | use dimphy |
---|
[1279] | 291 | use aero_mod |
---|
[909] | 292 | IMPLICIT NONE |
---|
[1279] | 293 | |
---|
| 294 | integer, intent(in):: read_climoz |
---|
| 295 | ! read ozone climatology |
---|
| 296 | ! Allowed values are 0, 1 and 2 |
---|
| 297 | ! 0: do not read an ozone climatology |
---|
| 298 | ! 1: read a single ozone climatology that will be used day and night |
---|
| 299 | ! 2: read two ozone climatologies, the average day and night |
---|
| 300 | ! climatology and the daylight climatology |
---|
| 301 | |
---|
[909] | 302 | #include "indicesol.h" |
---|
[959] | 303 | #include "control.h" |
---|
[952] | 304 | ALLOCATE(rlat(klon), rlon(klon)) |
---|
| 305 | ALLOCATE(pctsrf(klon,nbsrf)) |
---|
| 306 | ALLOCATE(ftsol(klon,nbsrf)) |
---|
| 307 | ALLOCATE(falb1(klon,nbsrf)) |
---|
| 308 | ALLOCATE(falb2(klon,nbsrf)) |
---|
| 309 | ALLOCATE(rain_fall(klon)) |
---|
| 310 | ALLOCATE(snow_fall(klon)) |
---|
[909] | 311 | ALLOCATE(solsw(klon), sollw(klon)) |
---|
[952] | 312 | ALLOCATE(radsol(klon)) |
---|
| 313 | ALLOCATE(zmea(klon), zstd(klon), zsig(klon), zgam(klon)) |
---|
| 314 | ALLOCATE(zthe(klon), zpic(klon), zval(klon)) |
---|
[909] | 315 | |
---|
[952] | 316 | ALLOCATE(rugoro(klon)) |
---|
| 317 | ALLOCATE(t_ancien(klon,klev), q_ancien(klon,klev)) |
---|
[1054] | 318 | ALLOCATE(u_ancien(klon,klev), v_ancien(klon,klev)) |
---|
[952] | 319 | ALLOCATE(clwcon(klon,klev),rnebcon(klon,klev)) |
---|
| 320 | ALLOCATE(ratqs(klon,klev)) |
---|
[909] | 321 | ALLOCATE(pbl_tke(klon,klev+1,nbsrf)) |
---|
[927] | 322 | ALLOCATE(zmax0(klon), f0(klon)) |
---|
[937] | 323 | ALLOCATE(ema_work1(klon,klev), ema_work2(klon,klev)) |
---|
[942] | 324 | ALLOCATE(entr_therm(klon,klev), fm_therm(klon,klev+1)) |
---|
[952] | 325 | ALLOCATE(detr_therm(klon,klev)) |
---|
| 326 | ! pour phsystoke avec thermiques |
---|
| 327 | ALLOCATE(clwcon0th(klon,klev),rnebcon0th(klon,klev)) |
---|
| 328 | ! radiation outputs |
---|
| 329 | ALLOCATE(swdn0(klon,klevp1), swdn(klon,klevp1)) |
---|
| 330 | ALLOCATE(swup0(klon,klevp1), swup(klon,klevp1)) |
---|
| 331 | ALLOCATE(lwdn0(klon,klevp1), lwdn(klon,klevp1)) |
---|
| 332 | ALLOCATE(lwup0(klon,klevp1), lwup(klon,klevp1)) |
---|
| 333 | ALLOCATE(SWdn200clr(klon), SWdn200(klon)) |
---|
| 334 | ALLOCATE(SWup200clr(klon), SWup200(klon)) |
---|
| 335 | ALLOCATE(LWdn200clr(klon), LWdn200(klon)) |
---|
| 336 | ALLOCATE(LWup200clr(klon), LWup200(klon)) |
---|
| 337 | ALLOCATE(LWdnTOA(klon), LWdnTOAclr(klon)) |
---|
| 338 | ! pressure level |
---|
| 339 | ALLOCATE(tsumSTD(klon,nlevSTD,nout)) |
---|
| 340 | ALLOCATE(usumSTD(klon,nlevSTD,nout), vsumSTD(klon,nlevSTD,nout)) |
---|
| 341 | ALLOCATE(wsumSTD(klon,nlevSTD,nout), phisumSTD(klon,nlevSTD,nout)) |
---|
| 342 | ALLOCATE(qsumSTD(klon,nlevSTD,nout), rhsumSTD(klon,nlevSTD,nout)) |
---|
| 343 | ALLOCATE(tnondef(klon,nlevSTD,nout)) |
---|
| 344 | ALLOCATE(uvsumSTD(klon,nlevSTD,nout)) |
---|
| 345 | ALLOCATE(vqsumSTD(klon,nlevSTD,nout)) |
---|
| 346 | ALLOCATE(vTsumSTD(klon,nlevSTD,nout)) |
---|
| 347 | ALLOCATE(wqsumSTD(klon,nlevSTD,nout)) |
---|
| 348 | ALLOCATE(vphisumSTD(klon,nlevSTD,nout)) |
---|
| 349 | ALLOCATE(wTsumSTD(klon,nlevSTD,nout)) |
---|
| 350 | ALLOCATE(u2sumSTD(klon,nlevSTD,nout)) |
---|
| 351 | ALLOCATE(v2sumSTD(klon,nlevSTD,nout)) |
---|
| 352 | ALLOCATE(T2sumSTD(klon,nlevSTD,nout)) |
---|
| 353 | ALLOCATE(seed_old(klon,napisccp)) |
---|
| 354 | ALLOCATE(zuthe(klon),zvthe(klon)) |
---|
| 355 | ALLOCATE(alb_neig(klon)) |
---|
| 356 | !cloud base mass flux |
---|
| 357 | ALLOCATE(ema_workcbmf(klon), ema_cbmf(klon)) |
---|
| 358 | !cloud base pressure & cloud top pressure |
---|
| 359 | ALLOCATE(ema_pcb(klon), ema_pct(klon)) |
---|
| 360 | ! |
---|
| 361 | ALLOCATE(Ma(klon,klev)) |
---|
| 362 | ALLOCATE(qcondc(klon,klev)) |
---|
| 363 | ALLOCATE(wd(klon)) |
---|
| 364 | ALLOCATE(sigd(klon)) |
---|
| 365 | ALLOCATE(cin(klon), ALE(klon), ALP(klon)) |
---|
| 366 | ALLOCATE(ftd(klon,klev), fqd(klon,klev)) |
---|
| 367 | ALLOCATE(Ale_bl(klon)) |
---|
| 368 | ALLOCATE(Alp_bl(klon)) |
---|
| 369 | ALLOCATE(lalim_conv(klon)) |
---|
| 370 | ALLOCATE(wght_th(klon,klev)) |
---|
| 371 | ALLOCATE(wake_deltat(klon,klev), wake_deltaq(klon,klev)) |
---|
| 372 | ALLOCATE(wake_Cstar(klon), wake_s(klon), wake_fip(klon)) |
---|
| 373 | ALLOCATE(dt_wake(klon,klev), dq_wake(klon,klev)) |
---|
| 374 | ALLOCATE(pfrac_impa(klon,klev), pfrac_nucl(klon,klev)) |
---|
| 375 | ALLOCATE(pfrac_1nucl(klon,klev)) |
---|
| 376 | ALLOCATE(total_rain(klon), nday_rain(klon)) |
---|
| 377 | ALLOCATE(paire_ter(klon)) |
---|
| 378 | ALLOCATE(albsol1(klon), albsol2(klon)) |
---|
[1279] | 379 | |
---|
| 380 | if (read_climoz <= 1) then |
---|
| 381 | ALLOCATE(wo(klon,klev, 1)) |
---|
| 382 | else |
---|
| 383 | ! read_climoz == 2 |
---|
| 384 | ALLOCATE(wo(klon,klev, 2)) |
---|
| 385 | end if |
---|
| 386 | |
---|
[952] | 387 | ALLOCATE(clwcon0(klon,klev),rnebcon0(klon,klev)) |
---|
| 388 | ALLOCATE(heat(klon,klev), heat0(klon,klev)) |
---|
| 389 | ALLOCATE(cool(klon,klev), cool0(klon,klev)) |
---|
| 390 | ALLOCATE(topsw(klon), toplw(klon)) |
---|
| 391 | ALLOCATE(sollwdown(klon), sollwdownclr(klon)) |
---|
| 392 | ALLOCATE(toplwdown(klon), toplwdownclr(klon)) |
---|
| 393 | ALLOCATE(topsw0(klon),toplw0(klon),solsw0(klon),sollw0(klon)) |
---|
| 394 | ALLOCATE(albpla(klon)) |
---|
| 395 | ALLOCATE(cape(klon)) |
---|
| 396 | ALLOCATE(pbase(klon),bbase(klon)) |
---|
| 397 | ALLOCATE(zqasc(klon,klev)) |
---|
| 398 | ALLOCATE(ibas_con(klon), itop_con(klon)) |
---|
| 399 | ALLOCATE(rain_con(klon), snow_con(klon)) |
---|
| 400 | ALLOCATE(rlonPOS(klon)) |
---|
| 401 | ALLOCATE(newsst(klon)) |
---|
| 402 | ALLOCATE(u10m(klon,nbsrf), v10m(klon,nbsrf)) |
---|
| 403 | ALLOCATE(topswad(klon), solswad(klon)) |
---|
| 404 | ALLOCATE(topswai(klon), solswai(klon)) |
---|
[1279] | 405 | ALLOCATE(tau_aero(klon,klev,naero_grp,nbands),piz_aero(klon,klev,naero_grp,nbands),cg_aero(klon,klev,naero_grp,nbands)) |
---|
| 406 | ALLOCATE(ccm(klon,klev,nbands)) |
---|
[959] | 407 | |
---|
[909] | 408 | END SUBROUTINE phys_state_var_init |
---|
| 409 | |
---|
| 410 | !====================================================================== |
---|
| 411 | SUBROUTINE phys_state_var_end |
---|
| 412 | use dimphy |
---|
| 413 | IMPLICIT NONE |
---|
| 414 | #include "indicesol.h" |
---|
[959] | 415 | #include "control.h" |
---|
[909] | 416 | |
---|
[952] | 417 | deallocate(rlat, rlon, pctsrf, ftsol, falb1, falb2) |
---|
| 418 | deallocate(rain_fall, snow_fall, solsw, sollw, radsol) |
---|
| 419 | deallocate(zmea, zstd, zsig, zgam) |
---|
| 420 | deallocate(zthe, zpic, zval) |
---|
| 421 | deallocate(rugoro, t_ancien, q_ancien, clwcon, rnebcon) |
---|
[1054] | 422 | deallocate( u_ancien, v_ancien ) |
---|
[952] | 423 | deallocate(ratqs, pbl_tke) |
---|
| 424 | deallocate(zmax0, f0) |
---|
| 425 | deallocate(ema_work1, ema_work2) |
---|
| 426 | deallocate(entr_therm, fm_therm) |
---|
| 427 | deallocate(detr_therm) |
---|
| 428 | deallocate(clwcon0th, rnebcon0th) |
---|
| 429 | ! radiation outputs |
---|
| 430 | deallocate(swdn0, swdn) |
---|
| 431 | deallocate(swup0, swup) |
---|
| 432 | deallocate(lwdn0, lwdn) |
---|
| 433 | deallocate(lwup0, lwup) |
---|
| 434 | deallocate(SWdn200clr, SWdn200) |
---|
| 435 | deallocate(SWup200clr, SWup200) |
---|
| 436 | deallocate(LWdn200clr, LWdn200) |
---|
| 437 | deallocate(LWup200clr, LWup200) |
---|
| 438 | deallocate(LWdnTOA, LWdnTOAclr) |
---|
| 439 | ! pressure level |
---|
| 440 | deallocate(tsumSTD) |
---|
| 441 | deallocate(usumSTD, vsumSTD) |
---|
| 442 | deallocate(wsumSTD, phisumSTD) |
---|
| 443 | deallocate(tnondef) |
---|
[970] | 444 | deallocate(qsumSTD, rhsumSTD) |
---|
[952] | 445 | deallocate(uvsumSTD) |
---|
| 446 | deallocate(vqsumSTD) |
---|
| 447 | deallocate(vTsumSTD) |
---|
| 448 | deallocate(wqsumSTD) |
---|
| 449 | deallocate(vphisumSTD) |
---|
| 450 | deallocate(wTsumSTD) |
---|
| 451 | deallocate(u2sumSTD) |
---|
| 452 | deallocate(v2sumSTD) |
---|
| 453 | deallocate(T2sumSTD) |
---|
| 454 | deallocate(seed_old) |
---|
| 455 | deallocate(zuthe, zvthe) |
---|
| 456 | deallocate(alb_neig) |
---|
| 457 | deallocate(ema_workcbmf, ema_cbmf) |
---|
| 458 | deallocate(ema_pcb, ema_pct) |
---|
| 459 | deallocate(Ma, qcondc) |
---|
| 460 | deallocate(wd, sigd) |
---|
| 461 | deallocate(cin, ALE, ALP) |
---|
| 462 | deallocate(ftd, fqd) |
---|
| 463 | deallocate(Ale_bl, Alp_bl) |
---|
| 464 | deallocate(lalim_conv, wght_th) |
---|
| 465 | deallocate(wake_deltat, wake_deltaq) |
---|
| 466 | deallocate(wake_Cstar, wake_s, wake_fip) |
---|
| 467 | deallocate(dt_wake, dq_wake) |
---|
| 468 | deallocate(pfrac_impa, pfrac_nucl) |
---|
| 469 | deallocate(pfrac_1nucl) |
---|
| 470 | deallocate(total_rain, nday_rain) |
---|
| 471 | deallocate(paire_ter) |
---|
| 472 | deallocate(albsol1, albsol2) |
---|
| 473 | deallocate(wo) |
---|
| 474 | deallocate(clwcon0,rnebcon0) |
---|
| 475 | deallocate(heat, heat0) |
---|
| 476 | deallocate(cool, cool0) |
---|
| 477 | deallocate(topsw, toplw) |
---|
| 478 | deallocate(sollwdown, sollwdownclr) |
---|
| 479 | deallocate(toplwdown, toplwdownclr) |
---|
| 480 | deallocate(topsw0,toplw0,solsw0,sollw0) |
---|
| 481 | deallocate(albpla) |
---|
| 482 | deallocate(cape) |
---|
| 483 | deallocate(pbase,bbase) |
---|
| 484 | deallocate(zqasc) |
---|
| 485 | deallocate(ibas_con, itop_con) |
---|
| 486 | deallocate(rain_con, snow_con) |
---|
| 487 | deallocate(rlonPOS) |
---|
| 488 | deallocate(newsst) |
---|
| 489 | deallocate(u10m, v10m) |
---|
| 490 | deallocate(topswad, solswad) |
---|
| 491 | deallocate(topswai, solswai) |
---|
[1279] | 492 | deallocate(tau_aero,piz_aero,cg_aero) |
---|
[952] | 493 | deallocate(ccm) |
---|
[959] | 494 | |
---|
[909] | 495 | END SUBROUTINE phys_state_var_end |
---|
| 496 | |
---|
| 497 | END MODULE phys_state_var_mod |
---|