[1403] | 1 | ! |
---|
| 2 | ! $Id: phys_state_var_mod.F90 3496 2019-05-10 10:17:35Z oboucher $ |
---|
| 3 | ! |
---|
[909] | 4 | MODULE phys_state_var_mod |
---|
| 5 | ! Variables sauvegardees pour le startphy.nc |
---|
| 6 | !====================================================================== |
---|
| 7 | ! |
---|
| 8 | ! |
---|
| 9 | !====================================================================== |
---|
| 10 | ! Declaration des variables |
---|
| 11 | USE dimphy |
---|
[2271] | 12 | USE netcdf, only: nf90_fill_real |
---|
[952] | 13 | INTEGER, PARAMETER :: nlevSTD=17 |
---|
[1352] | 14 | INTEGER, PARAMETER :: nlevSTD8=8 |
---|
| 15 | INTEGER, PARAMETER :: nlevSTD3=3 |
---|
[952] | 16 | INTEGER, PARAMETER :: nout=3 |
---|
| 17 | INTEGER, PARAMETER :: napisccp=1 |
---|
[3150] | 18 | INTEGER, SAVE :: radpas ! radiation is called every "radpas" step |
---|
| 19 | INTEGER, SAVE :: cvpas ! convection is called every "cvpas" step |
---|
[3435] | 20 | INTEGER, SAVE :: cvpas_0 = 1 ! reference value for cvpas |
---|
[3150] | 21 | INTEGER, SAVE :: wkpas ! wake scheme is called every "wkpas" step |
---|
[2271] | 22 | REAL, PARAMETER :: missing_val_nf90=nf90_fill_real |
---|
[1352] | 23 | !$OMP THREADPRIVATE(radpas) |
---|
[2707] | 24 | !$OMP THREADPRIVATE(cvpas) |
---|
[3150] | 25 | !$OMP THREADPRIVATE(cvpas_0) |
---|
[2730] | 26 | !$OMP THREADPRIVATE(wkpas) |
---|
[3435] | 27 | REAL, SAVE :: phys_tstep=0, solaire_etat0 |
---|
| 28 | !$OMP THREADPRIVATE(phys_tstep, solaire_etat0) |
---|
[967] | 29 | |
---|
[2399] | 30 | REAL, ALLOCATABLE, SAVE :: pctsrf(:,:) |
---|
| 31 | !$OMP THREADPRIVATE(pctsrf) |
---|
[909] | 32 | REAL, ALLOCATABLE, SAVE :: ftsol(:,:) |
---|
[967] | 33 | !$OMP THREADPRIVATE(ftsol) |
---|
[2243] | 34 | REAL,ALLOCATABLE,SAVE :: qsol(:),fevap(:,:),z0m(:,:),z0h(:,:),agesno(:,:) |
---|
| 35 | !$OMP THREADPRIVATE(qsol,fevap,z0m,z0h,agesno) |
---|
[2952] | 36 | !FC drag des arbres |
---|
| 37 | REAL, ALLOCATABLE, SAVE :: treedrg(:,:,:) |
---|
| 38 | !$OMP THREADPRIVATE(treedrg) |
---|
| 39 | |
---|
[967] | 40 | ! character(len=6), SAVE :: ocean |
---|
| 41 | !!!!!!$OMP THREADPRIVATE(ocean) |
---|
| 42 | ! logical, SAVE :: ok_veget |
---|
| 43 | !!!!!!$OMP THREADPRIVATE(ok_veget) |
---|
[909] | 44 | REAL, ALLOCATABLE, SAVE :: falb1(:,:), falb2(:,:) |
---|
[967] | 45 | !$OMP THREADPRIVATE(falb1, falb2) |
---|
[2227] | 46 | |
---|
| 47 | !albedo SB >>> |
---|
| 48 | REAL, ALLOCATABLE, SAVE :: falb_dif(:,:,:), falb_dir(:,:,:) |
---|
| 49 | real, allocatable, save :: chl_con(:) |
---|
| 50 | !$OMP THREADPRIVATE(falb_dir,falb_dif,chl_con) |
---|
| 51 | !albedo SB <<< |
---|
| 52 | |
---|
| 53 | |
---|
[909] | 54 | REAL, ALLOCATABLE, SAVE :: rain_fall(:), snow_fall(:) |
---|
[967] | 55 | !$OMP THREADPRIVATE( rain_fall, snow_fall) |
---|
[909] | 56 | REAL, ALLOCATABLE, SAVE :: solsw(:), sollw(:) |
---|
[967] | 57 | !$OMP THREADPRIVATE(solsw, sollw) |
---|
[909] | 58 | REAL, ALLOCATABLE, SAVE :: radsol(:) |
---|
[967] | 59 | !$OMP THREADPRIVATE(radsol) |
---|
[2366] | 60 | REAL, ALLOCATABLE, SAVE :: swradcorr(:) |
---|
| 61 | !$OMP THREADPRIVATE(swradcorr) |
---|
[967] | 62 | |
---|
[909] | 63 | !clesphy0 param physiq |
---|
| 64 | ! |
---|
| 65 | ! Parametres de l'Orographie a l'Echelle Sous-Maille (OESM): |
---|
| 66 | ! |
---|
| 67 | REAL, ALLOCATABLE, SAVE :: zmea(:), zstd(:), zsig(:), zgam(:) |
---|
[967] | 68 | !$OMP THREADPRIVATE(zmea, zstd, zsig, zgam) |
---|
[909] | 69 | REAL, ALLOCATABLE, SAVE :: zthe(:), zpic(:), zval(:) |
---|
[967] | 70 | !$OMP THREADPRIVATE(zthe, zpic, zval) |
---|
[909] | 71 | ! REAL tabcntr0(100) |
---|
| 72 | REAL, ALLOCATABLE, SAVE :: rugoro(:) |
---|
[967] | 73 | !$OMP THREADPRIVATE(rugoro) |
---|
[909] | 74 | REAL, ALLOCATABLE, SAVE :: t_ancien(:,:), q_ancien(:,:) |
---|
[967] | 75 | !$OMP THREADPRIVATE(t_ancien, q_ancien) |
---|
[2497] | 76 | REAL, ALLOCATABLE, SAVE :: ql_ancien(:,:), qs_ancien(:,:) |
---|
| 77 | !$OMP THREADPRIVATE(ql_ancien, qs_ancien) |
---|
[2499] | 78 | REAL, ALLOCATABLE, SAVE :: prw_ancien(:), prlw_ancien(:), prsw_ancien(:) |
---|
| 79 | !$OMP THREADPRIVATE(prw_ancien, prlw_ancien, prsw_ancien) |
---|
[1054] | 80 | REAL, ALLOCATABLE, SAVE :: u_ancien(:,:), v_ancien(:,:) |
---|
| 81 | !$OMP THREADPRIVATE(u_ancien, v_ancien) |
---|
[1742] | 82 | !!! RomP >>> |
---|
| 83 | REAL, ALLOCATABLE, SAVE :: tr_ancien(:,:,:) |
---|
| 84 | !$OMP THREADPRIVATE(tr_ancien) |
---|
| 85 | !!! RomP <<< |
---|
[909] | 86 | LOGICAL, SAVE :: ancien_ok |
---|
[967] | 87 | !$OMP THREADPRIVATE(ancien_ok) |
---|
[909] | 88 | REAL, ALLOCATABLE, SAVE :: clwcon(:,:),rnebcon(:,:) |
---|
[967] | 89 | !$OMP THREADPRIVATE(clwcon,rnebcon) |
---|
[2205] | 90 | REAL, ALLOCATABLE, SAVE :: qtc_cv(:,:),sigt_cv(:,:) |
---|
| 91 | !$OMP THREADPRIVATE(qtc_cv,sigt_cv) |
---|
[909] | 92 | REAL, ALLOCATABLE, SAVE :: ratqs(:,:) |
---|
[967] | 93 | !$OMP THREADPRIVATE(ratqs) |
---|
[909] | 94 | REAL, ALLOCATABLE, SAVE :: pbl_tke(:,:,:) ! turb kinetic energy |
---|
[1761] | 95 | REAL, ALLOCATABLE, SAVE :: coefh(:,:,:) ! Kz enthalpie |
---|
| 96 | REAL, ALLOCATABLE, SAVE :: coefm(:,:,:) ! Kz momentum |
---|
| 97 | !$OMP THREADPRIVATE(pbl_tke, coefh,coefm) |
---|
[2159] | 98 | !nrlmd< |
---|
| 99 | REAL, ALLOCATABLE, SAVE :: delta_tsurf(:,:) ! Surface temperature difference inside-outside cold pool |
---|
| 100 | !$OMP THREADPRIVATE(delta_tsurf) |
---|
| 101 | !>nrlmd |
---|
[927] | 102 | REAL, ALLOCATABLE, SAVE :: zmax0(:), f0(:) ! |
---|
[967] | 103 | !$OMP THREADPRIVATE(zmax0,f0) |
---|
[1827] | 104 | REAL, ALLOCATABLE, SAVE :: sig1(:,:), w01(:,:) |
---|
| 105 | !$OMP THREADPRIVATE(sig1,w01) |
---|
[942] | 106 | REAL, ALLOCATABLE, SAVE :: entr_therm(:,:), fm_therm(:,:) |
---|
[967] | 107 | !$OMP THREADPRIVATE(entr_therm,fm_therm) |
---|
[952] | 108 | REAL, ALLOCATABLE, SAVE :: detr_therm(:,:) |
---|
[967] | 109 | !$OMP THREADPRIVATE(detr_therm) |
---|
[952] | 110 | !IM 150408 |
---|
| 111 | ! pour phsystoke avec thermiques |
---|
| 112 | REAL,ALLOCATABLE,SAVE :: clwcon0th(:,:),rnebcon0th(:,:) |
---|
[967] | 113 | !$OMP THREADPRIVATE(clwcon0th,rnebcon0th) |
---|
[952] | 114 | ! radiation outputs |
---|
[3082] | 115 | REAL,ALLOCATABLE,SAVE :: swdnc0(:,:), swdn0(:,:), swdn(:,:) |
---|
| 116 | !$OMP THREADPRIVATE(swdnc0,swdn0,swdn) |
---|
| 117 | REAL,ALLOCATABLE,SAVE :: swupc0(:,:), swup0(:,:), swup(:,:) |
---|
| 118 | !$OMP THREADPRIVATE(swupc0, swup0,swup) |
---|
[952] | 119 | REAL,ALLOCATABLE,SAVE :: SWdn200clr(:), SWdn200(:) |
---|
[967] | 120 | !$OMP THREADPRIVATE(SWdn200clr,SWdn200) |
---|
[952] | 121 | REAL,ALLOCATABLE,SAVE :: SWup200clr(:), SWup200(:) |
---|
[967] | 122 | !$OMP THREADPRIVATE(SWup200clr,SWup200) |
---|
[3106] | 123 | REAL,ALLOCATABLE,SAVE :: lwdnc0(:,:), lwdn0(:,:), lwdn(:,:) |
---|
| 124 | !$OMP THREADPRIVATE(lwdnc0,lwdn0,lwdn) |
---|
| 125 | REAL,ALLOCATABLE,SAVE :: lwupc0(:,:), lwup0(:,:), lwup(:,:) |
---|
| 126 | !$OMP THREADPRIVATE(lwupc0,lwup0,lwup) |
---|
[952] | 127 | REAL,ALLOCATABLE,SAVE :: LWdn200clr(:), LWdn200(:) |
---|
[967] | 128 | !$OMP THREADPRIVATE(LWdn200clr,LWdn200) |
---|
[952] | 129 | REAL,ALLOCATABLE,SAVE :: LWup200clr(:), LWup200(:) |
---|
[967] | 130 | !$OMP THREADPRIVATE(LWup200clr,LWup200) |
---|
[952] | 131 | REAL,ALLOCATABLE,SAVE :: LWdnTOA(:), LWdnTOAclr(:) |
---|
[967] | 132 | !$OMP THREADPRIVATE(LWdnTOA,LWdnTOAclr) |
---|
[952] | 133 | ! pressure level |
---|
| 134 | REAL,ALLOCATABLE,SAVE :: tsumSTD(:,:,:) |
---|
[967] | 135 | !$OMP THREADPRIVATE(tsumSTD) |
---|
[952] | 136 | REAL,ALLOCATABLE,SAVE :: usumSTD(:,:,:), vsumSTD(:,:,:) |
---|
[967] | 137 | !$OMP THREADPRIVATE(usumSTD,vsumSTD) |
---|
[952] | 138 | REAL,ALLOCATABLE,SAVE :: wsumSTD(:,:,:), phisumSTD(:,:,:) |
---|
[967] | 139 | !$OMP THREADPRIVATE(wsumSTD,phisumSTD) |
---|
[952] | 140 | REAL,ALLOCATABLE,SAVE :: qsumSTD(:,:,:), rhsumSTD(:,:,:) |
---|
[967] | 141 | !$OMP THREADPRIVATE(qsumSTD,rhsumSTD) |
---|
[952] | 142 | REAL,ALLOCATABLE,SAVE :: tnondef(:,:,:) |
---|
[967] | 143 | !$OMP THREADPRIVATE(tnondef) |
---|
[952] | 144 | REAL,ALLOCATABLE,SAVE :: uvsumSTD(:,:,:) |
---|
[967] | 145 | !$OMP THREADPRIVATE(uvsumSTD) |
---|
[952] | 146 | REAL,ALLOCATABLE,SAVE :: vqsumSTD(:,:,:) |
---|
[967] | 147 | !$OMP THREADPRIVATE(vqsumSTD) |
---|
[952] | 148 | REAL,ALLOCATABLE,SAVE :: vTsumSTD(:,:,:) |
---|
[967] | 149 | !$OMP THREADPRIVATE(vTsumSTD) |
---|
[952] | 150 | REAL,ALLOCATABLE,SAVE :: wqsumSTD(:,:,:) |
---|
[967] | 151 | !$OMP THREADPRIVATE(wqsumSTD) |
---|
[952] | 152 | REAL,ALLOCATABLE,SAVE :: vphisumSTD(:,:,:) |
---|
[967] | 153 | !$OMP THREADPRIVATE(vphisumSTD) |
---|
[952] | 154 | REAL,ALLOCATABLE,SAVE :: wTsumSTD(:,:,:) |
---|
[967] | 155 | !$OMP THREADPRIVATE(wTsumSTD) |
---|
[952] | 156 | REAL,ALLOCATABLE,SAVE :: u2sumSTD(:,:,:) |
---|
[967] | 157 | !$OMP THREADPRIVATE(u2sumSTD) |
---|
[952] | 158 | REAL,ALLOCATABLE,SAVE :: v2sumSTD(:,:,:) |
---|
[967] | 159 | !$OMP THREADPRIVATE(v2sumSTD) |
---|
[952] | 160 | REAL,ALLOCATABLE,SAVE :: T2sumSTD(:,:,:) |
---|
[967] | 161 | !$OMP THREADPRIVATE(T2sumSTD) |
---|
[1398] | 162 | REAL,ALLOCATABLE,SAVE :: O3sumSTD(:,:,:), O3daysumSTD(:,:,:) |
---|
| 163 | !$OMP THREADPRIVATE(O3sumSTD,O3daysumSTD) |
---|
[1352] | 164 | !IM begin |
---|
| 165 | REAL,ALLOCATABLE,SAVE :: wlevSTD(:,:), ulevSTD(:,:), vlevSTD(:,:) |
---|
[1362] | 166 | !$OMP THREADPRIVATE(wlevSTD,ulevSTD,vlevSTD) |
---|
[1352] | 167 | REAL,ALLOCATABLE,SAVE :: tlevSTD(:,:), qlevSTD(:,:), rhlevSTD(:,:) |
---|
[1362] | 168 | !$OMP THREADPRIVATE(tlevSTD,qlevSTD,rhlevSTD) |
---|
[1352] | 169 | REAL,ALLOCATABLE,SAVE :: philevSTD(:,:) |
---|
[1362] | 170 | !$OMP THREADPRIVATE(philevSTD) |
---|
[1352] | 171 | REAL,ALLOCATABLE,SAVE :: uvSTD(:,:) |
---|
[1362] | 172 | !$OMP THREADPRIVATE(uvSTD) |
---|
[1352] | 173 | REAL,ALLOCATABLE,SAVE :: vqSTD(:,:) |
---|
[1362] | 174 | !$OMP THREADPRIVATE(vqSTD) |
---|
[1352] | 175 | REAL,ALLOCATABLE,SAVE :: vTSTD(:,:) |
---|
[1362] | 176 | !$OMP THREADPRIVATE(vTSTD) |
---|
[1352] | 177 | REAL,ALLOCATABLE,SAVE :: wqSTD(:,:) |
---|
[1362] | 178 | !$OMP THREADPRIVATE(wqSTD) |
---|
[1352] | 179 | REAL,ALLOCATABLE,SAVE :: vphiSTD(:,:) |
---|
[1362] | 180 | !$OMP THREADPRIVATE(vphiSTD) |
---|
[1352] | 181 | REAL,ALLOCATABLE,SAVE :: wTSTD(:,:) |
---|
[1362] | 182 | !$OMP THREADPRIVATE(wTSTD) |
---|
[1352] | 183 | REAL,ALLOCATABLE,SAVE :: u2STD(:,:) |
---|
[1362] | 184 | !$OMP THREADPRIVATE(u2STD) |
---|
[1352] | 185 | REAL,ALLOCATABLE,SAVE :: v2STD(:,:) |
---|
[1362] | 186 | !$OMP THREADPRIVATE(v2STD) |
---|
[1352] | 187 | REAL,ALLOCATABLE,SAVE :: T2STD(:,:) |
---|
[1362] | 188 | !$OMP THREADPRIVATE(T2STD) |
---|
[1398] | 189 | REAL,ALLOCATABLE,SAVE :: O3STD(:,:), O3daySTD(:,:) |
---|
| 190 | !$OMP THREADPRIVATE(O3STD,O3daySTD) |
---|
[1352] | 191 | !IM end |
---|
[952] | 192 | INTEGER,ALLOCATABLE,SAVE :: seed_old(:,:) |
---|
[967] | 193 | !$OMP THREADPRIVATE(seed_old) |
---|
[952] | 194 | REAL,ALLOCATABLE,SAVE :: zuthe(:),zvthe(:) |
---|
[967] | 195 | !$OMP THREADPRIVATE(zuthe,zvthe) |
---|
[952] | 196 | REAL,ALLOCATABLE,SAVE :: alb_neig(:) |
---|
[967] | 197 | !$OMP THREADPRIVATE(alb_neig) |
---|
[952] | 198 | !cloud base mass flux |
---|
[1398] | 199 | REAL,ALLOCATABLE,SAVE :: ema_cbmf(:) |
---|
| 200 | !$OMP THREADPRIVATE(ema_cbmf) |
---|
[952] | 201 | !cloud base pressure & cloud top pressure |
---|
| 202 | REAL,ALLOCATABLE,SAVE :: ema_pcb(:), ema_pct(:) |
---|
[967] | 203 | !$OMP THREADPRIVATE(ema_pcb,ema_pct) |
---|
[3496] | 204 | REAL,ALLOCATABLE,SAVE :: Mipsh(:,:) ! mass flux shed from adiab. ascents |
---|
| 205 | !$OMP THREADPRIVATE(Mipsh) |
---|
| 206 | REAL,ALLOCATABLE,SAVE :: Ma(:,:) ! undilute upward mass flux |
---|
[967] | 207 | !$OMP THREADPRIVATE(Ma) |
---|
[952] | 208 | REAL,ALLOCATABLE,SAVE :: qcondc(:,:) ! in-cld water content from convect |
---|
[967] | 209 | !$OMP THREADPRIVATE(qcondc) |
---|
[952] | 210 | REAL,ALLOCATABLE,SAVE :: wd(:) ! sb |
---|
[967] | 211 | !$OMP THREADPRIVATE(wd) |
---|
[952] | 212 | REAL,ALLOCATABLE,SAVE :: sigd(:) |
---|
[967] | 213 | !$OMP THREADPRIVATE(sigd) |
---|
[952] | 214 | ! |
---|
| 215 | REAL,ALLOCATABLE,SAVE :: cin(:) |
---|
[967] | 216 | !$OMP THREADPRIVATE(cin) |
---|
[2635] | 217 | ! ftd : convective heating due to unsaturated downdraughts |
---|
[952] | 218 | REAL,ALLOCATABLE,SAVE :: ftd(:,:) |
---|
[967] | 219 | !$OMP THREADPRIVATE(ftd) |
---|
[2635] | 220 | ! fqd : convective moistening due to unsaturated downdraughts |
---|
[952] | 221 | REAL,ALLOCATABLE,SAVE :: fqd(:,:) |
---|
[967] | 222 | !$OMP THREADPRIVATE(fqd) |
---|
[952] | 223 | !34EK |
---|
| 224 | ! -- Variables de controle de ALE et ALP |
---|
| 225 | !ALE : Energie disponible pour soulevement : utilisee par la |
---|
| 226 | ! convection d'Emanuel pour le declenchement et la regulation |
---|
| 227 | REAL,ALLOCATABLE,SAVE :: ALE(:) |
---|
[967] | 228 | !$OMP THREADPRIVATE(ALE) |
---|
[952] | 229 | !ALP : Puissance disponible pour soulevement |
---|
| 230 | REAL,ALLOCATABLE,SAVE :: ALP(:) |
---|
[967] | 231 | !$OMP THREADPRIVATE(ALP) |
---|
[952] | 232 | ! |
---|
| 233 | ! nouvelles variables pour le couplage convection-couche limite |
---|
| 234 | REAL,ALLOCATABLE,SAVE :: Ale_bl(:) |
---|
[967] | 235 | !$OMP THREADPRIVATE(Ale_bl) |
---|
[952] | 236 | REAL,ALLOCATABLE,SAVE :: Alp_bl(:) |
---|
[967] | 237 | !$OMP THREADPRIVATE(Alp_bl) |
---|
[952] | 238 | INTEGER,ALLOCATABLE,SAVE :: lalim_conv(:) |
---|
[967] | 239 | !$OMP THREADPRIVATE(lalim_conv) |
---|
[952] | 240 | REAL,ALLOCATABLE,SAVE :: wght_th(:,:) |
---|
[967] | 241 | !$OMP THREADPRIVATE(wght_th) |
---|
[3080] | 242 | REAL,ALLOCATABLE,SAVE :: ale_wake(:) |
---|
| 243 | !$OMP THREADPRIVATE(ale_wake) |
---|
| 244 | REAL,ALLOCATABLE,SAVE :: ale_bl_stat(:) |
---|
| 245 | !$OMP THREADPRIVATE(ale_bl_stat) |
---|
[952] | 246 | ! |
---|
| 247 | ! variables de la wake |
---|
| 248 | ! wake_deltat : ecart de temperature avec la zone non perturbee |
---|
| 249 | ! wake_deltaq : ecart d'humidite avec la zone non perturbee |
---|
[2635] | 250 | ! wake_s : fraction surfacique occupee par la poche froide |
---|
[3208] | 251 | ! awake_dens : number of active wakes per unit area |
---|
[2635] | 252 | ! wake_dens : number of wakes per unit area |
---|
| 253 | ! wake_occ : occurence of wakes (= 1 if wakes occur, =0 otherwise) |
---|
[952] | 254 | ! wake_Cstar : vitesse d'etalement de la poche |
---|
[1403] | 255 | ! wake_pe : wake potential energy - WAPE |
---|
[952] | 256 | ! wake_fip : Gust Front Impinging power - ALP |
---|
| 257 | REAL,ALLOCATABLE,SAVE :: wake_deltat(:,:) |
---|
[967] | 258 | !$OMP THREADPRIVATE(wake_deltat) |
---|
[952] | 259 | REAL,ALLOCATABLE,SAVE :: wake_deltaq(:,:) |
---|
[967] | 260 | !$OMP THREADPRIVATE(wake_deltaq) |
---|
[2635] | 261 | REAL,ALLOCATABLE,SAVE :: wake_s(:) |
---|
| 262 | !$OMP THREADPRIVATE(wake_s) |
---|
[3208] | 263 | REAL,ALLOCATABLE,SAVE :: awake_dens(:), wake_dens(:) |
---|
| 264 | !$OMP THREADPRIVATE(awake_dens, wake_dens) |
---|
[952] | 265 | REAL,ALLOCATABLE,SAVE :: wake_Cstar(:) |
---|
[967] | 266 | !$OMP THREADPRIVATE(wake_Cstar) |
---|
[1403] | 267 | REAL,ALLOCATABLE,SAVE :: wake_pe(:) |
---|
| 268 | !$OMP THREADPRIVATE(wake_pe) |
---|
[952] | 269 | REAL,ALLOCATABLE,SAVE :: wake_fip(:) |
---|
[967] | 270 | !$OMP THREADPRIVATE(wake_fip) |
---|
[952] | 271 | ! |
---|
[2159] | 272 | !jyg< |
---|
| 273 | ! variables related to the spitting of the PBL between wake and |
---|
| 274 | ! off-wake regions. |
---|
| 275 | ! wake_delta_pbl_TKE : difference TKE_w - TKE_x |
---|
| 276 | REAL,ALLOCATABLE,SAVE :: wake_delta_pbl_TKE(:,:,:) |
---|
| 277 | !$OMP THREADPRIVATE(wake_delta_pbl_TKE) |
---|
| 278 | !>jyg |
---|
| 279 | ! |
---|
[952] | 280 | ! pfrac_impa : Produits des coefs lessivage impaction |
---|
| 281 | ! pfrac_nucl : Produits des coefs lessivage nucleation |
---|
| 282 | ! pfrac_1nucl: Produits des coefs lessi nucl (alpha = 1) |
---|
| 283 | REAL,ALLOCATABLE,SAVE :: pfrac_impa(:,:), pfrac_nucl(:,:) |
---|
[967] | 284 | !$OMP THREADPRIVATE(pfrac_impa,pfrac_nucl) |
---|
[952] | 285 | REAL,ALLOCATABLE,SAVE :: pfrac_1nucl(:,:) |
---|
[967] | 286 | !$OMP THREADPRIVATE(pfrac_1nucl) |
---|
[952] | 287 | ! |
---|
| 288 | REAL,ALLOCATABLE,SAVE :: total_rain(:), nday_rain(:) |
---|
[967] | 289 | !$OMP THREADPRIVATE(total_rain,nday_rain) |
---|
[3435] | 290 | REAL,ALLOCATABLE,SAVE :: paire_ter(:) |
---|
| 291 | !$OMP THREADPRIVATE(paire_ter) |
---|
[952] | 292 | ! albsol1: albedo du sol total pour SW visible |
---|
| 293 | ! albsol2: albedo du sol total pour SW proche IR |
---|
| 294 | REAL,ALLOCATABLE,SAVE :: albsol1(:), albsol2(:) |
---|
[967] | 295 | !$OMP THREADPRIVATE(albsol1,albsol2) |
---|
[1279] | 296 | |
---|
[2227] | 297 | !albedo SB >>> |
---|
| 298 | REAL,ALLOCATABLE,SAVE :: albsol_dif(:,:),albsol_dir(:,:) |
---|
| 299 | !$OMP THREADPRIVATE(albsol_dif,albsol_dir) |
---|
| 300 | !albedo SB <<< |
---|
| 301 | |
---|
| 302 | |
---|
[1279] | 303 | REAL, ALLOCATABLE, SAVE:: wo(:, :, :) |
---|
| 304 | ! column-density of ozone in a layer, in kilo-Dobsons |
---|
| 305 | ! Third dimension has size 1 or 2. |
---|
| 306 | ! "wo(:, :, 1)" is for the average day-night field, |
---|
| 307 | ! "wo(:, :, 2)" is for daylight time. |
---|
| 308 | !$OMP THREADPRIVATE(wo) |
---|
| 309 | |
---|
[952] | 310 | ! heat : chauffage solaire |
---|
| 311 | ! heat0: chauffage solaire ciel clair |
---|
| 312 | ! cool : refroidissement infrarouge |
---|
| 313 | ! cool0 : refroidissement infrarouge ciel clair |
---|
| 314 | ! sollwdown : downward LW flux at surface |
---|
| 315 | ! sollwdownclr : downward CS LW flux at surface |
---|
| 316 | ! toplwdown : downward CS LW flux at TOA |
---|
| 317 | ! toplwdownclr : downward CS LW flux at TOA |
---|
[3479] | 318 | ! heat_volc : chauffage solaire du au volcanisme |
---|
| 319 | ! cool_volc : refroidissement infrarouge du au volcanisme |
---|
[952] | 320 | REAL,ALLOCATABLE,SAVE :: clwcon0(:,:),rnebcon0(:,:) |
---|
[967] | 321 | !$OMP THREADPRIVATE(clwcon0,rnebcon0) |
---|
[952] | 322 | REAL,ALLOCATABLE,SAVE :: heat(:,:) |
---|
[967] | 323 | !$OMP THREADPRIVATE(heat) |
---|
[952] | 324 | REAL,ALLOCATABLE,SAVE :: heat0(:,:) |
---|
[967] | 325 | !$OMP THREADPRIVATE(heat0) |
---|
[952] | 326 | REAL,ALLOCATABLE,SAVE :: cool(:,:) |
---|
[967] | 327 | !$OMP THREADPRIVATE(cool) |
---|
[952] | 328 | REAL,ALLOCATABLE,SAVE :: cool0(:,:) |
---|
[967] | 329 | !$OMP THREADPRIVATE(cool0) |
---|
[3479] | 330 | REAL,ALLOCATABLE,SAVE :: heat_volc(:,:) |
---|
| 331 | !$OMP THREADPRIVATE(heat_volc) |
---|
| 332 | REAL,ALLOCATABLE,SAVE :: cool_volc(:,:) |
---|
| 333 | !$OMP THREADPRIVATE(cool_volc) |
---|
[952] | 334 | REAL,ALLOCATABLE,SAVE :: topsw(:), toplw(:) |
---|
[967] | 335 | !$OMP THREADPRIVATE(topsw,toplw) |
---|
[952] | 336 | REAL,ALLOCATABLE,SAVE :: sollwdown(:) |
---|
[967] | 337 | !$OMP THREADPRIVATE(sollwdown) |
---|
[2240] | 338 | REAL,ALLOCATABLE,SAVE :: gustiness(:) |
---|
| 339 | !$OMP THREADPRIVATE(gustiness) |
---|
[952] | 340 | REAL,ALLOCATABLE,SAVE :: sollwdownclr(:) |
---|
[967] | 341 | !$OMP THREADPRIVATE(sollwdownclr) |
---|
[952] | 342 | REAL,ALLOCATABLE,SAVE :: toplwdown(:) |
---|
[967] | 343 | !$OMP THREADPRIVATE(toplwdown) |
---|
[952] | 344 | REAL,ALLOCATABLE,SAVE :: toplwdownclr(:) |
---|
[967] | 345 | !$OMP THREADPRIVATE(toplwdownclr) |
---|
[952] | 346 | REAL,ALLOCATABLE,SAVE :: topsw0(:),toplw0(:),solsw0(:),sollw0(:) |
---|
[967] | 347 | !$OMP THREADPRIVATE(topsw0,toplw0,solsw0,sollw0) |
---|
[952] | 348 | REAL,ALLOCATABLE,SAVE :: albpla(:) |
---|
[967] | 349 | !$OMP THREADPRIVATE(albpla) |
---|
[1539] | 350 | |
---|
| 351 | !IM ajout variables CFMIP2/CMIP5 |
---|
| 352 | REAL,ALLOCATABLE,SAVE :: heatp(:,:), coolp(:,:) |
---|
| 353 | !$OMP THREADPRIVATE(heatp, coolp) |
---|
| 354 | REAL,ALLOCATABLE,SAVE :: heat0p(:,:), cool0p(:,:) |
---|
| 355 | !$OMP THREADPRIVATE(heat0p, cool0p) |
---|
| 356 | REAL,ALLOCATABLE,SAVE :: radsolp(:), topswp(:), toplwp(:) |
---|
| 357 | !$OMP THREADPRIVATE(radsolp, topswp, toplwp) |
---|
| 358 | REAL,ALLOCATABLE,SAVE :: albplap(:) |
---|
| 359 | !$OMP THREADPRIVATE(albplap) |
---|
| 360 | REAL,ALLOCATABLE,SAVE :: solswp(:), sollwp(:) |
---|
| 361 | !$OMP THREADPRIVATE(solswp, sollwp) |
---|
| 362 | REAL,ALLOCATABLE,SAVE :: sollwdownp(:) |
---|
| 363 | !$OMP THREADPRIVATE(sollwdownp) |
---|
| 364 | REAL,ALLOCATABLE,SAVE :: topsw0p(:),toplw0p(:) |
---|
| 365 | REAL,ALLOCATABLE,SAVE :: solsw0p(:),sollw0p(:) |
---|
| 366 | !$OMP THREADPRIVATE(topsw0p,toplw0p,solsw0p,sollw0p) |
---|
[3106] | 367 | REAL,ALLOCATABLE,SAVE :: lwdnc0p(:,:), lwdn0p(:,:), lwdnp(:,:) |
---|
| 368 | REAL,ALLOCATABLE,SAVE :: lwupc0p(:,:), lwup0p(:,:), lwupp(:,:) |
---|
| 369 | !$OMP THREADPRIVATE(lwdnc0p, lwdn0p, lwdnp, lwupc0p, lwup0p, lwupp) |
---|
[3082] | 370 | REAL,ALLOCATABLE,SAVE :: swdnc0p(:,:), swdn0p(:,:), swdnp(:,:) |
---|
| 371 | REAL,ALLOCATABLE,SAVE :: swupc0p(:,:), swup0p(:,:), swupp(:,:) |
---|
| 372 | !$OMP THREADPRIVATE(swdnc0p, swdn0p, swdnp, swupc0p, swup0p, swupp) |
---|
[1539] | 373 | |
---|
[952] | 374 | ! pbase : cloud base pressure |
---|
| 375 | ! bbase : cloud base buoyancy |
---|
| 376 | REAL,ALLOCATABLE,SAVE :: cape(:) |
---|
[967] | 377 | !$OMP THREADPRIVATE(cape) |
---|
[952] | 378 | REAL,ALLOCATABLE,SAVE :: pbase(:) |
---|
[967] | 379 | !$OMP THREADPRIVATE(pbase) |
---|
[952] | 380 | REAL,ALLOCATABLE,SAVE :: bbase(:) |
---|
[967] | 381 | !$OMP THREADPRIVATE(bbase) |
---|
[952] | 382 | ! |
---|
| 383 | REAL,SAVE,ALLOCATABLE :: zqasc(:,:) |
---|
[967] | 384 | !$OMP THREADPRIVATE( zqasc) |
---|
[952] | 385 | INTEGER,ALLOCATABLE,SAVE :: ibas_con(:), itop_con(:) |
---|
[967] | 386 | !$OMP THREADPRIVATE(ibas_con,itop_con) |
---|
[952] | 387 | REAL,SAVE,ALLOCATABLE :: rain_con(:) |
---|
[967] | 388 | !$OMP THREADPRIVATE(rain_con) |
---|
[952] | 389 | REAL,SAVE,ALLOCATABLE :: snow_con(:) |
---|
[967] | 390 | !$OMP THREADPRIVATE(snow_con) |
---|
[952] | 391 | ! |
---|
| 392 | REAL,SAVE,ALLOCATABLE :: rlonPOS(:) |
---|
[967] | 393 | !$OMP THREADPRIVATE(rlonPOS) |
---|
[952] | 394 | REAL,SAVE,ALLOCATABLE :: newsst(:) |
---|
[967] | 395 | !$OMP THREADPRIVATE(newsst) |
---|
[1813] | 396 | REAL,SAVE,ALLOCATABLE :: ustar(:,:),u10m(:,:), v10m(:,:),wstar(:,:) |
---|
| 397 | !$OMP THREADPRIVATE(ustar,u10m,v10m,wstar) |
---|
[952] | 398 | ! |
---|
| 399 | ! ok_ade=T -ADE=topswad-topsw |
---|
| 400 | ! ok_aie=T -> |
---|
| 401 | ! ok_ade=T -AIE=topswai-topswad |
---|
[1279] | 402 | ! ok_ade=F -AIE=topswai-topsw |
---|
[952] | 403 | ! |
---|
| 404 | !topswad, solswad : Aerosol direct effect |
---|
| 405 | REAL,SAVE,ALLOCATABLE :: topswad(:), solswad(:) |
---|
[967] | 406 | !$OMP THREADPRIVATE(topswad,solswad) |
---|
[952] | 407 | !topswai, solswai : Aerosol indirect effect |
---|
| 408 | REAL,SAVE,ALLOCATABLE :: topswai(:), solswai(:) |
---|
[967] | 409 | !$OMP THREADPRIVATE(topswai,solswai) |
---|
[959] | 410 | |
---|
[1279] | 411 | REAL,SAVE,ALLOCATABLE :: tau_aero(:,:,:,:), piz_aero(:,:,:,:), cg_aero(:,:,:,:) |
---|
| 412 | !$OMP THREADPRIVATE(tau_aero, piz_aero, cg_aero) |
---|
[2146] | 413 | REAL,SAVE,ALLOCATABLE :: tau_aero_sw_rrtm(:,:,:,:), piz_aero_sw_rrtm(:,:,:,:), cg_aero_sw_rrtm(:,:,:,:) |
---|
| 414 | !$OMP THREADPRIVATE(tau_aero_sw_rrtm, piz_aero_sw_rrtm, cg_aero_sw_rrtm) |
---|
| 415 | REAL,SAVE,ALLOCATABLE :: tau_aero_lw_rrtm(:,:,:,:), piz_aero_lw_rrtm(:,:,:,:), cg_aero_lw_rrtm(:,:,:,:) |
---|
| 416 | !$OMP THREADPRIVATE(tau_aero_lw_rrtm, piz_aero_lw_rrtm, cg_aero_lw_rrtm) |
---|
[952] | 417 | REAL,SAVE,ALLOCATABLE :: ccm(:,:,:) |
---|
[967] | 418 | !$OMP THREADPRIVATE(ccm) |
---|
[952] | 419 | |
---|
[1638] | 420 | !!! nrlmd le 10/04/2012 |
---|
| 421 | REAL,SAVE,ALLOCATABLE :: ale_bl_trig(:) |
---|
| 422 | !$OMP THREADPRIVATE(ale_bl_trig) |
---|
| 423 | !!! fin nrlmd le 10/04/2012 |
---|
| 424 | |
---|
[2333] | 425 | REAL, ALLOCATABLE, SAVE:: du_gwd_rando(:, :), du_gwd_front(:, :) |
---|
| 426 | !$OMP THREADPRIVATE(du_gwd_rando, du_gwd_front) |
---|
[1938] | 427 | ! tendencies on wind due to gravity waves |
---|
| 428 | |
---|
[3435] | 429 | LOGICAL,SAVE :: is_initialized=.FALSE. |
---|
| 430 | !$OMP THREADPRIVATE(is_initialized) |
---|
| 431 | |
---|
[909] | 432 | CONTAINS |
---|
| 433 | |
---|
| 434 | !====================================================================== |
---|
[1279] | 435 | SUBROUTINE phys_state_var_init(read_climoz) |
---|
[1785] | 436 | USE dimphy |
---|
| 437 | USE aero_mod |
---|
[2320] | 438 | USE infotrac_phy, ONLY : nbtr |
---|
[1785] | 439 | USE indice_sol_mod |
---|
[909] | 440 | IMPLICIT NONE |
---|
[1279] | 441 | |
---|
| 442 | integer, intent(in):: read_climoz |
---|
| 443 | ! read ozone climatology |
---|
| 444 | ! Allowed values are 0, 1 and 2 |
---|
| 445 | ! 0: do not read an ozone climatology |
---|
| 446 | ! 1: read a single ozone climatology that will be used day and night |
---|
| 447 | ! 2: read two ozone climatologies, the average day and night |
---|
| 448 | ! climatology and the daylight climatology |
---|
| 449 | |
---|
[1938] | 450 | include "clesphys.h" |
---|
[2399] | 451 | |
---|
[3435] | 452 | IF (is_initialized) RETURN |
---|
| 453 | is_initialized=.TRUE. |
---|
[952] | 454 | ALLOCATE(pctsrf(klon,nbsrf)) |
---|
| 455 | ALLOCATE(ftsol(klon,nbsrf)) |
---|
[2243] | 456 | ALLOCATE(qsol(klon),fevap(klon,nbsrf)) |
---|
| 457 | ALLOCATE(z0m(klon,nbsrf+1),z0h(klon,nbsrf+1),agesno(klon,nbsrf)) |
---|
[2952] | 458 | !FC |
---|
| 459 | ALLOCATE(treedrg(klon,klev,nbsrf)) |
---|
[952] | 460 | ALLOCATE(falb1(klon,nbsrf)) |
---|
| 461 | ALLOCATE(falb2(klon,nbsrf)) |
---|
[2227] | 462 | !albedo SB >>> |
---|
| 463 | ALLOCATE(falb_dir(klon,nsw,nbsrf),falb_dif(klon,nsw,nbsrf)) |
---|
| 464 | ALLOCATE(chl_con(klon)) |
---|
| 465 | !albedo SB <<< |
---|
[952] | 466 | ALLOCATE(rain_fall(klon)) |
---|
| 467 | ALLOCATE(snow_fall(klon)) |
---|
[909] | 468 | ALLOCATE(solsw(klon), sollw(klon)) |
---|
[3435] | 469 | sollw=0.0 |
---|
[952] | 470 | ALLOCATE(radsol(klon)) |
---|
[2366] | 471 | ALLOCATE(swradcorr(klon)) |
---|
[952] | 472 | ALLOCATE(zmea(klon), zstd(klon), zsig(klon), zgam(klon)) |
---|
| 473 | ALLOCATE(zthe(klon), zpic(klon), zval(klon)) |
---|
[909] | 474 | |
---|
[952] | 475 | ALLOCATE(rugoro(klon)) |
---|
| 476 | ALLOCATE(t_ancien(klon,klev), q_ancien(klon,klev)) |
---|
[2497] | 477 | ALLOCATE(ql_ancien(klon,klev), qs_ancien(klon,klev)) |
---|
[2499] | 478 | ALLOCATE(prw_ancien(klon), prlw_ancien(klon), prsw_ancien(klon)) |
---|
[1054] | 479 | ALLOCATE(u_ancien(klon,klev), v_ancien(klon,klev)) |
---|
[1742] | 480 | !!! Rom P >>> |
---|
| 481 | ALLOCATE(tr_ancien(klon,klev,nbtr)) |
---|
| 482 | !!! Rom P <<< |
---|
[952] | 483 | ALLOCATE(clwcon(klon,klev),rnebcon(klon,klev)) |
---|
[2205] | 484 | ALLOCATE(qtc_cv(klon,klev),sigt_cv(klon,klev)) |
---|
[952] | 485 | ALLOCATE(ratqs(klon,klev)) |
---|
[1761] | 486 | ALLOCATE(pbl_tke(klon,klev+1,nbsrf+1)) |
---|
[2159] | 487 | !nrlmd< |
---|
| 488 | ALLOCATE(delta_tsurf(klon,nbsrf)) |
---|
| 489 | !>nrlmd |
---|
[1761] | 490 | ALLOCATE(coefh(klon,klev+1,nbsrf+1)) |
---|
| 491 | ALLOCATE(coefm(klon,klev+1,nbsrf+1)) |
---|
[927] | 492 | ALLOCATE(zmax0(klon), f0(klon)) |
---|
[1827] | 493 | ALLOCATE(sig1(klon,klev), w01(klon,klev)) |
---|
[942] | 494 | ALLOCATE(entr_therm(klon,klev), fm_therm(klon,klev+1)) |
---|
[952] | 495 | ALLOCATE(detr_therm(klon,klev)) |
---|
| 496 | ! pour phsystoke avec thermiques |
---|
| 497 | ALLOCATE(clwcon0th(klon,klev),rnebcon0th(klon,klev)) |
---|
| 498 | ! radiation outputs |
---|
[3082] | 499 | ALLOCATE(swdnc0(klon,klevp1), swdn0(klon,klevp1), swdn(klon,klevp1)) |
---|
| 500 | ALLOCATE(swupc0(klon,klevp1), swup0(klon,klevp1), swup(klon,klevp1)) |
---|
[3106] | 501 | ALLOCATE(lwdnc0(klon,klevp1), lwdn0(klon,klevp1), lwdn(klon,klevp1)) |
---|
| 502 | ALLOCATE(lwupc0(klon,klevp1), lwup0(klon,klevp1), lwup(klon,klevp1)) |
---|
[952] | 503 | ALLOCATE(SWdn200clr(klon), SWdn200(klon)) |
---|
| 504 | ALLOCATE(SWup200clr(klon), SWup200(klon)) |
---|
| 505 | ALLOCATE(LWdn200clr(klon), LWdn200(klon)) |
---|
| 506 | ALLOCATE(LWup200clr(klon), LWup200(klon)) |
---|
| 507 | ALLOCATE(LWdnTOA(klon), LWdnTOAclr(klon)) |
---|
| 508 | ! pressure level |
---|
| 509 | ALLOCATE(tsumSTD(klon,nlevSTD,nout)) |
---|
| 510 | ALLOCATE(usumSTD(klon,nlevSTD,nout), vsumSTD(klon,nlevSTD,nout)) |
---|
| 511 | ALLOCATE(wsumSTD(klon,nlevSTD,nout), phisumSTD(klon,nlevSTD,nout)) |
---|
| 512 | ALLOCATE(qsumSTD(klon,nlevSTD,nout), rhsumSTD(klon,nlevSTD,nout)) |
---|
| 513 | ALLOCATE(tnondef(klon,nlevSTD,nout)) |
---|
| 514 | ALLOCATE(uvsumSTD(klon,nlevSTD,nout)) |
---|
| 515 | ALLOCATE(vqsumSTD(klon,nlevSTD,nout)) |
---|
| 516 | ALLOCATE(vTsumSTD(klon,nlevSTD,nout)) |
---|
| 517 | ALLOCATE(wqsumSTD(klon,nlevSTD,nout)) |
---|
| 518 | ALLOCATE(vphisumSTD(klon,nlevSTD,nout)) |
---|
| 519 | ALLOCATE(wTsumSTD(klon,nlevSTD,nout)) |
---|
| 520 | ALLOCATE(u2sumSTD(klon,nlevSTD,nout)) |
---|
| 521 | ALLOCATE(v2sumSTD(klon,nlevSTD,nout)) |
---|
| 522 | ALLOCATE(T2sumSTD(klon,nlevSTD,nout)) |
---|
[1398] | 523 | ALLOCATE(O3sumSTD(klon,nlevSTD,nout)) |
---|
| 524 | ALLOCATE(O3daysumSTD(klon,nlevSTD,nout)) |
---|
[1352] | 525 | !IM beg |
---|
| 526 | ALLOCATE(wlevSTD(klon,nlevSTD), ulevSTD(klon,nlevSTD), vlevSTD(klon,nlevSTD)) |
---|
| 527 | ALLOCATE(tlevSTD(klon,nlevSTD), qlevSTD(klon,nlevSTD), rhlevSTD(klon,nlevSTD)) |
---|
| 528 | ALLOCATE(philevSTD(klon,nlevSTD)) |
---|
| 529 | ALLOCATE(uvSTD(klon,nlevSTD),vqSTD(klon,nlevSTD)) |
---|
| 530 | ALLOCATE(vTSTD(klon,nlevSTD),wqSTD(klon,nlevSTD)) |
---|
| 531 | ALLOCATE(vphiSTD(klon,nlevSTD),wTSTD(klon,nlevSTD)) |
---|
| 532 | ALLOCATE(u2STD(klon,nlevSTD),v2STD(klon,nlevSTD)) |
---|
| 533 | ALLOCATE(T2STD(klon,nlevSTD)) |
---|
[1398] | 534 | ALLOCATE(O3STD(klon,nlevSTD)) |
---|
| 535 | ALLOCATE(O3daySTD(klon,nlevSTD)) |
---|
[1352] | 536 | !IM end |
---|
[952] | 537 | ALLOCATE(seed_old(klon,napisccp)) |
---|
| 538 | ALLOCATE(zuthe(klon),zvthe(klon)) |
---|
| 539 | ALLOCATE(alb_neig(klon)) |
---|
| 540 | !cloud base mass flux |
---|
[1398] | 541 | ALLOCATE(ema_cbmf(klon)) |
---|
[952] | 542 | !cloud base pressure & cloud top pressure |
---|
| 543 | ALLOCATE(ema_pcb(klon), ema_pct(klon)) |
---|
| 544 | ! |
---|
[3496] | 545 | ALLOCATE(Mipsh(klon,klev)) |
---|
[952] | 546 | ALLOCATE(Ma(klon,klev)) |
---|
| 547 | ALLOCATE(qcondc(klon,klev)) |
---|
| 548 | ALLOCATE(wd(klon)) |
---|
| 549 | ALLOCATE(sigd(klon)) |
---|
| 550 | ALLOCATE(cin(klon), ALE(klon), ALP(klon)) |
---|
| 551 | ALLOCATE(ftd(klon,klev), fqd(klon,klev)) |
---|
| 552 | ALLOCATE(Ale_bl(klon)) |
---|
[3080] | 553 | ALLOCATE(ale_wake(klon)) |
---|
| 554 | ALLOCATE(ale_bl_stat(klon)) |
---|
[3439] | 555 | ale_bl_stat(:)=0 |
---|
[952] | 556 | ALLOCATE(Alp_bl(klon)) |
---|
| 557 | ALLOCATE(lalim_conv(klon)) |
---|
| 558 | ALLOCATE(wght_th(klon,klev)) |
---|
| 559 | ALLOCATE(wake_deltat(klon,klev), wake_deltaq(klon,klev)) |
---|
[3208] | 560 | ALLOCATE(wake_s(klon), awake_dens(klon), wake_dens(klon)) |
---|
[3435] | 561 | awake_dens = 0. |
---|
[2635] | 562 | ALLOCATE(wake_Cstar(klon)) |
---|
[1403] | 563 | ALLOCATE(wake_pe(klon), wake_fip(klon)) |
---|
[2159] | 564 | !jyg< |
---|
[2181] | 565 | ALLOCATE(wake_delta_pbl_TKE(klon,klev+1,nbsrf+1)) |
---|
[2159] | 566 | !>jyg |
---|
[952] | 567 | ALLOCATE(pfrac_impa(klon,klev), pfrac_nucl(klon,klev)) |
---|
| 568 | ALLOCATE(pfrac_1nucl(klon,klev)) |
---|
| 569 | ALLOCATE(total_rain(klon), nday_rain(klon)) |
---|
[3435] | 570 | ALLOCATE(paire_ter(klon)) |
---|
[952] | 571 | ALLOCATE(albsol1(klon), albsol2(klon)) |
---|
[2227] | 572 | !albedo SB >>> |
---|
| 573 | ALLOCATE(albsol_dir(klon,nsw),albsol_dif(klon,nsw)) |
---|
| 574 | !albedo SB <<< |
---|
[1279] | 575 | |
---|
| 576 | if (read_climoz <= 1) then |
---|
| 577 | ALLOCATE(wo(klon,klev, 1)) |
---|
| 578 | else |
---|
| 579 | ! read_climoz == 2 |
---|
| 580 | ALLOCATE(wo(klon,klev, 2)) |
---|
| 581 | end if |
---|
| 582 | |
---|
[952] | 583 | ALLOCATE(clwcon0(klon,klev),rnebcon0(klon,klev)) |
---|
| 584 | ALLOCATE(heat(klon,klev), heat0(klon,klev)) |
---|
| 585 | ALLOCATE(cool(klon,klev), cool0(klon,klev)) |
---|
[3479] | 586 | ALLOCATE(heat_volc(klon,klev), cool_volc(klon,klev)) |
---|
[952] | 587 | ALLOCATE(topsw(klon), toplw(klon)) |
---|
| 588 | ALLOCATE(sollwdown(klon), sollwdownclr(klon)) |
---|
[3435] | 589 | sollwdown = 0. |
---|
[952] | 590 | ALLOCATE(toplwdown(klon), toplwdownclr(klon)) |
---|
| 591 | ALLOCATE(topsw0(klon),toplw0(klon),solsw0(klon),sollw0(klon)) |
---|
[3435] | 592 | sollw0 = 0. |
---|
[952] | 593 | ALLOCATE(albpla(klon)) |
---|
[1539] | 594 | !IM ajout variables CFMIP2/CMIP5 |
---|
| 595 | ALLOCATE(heatp(klon,klev), coolp(klon,klev)) |
---|
| 596 | ALLOCATE(heat0p(klon,klev), cool0p(klon,klev)) |
---|
| 597 | ALLOCATE(radsolp(klon), topswp(klon), toplwp(klon)) |
---|
| 598 | ALLOCATE(albplap(klon)) |
---|
| 599 | ALLOCATE(solswp(klon), sollwp(klon)) |
---|
[2240] | 600 | ALLOCATE(gustiness(klon)) |
---|
[1539] | 601 | ALLOCATE(sollwdownp(klon)) |
---|
| 602 | ALLOCATE(topsw0p(klon),toplw0p(klon)) |
---|
| 603 | ALLOCATE(solsw0p(klon),sollw0p(klon)) |
---|
[3106] | 604 | ALLOCATE(lwdnc0p(klon,klevp1), lwdn0p(klon,klevp1), lwdnp(klon,klevp1)) |
---|
| 605 | ALLOCATE(lwupc0p(klon,klevp1), lwup0p(klon,klevp1), lwupp(klon,klevp1)) |
---|
[3082] | 606 | ALLOCATE(swdnc0p(klon,klevp1), swdn0p(klon,klevp1), swdnp(klon,klevp1)) |
---|
| 607 | ALLOCATE(swupc0p(klon,klevp1), swup0p(klon,klevp1), swupp(klon,klevp1)) |
---|
[1539] | 608 | |
---|
[952] | 609 | ALLOCATE(cape(klon)) |
---|
| 610 | ALLOCATE(pbase(klon),bbase(klon)) |
---|
| 611 | ALLOCATE(zqasc(klon,klev)) |
---|
| 612 | ALLOCATE(ibas_con(klon), itop_con(klon)) |
---|
| 613 | ALLOCATE(rain_con(klon), snow_con(klon)) |
---|
| 614 | ALLOCATE(rlonPOS(klon)) |
---|
| 615 | ALLOCATE(newsst(klon)) |
---|
[1813] | 616 | ALLOCATE(ustar(klon,nbsrf),u10m(klon,nbsrf), v10m(klon,nbsrf),wstar(klon,nbsrf+1)) |
---|
[952] | 617 | ALLOCATE(topswad(klon), solswad(klon)) |
---|
| 618 | ALLOCATE(topswai(klon), solswai(klon)) |
---|
[1279] | 619 | ALLOCATE(tau_aero(klon,klev,naero_grp,nbands),piz_aero(klon,klev,naero_grp,nbands),cg_aero(klon,klev,naero_grp,nbands)) |
---|
[2146] | 620 | ALLOCATE(tau_aero_sw_rrtm(klon,klev,2,nbands_sw_rrtm),piz_aero_sw_rrtm(klon,klev,2,nbands_sw_rrtm)) |
---|
| 621 | ALLOCATE(cg_aero_sw_rrtm(klon,klev,2,nbands_sw_rrtm)) |
---|
| 622 | ALLOCATE(tau_aero_lw_rrtm(klon,klev,2,nbands_lw_rrtm),piz_aero_lw_rrtm(klon,klev,2,nbands_lw_rrtm)) |
---|
| 623 | ALLOCATE(cg_aero_lw_rrtm(klon,klev,2,nbands_lw_rrtm)) |
---|
[1279] | 624 | ALLOCATE(ccm(klon,klev,nbands)) |
---|
[959] | 625 | |
---|
[1638] | 626 | !!! nrlmd le 10/04/2012 |
---|
| 627 | ALLOCATE(ale_bl_trig(klon)) |
---|
| 628 | !!! fin nrlmd le 10/04/2012 |
---|
[3435] | 629 | IF (ok_gwd_rando) THEN |
---|
| 630 | allocate(du_gwd_rando(klon, klev)) |
---|
| 631 | du_gwd_rando(:,:)=0. |
---|
| 632 | ENDIF |
---|
| 633 | IF (.not. ok_hines .and. ok_gwd_rando) THEN |
---|
| 634 | ALLOCATE(du_gwd_front(klon, klev)) |
---|
| 635 | du_gwd_front(:,:) = 0 !ym missing init |
---|
| 636 | ENDIF |
---|
[909] | 637 | END SUBROUTINE phys_state_var_init |
---|
| 638 | |
---|
| 639 | !====================================================================== |
---|
| 640 | SUBROUTINE phys_state_var_end |
---|
[2399] | 641 | !USE dimphy |
---|
[1785] | 642 | USE indice_sol_mod |
---|
[909] | 643 | IMPLICIT NONE |
---|
[1938] | 644 | include "clesphys.h" |
---|
[909] | 645 | |
---|
[2399] | 646 | deallocate(pctsrf, ftsol, falb1, falb2) |
---|
[2243] | 647 | deallocate(qsol,fevap,z0m,z0h,agesno) |
---|
[2952] | 648 | !FC |
---|
| 649 | deallocate(treedrg) |
---|
[2366] | 650 | deallocate(rain_fall, snow_fall, solsw, sollw, radsol, swradcorr) |
---|
[952] | 651 | deallocate(zmea, zstd, zsig, zgam) |
---|
| 652 | deallocate(zthe, zpic, zval) |
---|
| 653 | deallocate(rugoro, t_ancien, q_ancien, clwcon, rnebcon) |
---|
[2497] | 654 | deallocate(qs_ancien, ql_ancien) |
---|
[2499] | 655 | deallocate(prw_ancien, prlw_ancien, prsw_ancien) |
---|
[2205] | 656 | deallocate(qtc_cv,sigt_cv) |
---|
[2499] | 657 | deallocate(u_ancien, v_ancien) |
---|
| 658 | deallocate(tr_ancien) !RomP |
---|
[1761] | 659 | deallocate(ratqs, pbl_tke,coefh,coefm) |
---|
[2159] | 660 | !nrlmd< |
---|
| 661 | deallocate(delta_tsurf) |
---|
| 662 | !>nrlmd |
---|
[952] | 663 | deallocate(zmax0, f0) |
---|
[1827] | 664 | deallocate(sig1, w01) |
---|
[952] | 665 | deallocate(entr_therm, fm_therm) |
---|
| 666 | deallocate(detr_therm) |
---|
| 667 | deallocate(clwcon0th, rnebcon0th) |
---|
| 668 | ! radiation outputs |
---|
[3082] | 669 | deallocate(swdnc0, swdn0, swdn) |
---|
| 670 | deallocate(swupc0, swup0, swup) |
---|
[3106] | 671 | deallocate(lwdnc0, lwdn0, lwdn) |
---|
| 672 | deallocate(lwupc0, lwup0, lwup) |
---|
[952] | 673 | deallocate(SWdn200clr, SWdn200) |
---|
| 674 | deallocate(SWup200clr, SWup200) |
---|
| 675 | deallocate(LWdn200clr, LWdn200) |
---|
| 676 | deallocate(LWup200clr, LWup200) |
---|
| 677 | deallocate(LWdnTOA, LWdnTOAclr) |
---|
| 678 | ! pressure level |
---|
| 679 | deallocate(tsumSTD) |
---|
| 680 | deallocate(usumSTD, vsumSTD) |
---|
| 681 | deallocate(wsumSTD, phisumSTD) |
---|
| 682 | deallocate(tnondef) |
---|
[970] | 683 | deallocate(qsumSTD, rhsumSTD) |
---|
[952] | 684 | deallocate(uvsumSTD) |
---|
| 685 | deallocate(vqsumSTD) |
---|
| 686 | deallocate(vTsumSTD) |
---|
| 687 | deallocate(wqsumSTD) |
---|
| 688 | deallocate(vphisumSTD) |
---|
| 689 | deallocate(wTsumSTD) |
---|
| 690 | deallocate(u2sumSTD) |
---|
| 691 | deallocate(v2sumSTD) |
---|
| 692 | deallocate(T2sumSTD) |
---|
[1398] | 693 | deallocate(O3sumSTD) |
---|
| 694 | deallocate(O3daysumSTD) |
---|
[1352] | 695 | !IM beg |
---|
| 696 | deallocate(wlevSTD,ulevSTD,vlevSTD,tlevSTD,qlevSTD,rhlevSTD,philevSTD) |
---|
[1398] | 697 | deallocate(uvSTD,vqSTD,vTSTD,wqSTD,vphiSTD,wTSTD,u2STD,v2STD,T2STD,O3STD,O3daySTD) |
---|
[1352] | 698 | !IM end |
---|
[952] | 699 | deallocate(seed_old) |
---|
| 700 | deallocate(zuthe, zvthe) |
---|
| 701 | deallocate(alb_neig) |
---|
[1398] | 702 | deallocate(ema_cbmf) |
---|
[952] | 703 | deallocate(ema_pcb, ema_pct) |
---|
[3496] | 704 | deallocate(Mipsh, Ma, qcondc) |
---|
[952] | 705 | deallocate(wd, sigd) |
---|
| 706 | deallocate(cin, ALE, ALP) |
---|
| 707 | deallocate(ftd, fqd) |
---|
| 708 | deallocate(Ale_bl, Alp_bl) |
---|
[3080] | 709 | deallocate(ale_wake) |
---|
| 710 | deallocate(ale_bl_stat) |
---|
[952] | 711 | deallocate(lalim_conv, wght_th) |
---|
| 712 | deallocate(wake_deltat, wake_deltaq) |
---|
[3208] | 713 | deallocate(wake_s, awake_dens, wake_dens) |
---|
[2635] | 714 | deallocate(wake_Cstar, wake_pe, wake_fip) |
---|
[2159] | 715 | !jyg< |
---|
| 716 | deallocate(wake_delta_pbl_TKE) |
---|
| 717 | !>jyg |
---|
[952] | 718 | deallocate(pfrac_impa, pfrac_nucl) |
---|
| 719 | deallocate(pfrac_1nucl) |
---|
| 720 | deallocate(total_rain, nday_rain) |
---|
[3435] | 721 | deallocate(paire_ter) |
---|
[952] | 722 | deallocate(albsol1, albsol2) |
---|
[2227] | 723 | !albedo SB >>> |
---|
| 724 | deallocate(albsol_dir,albsol_dif,falb_dir,falb_dif,chl_con) |
---|
| 725 | !albedo SB <<< |
---|
[952] | 726 | deallocate(wo) |
---|
| 727 | deallocate(clwcon0,rnebcon0) |
---|
| 728 | deallocate(heat, heat0) |
---|
| 729 | deallocate(cool, cool0) |
---|
[3479] | 730 | deallocate(heat_volc, cool_volc) |
---|
[952] | 731 | deallocate(topsw, toplw) |
---|
| 732 | deallocate(sollwdown, sollwdownclr) |
---|
[2240] | 733 | deallocate(gustiness) |
---|
[952] | 734 | deallocate(toplwdown, toplwdownclr) |
---|
| 735 | deallocate(topsw0,toplw0,solsw0,sollw0) |
---|
| 736 | deallocate(albpla) |
---|
[1539] | 737 | !IM ajout variables CFMIP2/CMIP5 |
---|
| 738 | deallocate(heatp, coolp) |
---|
| 739 | deallocate(heat0p, cool0p) |
---|
| 740 | deallocate(radsolp, topswp, toplwp) |
---|
| 741 | deallocate(albplap) |
---|
| 742 | deallocate(solswp, sollwp) |
---|
| 743 | deallocate(sollwdownp) |
---|
| 744 | deallocate(topsw0p,toplw0p) |
---|
| 745 | deallocate(solsw0p,sollw0p) |
---|
[3106] | 746 | deallocate(lwdnc0p, lwdn0p, lwdnp) |
---|
| 747 | deallocate(lwupc0p, lwup0p, lwupp) |
---|
[3082] | 748 | deallocate(swdnc0p, swdn0p, swdnp) |
---|
| 749 | deallocate(swupc0p, swup0p, swupp) |
---|
[952] | 750 | deallocate(cape) |
---|
| 751 | deallocate(pbase,bbase) |
---|
| 752 | deallocate(zqasc) |
---|
| 753 | deallocate(ibas_con, itop_con) |
---|
| 754 | deallocate(rain_con, snow_con) |
---|
| 755 | deallocate(rlonPOS) |
---|
| 756 | deallocate(newsst) |
---|
[1813] | 757 | deallocate(ustar,u10m, v10m,wstar) |
---|
[952] | 758 | deallocate(topswad, solswad) |
---|
| 759 | deallocate(topswai, solswai) |
---|
[1279] | 760 | deallocate(tau_aero,piz_aero,cg_aero) |
---|
[2146] | 761 | deallocate(tau_aero_sw_rrtm,piz_aero_sw_rrtm,cg_aero_sw_rrtm) |
---|
| 762 | deallocate(tau_aero_lw_rrtm,piz_aero_lw_rrtm,cg_aero_lw_rrtm) |
---|
[952] | 763 | deallocate(ccm) |
---|
[2333] | 764 | if (ok_gwd_rando) deallocate(du_gwd_rando) |
---|
| 765 | if (.not. ok_hines .and. ok_gwd_rando) deallocate(du_gwd_front) |
---|
[959] | 766 | |
---|
[1638] | 767 | !!! nrlmd le 10/04/2012 |
---|
| 768 | deallocate(ale_bl_trig) |
---|
| 769 | !!! fin nrlmd le 10/04/2012 |
---|
[3435] | 770 | is_initialized=.FALSE. |
---|
[909] | 771 | END SUBROUTINE phys_state_var_end |
---|
| 772 | |
---|
| 773 | END MODULE phys_state_var_mod |
---|