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