[1403] | 1 | ! |
---|
| 2 | ! $Id: phys_state_var_mod.F90 5394 2024-12-06 13:10:59Z aborella $ |
---|
| 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 |
---|
[5084] | 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) |
---|
[3888] | 34 | REAL, ALLOCATABLE, SAVE :: beta_aridity(:,:) |
---|
| 35 | !$OMP THREADPRIVATE(beta_aridity) |
---|
[2243] | 36 | REAL,ALLOCATABLE,SAVE :: qsol(:),fevap(:,:),z0m(:,:),z0h(:,:),agesno(:,:) |
---|
| 37 | !$OMP THREADPRIVATE(qsol,fevap,z0m,z0h,agesno) |
---|
[2952] | 38 | !FC drag des arbres |
---|
| 39 | REAL, ALLOCATABLE, SAVE :: treedrg(:,:,:) |
---|
| 40 | !$OMP THREADPRIVATE(treedrg) |
---|
| 41 | |
---|
[967] | 42 | ! character(len=6), SAVE :: ocean |
---|
| 43 | !!!!!!$OMP THREADPRIVATE(ocean) |
---|
| 44 | ! logical, SAVE :: ok_veget |
---|
| 45 | !!!!!!$OMP THREADPRIVATE(ok_veget) |
---|
[909] | 46 | REAL, ALLOCATABLE, SAVE :: falb1(:,:), falb2(:,:) |
---|
[967] | 47 | !$OMP THREADPRIVATE(falb1, falb2) |
---|
[2227] | 48 | |
---|
| 49 | !albedo SB >>> |
---|
| 50 | REAL, ALLOCATABLE, SAVE :: falb_dif(:,:,:), falb_dir(:,:,:) |
---|
[3756] | 51 | REAL, ALLOCATABLE, SAVE :: chl_con(:) |
---|
[2227] | 52 | !$OMP THREADPRIVATE(falb_dir,falb_dif,chl_con) |
---|
| 53 | !albedo SB <<< |
---|
| 54 | |
---|
| 55 | |
---|
[4523] | 56 | REAL, ALLOCATABLE, SAVE :: rain_fall(:), snow_fall(:), bs_fall(:) |
---|
| 57 | !$OMP THREADPRIVATE( rain_fall, snow_fall, bs_fall) |
---|
[3756] | 58 | REAL, ALLOCATABLE, SAVE :: solsw(:), solswfdiff(:), sollw(:) |
---|
| 59 | !$OMP THREADPRIVATE(solsw, solswfdiff, sollw) |
---|
[909] | 60 | REAL, ALLOCATABLE, SAVE :: radsol(:) |
---|
[967] | 61 | !$OMP THREADPRIVATE(radsol) |
---|
[2366] | 62 | REAL, ALLOCATABLE, SAVE :: swradcorr(:) |
---|
| 63 | !$OMP THREADPRIVATE(swradcorr) |
---|
[4088] | 64 | #ifdef ISO |
---|
| 65 | REAL,ALLOCATABLE,SAVE :: xtsol(:,:),fxtevap(:,:,:) |
---|
| 66 | !$OMP THREADPRIVATE(xtsol,fxtevap) |
---|
| 67 | REAL, ALLOCATABLE, SAVE :: xtrain_fall(:,:), xtsnow_fall(:,:) |
---|
| 68 | !$OMP THREADPRIVATE(xtrain_fall,xtsnow_fall) |
---|
| 69 | #endif |
---|
[967] | 70 | |
---|
[909] | 71 | !clesphy0 param physiq |
---|
| 72 | ! |
---|
| 73 | ! Parametres de l'Orographie a l'Echelle Sous-Maille (OESM): |
---|
| 74 | ! |
---|
| 75 | REAL, ALLOCATABLE, SAVE :: zmea(:), zstd(:), zsig(:), zgam(:) |
---|
[967] | 76 | !$OMP THREADPRIVATE(zmea, zstd, zsig, zgam) |
---|
[909] | 77 | REAL, ALLOCATABLE, SAVE :: zthe(:), zpic(:), zval(:) |
---|
[967] | 78 | !$OMP THREADPRIVATE(zthe, zpic, zval) |
---|
[909] | 79 | ! REAL tabcntr0(100) |
---|
| 80 | REAL, ALLOCATABLE, SAVE :: rugoro(:) |
---|
[967] | 81 | !$OMP THREADPRIVATE(rugoro) |
---|
[909] | 82 | REAL, ALLOCATABLE, SAVE :: t_ancien(:,:), q_ancien(:,:) |
---|
[967] | 83 | !$OMP THREADPRIVATE(t_ancien, q_ancien) |
---|
[4523] | 84 | REAL, ALLOCATABLE, SAVE :: ql_ancien(:,:), qs_ancien(:,:), qbs_ancien(:,:) |
---|
| 85 | !$OMP THREADPRIVATE(ql_ancien, qs_ancien, qbs_ancien) |
---|
| 86 | REAL, ALLOCATABLE, SAVE :: prw_ancien(:), prlw_ancien(:), prsw_ancien(:), prbsw_ancien(:) |
---|
| 87 | !$OMP THREADPRIVATE(prw_ancien, prlw_ancien, prsw_ancien, prbsw_ancien) |
---|
[4088] | 88 | #ifdef ISO |
---|
[5394] | 89 | REAL, ALLOCATABLE, SAVE :: xt_ancien(:,:,:),xtl_ancien(:,:,:),xts_ancien(:,:,:), xtbs_ancien(:,:,:) |
---|
[4984] | 90 | !$OMP THREADPRIVATE(xt_ancien,xtl_ancien,xts_ancien,xtbs_ancien) |
---|
[4088] | 91 | #endif |
---|
[1054] | 92 | REAL, ALLOCATABLE, SAVE :: u_ancien(:,:), v_ancien(:,:) |
---|
| 93 | !$OMP THREADPRIVATE(u_ancien, v_ancien) |
---|
[5204] | 94 | REAL, ALLOCATABLE, SAVE :: cf_ancien(:,:), rvc_ancien(:,:) |
---|
| 95 | !$OMP THREADPRIVATE(cf_ancien, rvc_ancien) |
---|
[1742] | 96 | !!! RomP >>> |
---|
| 97 | REAL, ALLOCATABLE, SAVE :: tr_ancien(:,:,:) |
---|
| 98 | !$OMP THREADPRIVATE(tr_ancien) |
---|
| 99 | !!! RomP <<< |
---|
[909] | 100 | LOGICAL, SAVE :: ancien_ok |
---|
[967] | 101 | !$OMP THREADPRIVATE(ancien_ok) |
---|
[909] | 102 | REAL, ALLOCATABLE, SAVE :: clwcon(:,:),rnebcon(:,:) |
---|
[967] | 103 | !$OMP THREADPRIVATE(clwcon,rnebcon) |
---|
[4613] | 104 | REAL, ALLOCATABLE, SAVE :: qtc_cv(:,:),sigt_cv(:,:),detrain_cv(:,:),fm_cv(:,:) |
---|
| 105 | !$OMP THREADPRIVATE(qtc_cv,sigt_cv,detrain_cv,fm_cv) |
---|
[909] | 106 | REAL, ALLOCATABLE, SAVE :: ratqs(:,:) |
---|
[967] | 107 | !$OMP THREADPRIVATE(ratqs) |
---|
[909] | 108 | REAL, ALLOCATABLE, SAVE :: pbl_tke(:,:,:) ! turb kinetic energy |
---|
[1761] | 109 | REAL, ALLOCATABLE, SAVE :: coefh(:,:,:) ! Kz enthalpie |
---|
| 110 | REAL, ALLOCATABLE, SAVE :: coefm(:,:,:) ! Kz momentum |
---|
| 111 | !$OMP THREADPRIVATE(pbl_tke, coefh,coefm) |
---|
[927] | 112 | REAL, ALLOCATABLE, SAVE :: zmax0(:), f0(:) ! |
---|
[967] | 113 | !$OMP THREADPRIVATE(zmax0,f0) |
---|
[1827] | 114 | REAL, ALLOCATABLE, SAVE :: sig1(:,:), w01(:,:) |
---|
| 115 | !$OMP THREADPRIVATE(sig1,w01) |
---|
[942] | 116 | REAL, ALLOCATABLE, SAVE :: entr_therm(:,:), fm_therm(:,:) |
---|
[967] | 117 | !$OMP THREADPRIVATE(entr_therm,fm_therm) |
---|
[952] | 118 | REAL, ALLOCATABLE, SAVE :: detr_therm(:,:) |
---|
[967] | 119 | !$OMP THREADPRIVATE(detr_therm) |
---|
[952] | 120 | !IM 150408 |
---|
| 121 | ! pour phsystoke avec thermiques |
---|
| 122 | REAL,ALLOCATABLE,SAVE :: clwcon0th(:,:),rnebcon0th(:,:) |
---|
[967] | 123 | !$OMP THREADPRIVATE(clwcon0th,rnebcon0th) |
---|
[952] | 124 | ! radiation outputs |
---|
[3082] | 125 | REAL,ALLOCATABLE,SAVE :: swdnc0(:,:), swdn0(:,:), swdn(:,:) |
---|
| 126 | !$OMP THREADPRIVATE(swdnc0,swdn0,swdn) |
---|
| 127 | REAL,ALLOCATABLE,SAVE :: swupc0(:,:), swup0(:,:), swup(:,:) |
---|
| 128 | !$OMP THREADPRIVATE(swupc0, swup0,swup) |
---|
[952] | 129 | REAL,ALLOCATABLE,SAVE :: SWdn200clr(:), SWdn200(:) |
---|
[967] | 130 | !$OMP THREADPRIVATE(SWdn200clr,SWdn200) |
---|
[952] | 131 | REAL,ALLOCATABLE,SAVE :: SWup200clr(:), SWup200(:) |
---|
[967] | 132 | !$OMP THREADPRIVATE(SWup200clr,SWup200) |
---|
[3106] | 133 | REAL,ALLOCATABLE,SAVE :: lwdnc0(:,:), lwdn0(:,:), lwdn(:,:) |
---|
| 134 | !$OMP THREADPRIVATE(lwdnc0,lwdn0,lwdn) |
---|
| 135 | REAL,ALLOCATABLE,SAVE :: lwupc0(:,:), lwup0(:,:), lwup(:,:) |
---|
| 136 | !$OMP THREADPRIVATE(lwupc0,lwup0,lwup) |
---|
[952] | 137 | REAL,ALLOCATABLE,SAVE :: LWdn200clr(:), LWdn200(:) |
---|
[967] | 138 | !$OMP THREADPRIVATE(LWdn200clr,LWdn200) |
---|
[952] | 139 | REAL,ALLOCATABLE,SAVE :: LWup200clr(:), LWup200(:) |
---|
[967] | 140 | !$OMP THREADPRIVATE(LWup200clr,LWup200) |
---|
[952] | 141 | REAL,ALLOCATABLE,SAVE :: LWdnTOA(:), LWdnTOAclr(:) |
---|
[967] | 142 | !$OMP THREADPRIVATE(LWdnTOA,LWdnTOAclr) |
---|
[952] | 143 | ! pressure level |
---|
| 144 | REAL,ALLOCATABLE,SAVE :: tsumSTD(:,:,:) |
---|
[967] | 145 | !$OMP THREADPRIVATE(tsumSTD) |
---|
[952] | 146 | REAL,ALLOCATABLE,SAVE :: usumSTD(:,:,:), vsumSTD(:,:,:) |
---|
[967] | 147 | !$OMP THREADPRIVATE(usumSTD,vsumSTD) |
---|
[952] | 148 | REAL,ALLOCATABLE,SAVE :: wsumSTD(:,:,:), phisumSTD(:,:,:) |
---|
[967] | 149 | !$OMP THREADPRIVATE(wsumSTD,phisumSTD) |
---|
[952] | 150 | REAL,ALLOCATABLE,SAVE :: qsumSTD(:,:,:), rhsumSTD(:,:,:) |
---|
[967] | 151 | !$OMP THREADPRIVATE(qsumSTD,rhsumSTD) |
---|
[952] | 152 | REAL,ALLOCATABLE,SAVE :: tnondef(:,:,:) |
---|
[967] | 153 | !$OMP THREADPRIVATE(tnondef) |
---|
[952] | 154 | REAL,ALLOCATABLE,SAVE :: uvsumSTD(:,:,:) |
---|
[967] | 155 | !$OMP THREADPRIVATE(uvsumSTD) |
---|
[952] | 156 | REAL,ALLOCATABLE,SAVE :: vqsumSTD(:,:,:) |
---|
[967] | 157 | !$OMP THREADPRIVATE(vqsumSTD) |
---|
[952] | 158 | REAL,ALLOCATABLE,SAVE :: vTsumSTD(:,:,:) |
---|
[967] | 159 | !$OMP THREADPRIVATE(vTsumSTD) |
---|
[952] | 160 | REAL,ALLOCATABLE,SAVE :: wqsumSTD(:,:,:) |
---|
[967] | 161 | !$OMP THREADPRIVATE(wqsumSTD) |
---|
[952] | 162 | REAL,ALLOCATABLE,SAVE :: vphisumSTD(:,:,:) |
---|
[967] | 163 | !$OMP THREADPRIVATE(vphisumSTD) |
---|
[952] | 164 | REAL,ALLOCATABLE,SAVE :: wTsumSTD(:,:,:) |
---|
[967] | 165 | !$OMP THREADPRIVATE(wTsumSTD) |
---|
[952] | 166 | REAL,ALLOCATABLE,SAVE :: u2sumSTD(:,:,:) |
---|
[967] | 167 | !$OMP THREADPRIVATE(u2sumSTD) |
---|
[952] | 168 | REAL,ALLOCATABLE,SAVE :: v2sumSTD(:,:,:) |
---|
[967] | 169 | !$OMP THREADPRIVATE(v2sumSTD) |
---|
[952] | 170 | REAL,ALLOCATABLE,SAVE :: T2sumSTD(:,:,:) |
---|
[967] | 171 | !$OMP THREADPRIVATE(T2sumSTD) |
---|
[1398] | 172 | REAL,ALLOCATABLE,SAVE :: O3sumSTD(:,:,:), O3daysumSTD(:,:,:) |
---|
| 173 | !$OMP THREADPRIVATE(O3sumSTD,O3daysumSTD) |
---|
[1352] | 174 | !IM begin |
---|
| 175 | REAL,ALLOCATABLE,SAVE :: wlevSTD(:,:), ulevSTD(:,:), vlevSTD(:,:) |
---|
[1362] | 176 | !$OMP THREADPRIVATE(wlevSTD,ulevSTD,vlevSTD) |
---|
[1352] | 177 | REAL,ALLOCATABLE,SAVE :: tlevSTD(:,:), qlevSTD(:,:), rhlevSTD(:,:) |
---|
[1362] | 178 | !$OMP THREADPRIVATE(tlevSTD,qlevSTD,rhlevSTD) |
---|
[1352] | 179 | REAL,ALLOCATABLE,SAVE :: philevSTD(:,:) |
---|
[1362] | 180 | !$OMP THREADPRIVATE(philevSTD) |
---|
[1352] | 181 | REAL,ALLOCATABLE,SAVE :: uvSTD(:,:) |
---|
[1362] | 182 | !$OMP THREADPRIVATE(uvSTD) |
---|
[1352] | 183 | REAL,ALLOCATABLE,SAVE :: vqSTD(:,:) |
---|
[1362] | 184 | !$OMP THREADPRIVATE(vqSTD) |
---|
[1352] | 185 | REAL,ALLOCATABLE,SAVE :: vTSTD(:,:) |
---|
[1362] | 186 | !$OMP THREADPRIVATE(vTSTD) |
---|
[1352] | 187 | REAL,ALLOCATABLE,SAVE :: wqSTD(:,:) |
---|
[1362] | 188 | !$OMP THREADPRIVATE(wqSTD) |
---|
[1352] | 189 | REAL,ALLOCATABLE,SAVE :: vphiSTD(:,:) |
---|
[1362] | 190 | !$OMP THREADPRIVATE(vphiSTD) |
---|
[1352] | 191 | REAL,ALLOCATABLE,SAVE :: wTSTD(:,:) |
---|
[1362] | 192 | !$OMP THREADPRIVATE(wTSTD) |
---|
[1352] | 193 | REAL,ALLOCATABLE,SAVE :: u2STD(:,:) |
---|
[1362] | 194 | !$OMP THREADPRIVATE(u2STD) |
---|
[1352] | 195 | REAL,ALLOCATABLE,SAVE :: v2STD(:,:) |
---|
[1362] | 196 | !$OMP THREADPRIVATE(v2STD) |
---|
[1352] | 197 | REAL,ALLOCATABLE,SAVE :: T2STD(:,:) |
---|
[1362] | 198 | !$OMP THREADPRIVATE(T2STD) |
---|
[1398] | 199 | REAL,ALLOCATABLE,SAVE :: O3STD(:,:), O3daySTD(:,:) |
---|
| 200 | !$OMP THREADPRIVATE(O3STD,O3daySTD) |
---|
[1352] | 201 | !IM end |
---|
[952] | 202 | INTEGER,ALLOCATABLE,SAVE :: seed_old(:,:) |
---|
[967] | 203 | !$OMP THREADPRIVATE(seed_old) |
---|
[952] | 204 | REAL,ALLOCATABLE,SAVE :: zuthe(:),zvthe(:) |
---|
[967] | 205 | !$OMP THREADPRIVATE(zuthe,zvthe) |
---|
[952] | 206 | REAL,ALLOCATABLE,SAVE :: alb_neig(:) |
---|
[967] | 207 | !$OMP THREADPRIVATE(alb_neig) |
---|
[952] | 208 | !cloud base mass flux |
---|
[1398] | 209 | REAL,ALLOCATABLE,SAVE :: ema_cbmf(:) |
---|
| 210 | !$OMP THREADPRIVATE(ema_cbmf) |
---|
[952] | 211 | !cloud base pressure & cloud top pressure |
---|
| 212 | REAL,ALLOCATABLE,SAVE :: ema_pcb(:), ema_pct(:) |
---|
[967] | 213 | !$OMP THREADPRIVATE(ema_pcb,ema_pct) |
---|
[3496] | 214 | REAL,ALLOCATABLE,SAVE :: Mipsh(:,:) ! mass flux shed from adiab. ascents |
---|
| 215 | !$OMP THREADPRIVATE(Mipsh) |
---|
| 216 | REAL,ALLOCATABLE,SAVE :: Ma(:,:) ! undilute upward mass flux |
---|
[967] | 217 | !$OMP THREADPRIVATE(Ma) |
---|
[952] | 218 | REAL,ALLOCATABLE,SAVE :: qcondc(:,:) ! in-cld water content from convect |
---|
[967] | 219 | !$OMP THREADPRIVATE(qcondc) |
---|
[952] | 220 | REAL,ALLOCATABLE,SAVE :: wd(:) ! sb |
---|
[967] | 221 | !$OMP THREADPRIVATE(wd) |
---|
[952] | 222 | REAL,ALLOCATABLE,SAVE :: sigd(:) |
---|
[967] | 223 | !$OMP THREADPRIVATE(sigd) |
---|
[952] | 224 | ! |
---|
| 225 | REAL,ALLOCATABLE,SAVE :: cin(:) |
---|
[967] | 226 | !$OMP THREADPRIVATE(cin) |
---|
[2635] | 227 | ! ftd : convective heating due to unsaturated downdraughts |
---|
[952] | 228 | REAL,ALLOCATABLE,SAVE :: ftd(:,:) |
---|
[967] | 229 | !$OMP THREADPRIVATE(ftd) |
---|
[2635] | 230 | ! fqd : convective moistening due to unsaturated downdraughts |
---|
[4613] | 231 | REAL,ALLOCATABLE,SAVE :: fqd(:,:),fqcomp(:,:) |
---|
| 232 | !$OMP THREADPRIVATE(fqd,fqcomp) |
---|
[4088] | 233 | #ifdef ISO |
---|
| 234 | REAL, ALLOCATABLE, SAVE :: fxtd(:,:,:) |
---|
| 235 | !$OMP THREADPRIVATE(fxtd) |
---|
| 236 | #endif |
---|
[952] | 237 | !34EK |
---|
| 238 | ! -- Variables de controle de ALE et ALP |
---|
| 239 | !ALE : Energie disponible pour soulevement : utilisee par la |
---|
| 240 | ! convection d'Emanuel pour le declenchement et la regulation |
---|
| 241 | REAL,ALLOCATABLE,SAVE :: ALE(:) |
---|
[967] | 242 | !$OMP THREADPRIVATE(ALE) |
---|
[952] | 243 | !ALP : Puissance disponible pour soulevement |
---|
| 244 | REAL,ALLOCATABLE,SAVE :: ALP(:) |
---|
[967] | 245 | !$OMP THREADPRIVATE(ALP) |
---|
[952] | 246 | ! |
---|
| 247 | ! nouvelles variables pour le couplage convection-couche limite |
---|
| 248 | REAL,ALLOCATABLE,SAVE :: Ale_bl(:) |
---|
[967] | 249 | !$OMP THREADPRIVATE(Ale_bl) |
---|
[952] | 250 | REAL,ALLOCATABLE,SAVE :: Alp_bl(:) |
---|
[967] | 251 | !$OMP THREADPRIVATE(Alp_bl) |
---|
[952] | 252 | INTEGER,ALLOCATABLE,SAVE :: lalim_conv(:) |
---|
[967] | 253 | !$OMP THREADPRIVATE(lalim_conv) |
---|
[952] | 254 | REAL,ALLOCATABLE,SAVE :: wght_th(:,:) |
---|
[967] | 255 | !$OMP THREADPRIVATE(wght_th) |
---|
[3080] | 256 | REAL,ALLOCATABLE,SAVE :: ale_wake(:) |
---|
| 257 | !$OMP THREADPRIVATE(ale_wake) |
---|
| 258 | REAL,ALLOCATABLE,SAVE :: ale_bl_stat(:) |
---|
| 259 | !$OMP THREADPRIVATE(ale_bl_stat) |
---|
[952] | 260 | ! |
---|
| 261 | ! variables de la wake |
---|
| 262 | ! wake_deltat : ecart de temperature avec la zone non perturbee |
---|
| 263 | ! wake_deltaq : ecart d'humidite avec la zone non perturbee |
---|
[2635] | 264 | ! wake_s : fraction surfacique occupee par la poche froide |
---|
[4744] | 265 | ! awake_s : surface fraction covered by active wakes |
---|
| 266 | ! wake_dens : number of wakes per unit area |
---|
[3208] | 267 | ! awake_dens : number of active wakes per unit area |
---|
[3956] | 268 | ! cv_gen : birth rate of cumulonimbus per unit area. |
---|
[2635] | 269 | ! wake_occ : occurence of wakes (= 1 if wakes occur, =0 otherwise) |
---|
[952] | 270 | ! wake_Cstar : vitesse d'etalement de la poche |
---|
[1403] | 271 | ! wake_pe : wake potential energy - WAPE |
---|
[952] | 272 | ! wake_fip : Gust Front Impinging power - ALP |
---|
| 273 | REAL,ALLOCATABLE,SAVE :: wake_deltat(:,:) |
---|
[967] | 274 | !$OMP THREADPRIVATE(wake_deltat) |
---|
[952] | 275 | REAL,ALLOCATABLE,SAVE :: wake_deltaq(:,:) |
---|
[967] | 276 | !$OMP THREADPRIVATE(wake_deltaq) |
---|
[4088] | 277 | #ifdef ISO |
---|
| 278 | REAL, ALLOCATABLE, SAVE :: wake_deltaxt(:,:,:) |
---|
| 279 | !$OMP THREADPRIVATE(wake_deltaxt) |
---|
| 280 | #endif |
---|
[4744] | 281 | REAL,ALLOCATABLE,SAVE :: wake_s(:), awake_s(:) |
---|
| 282 | !$OMP THREADPRIVATE(wake_s, awake_s) |
---|
| 283 | REAL,ALLOCATABLE,SAVE :: wake_dens(:), awake_dens(:) |
---|
| 284 | !$OMP THREADPRIVATE(wake_dens, awake_dens) |
---|
[3956] | 285 | REAL,ALLOCATABLE,SAVE :: cv_gen(:) |
---|
| 286 | !$OMP THREADPRIVATE(cv_gen) |
---|
[952] | 287 | REAL,ALLOCATABLE,SAVE :: wake_Cstar(:) |
---|
[967] | 288 | !$OMP THREADPRIVATE(wake_Cstar) |
---|
[1403] | 289 | REAL,ALLOCATABLE,SAVE :: wake_pe(:) |
---|
| 290 | !$OMP THREADPRIVATE(wake_pe) |
---|
[952] | 291 | REAL,ALLOCATABLE,SAVE :: wake_fip(:) |
---|
[967] | 292 | !$OMP THREADPRIVATE(wake_fip) |
---|
[952] | 293 | ! |
---|
[2159] | 294 | !jyg< |
---|
| 295 | ! variables related to the spitting of the PBL between wake and |
---|
| 296 | ! off-wake regions. |
---|
| 297 | ! wake_delta_pbl_TKE : difference TKE_w - TKE_x |
---|
| 298 | REAL,ALLOCATABLE,SAVE :: wake_delta_pbl_TKE(:,:,:) |
---|
| 299 | !$OMP THREADPRIVATE(wake_delta_pbl_TKE) |
---|
[3888] | 300 | !nrlmd< |
---|
| 301 | REAL, ALLOCATABLE, SAVE :: delta_tsurf(:,:) ! Surface temperature difference inside-outside cold pool |
---|
| 302 | !$OMP THREADPRIVATE(delta_tsurf) |
---|
| 303 | !>nrlmd |
---|
[2159] | 304 | !>jyg |
---|
| 305 | ! |
---|
[952] | 306 | ! pfrac_impa : Produits des coefs lessivage impaction |
---|
| 307 | ! pfrac_nucl : Produits des coefs lessivage nucleation |
---|
| 308 | ! pfrac_1nucl: Produits des coefs lessi nucl (alpha = 1) |
---|
| 309 | REAL,ALLOCATABLE,SAVE :: pfrac_impa(:,:), pfrac_nucl(:,:) |
---|
[967] | 310 | !$OMP THREADPRIVATE(pfrac_impa,pfrac_nucl) |
---|
[952] | 311 | REAL,ALLOCATABLE,SAVE :: pfrac_1nucl(:,:) |
---|
[967] | 312 | !$OMP THREADPRIVATE(pfrac_1nucl) |
---|
[952] | 313 | ! |
---|
| 314 | REAL,ALLOCATABLE,SAVE :: total_rain(:), nday_rain(:) |
---|
[967] | 315 | !$OMP THREADPRIVATE(total_rain,nday_rain) |
---|
[4556] | 316 | REAL,ALLOCATABLE,SAVE :: ndayrain_mth(:) |
---|
| 317 | !$OMP THREADPRIVATE(ndayrain_mth) |
---|
[3435] | 318 | REAL,ALLOCATABLE,SAVE :: paire_ter(:) |
---|
| 319 | !$OMP THREADPRIVATE(paire_ter) |
---|
[952] | 320 | ! albsol1: albedo du sol total pour SW visible |
---|
| 321 | ! albsol2: albedo du sol total pour SW proche IR |
---|
| 322 | REAL,ALLOCATABLE,SAVE :: albsol1(:), albsol2(:) |
---|
[967] | 323 | !$OMP THREADPRIVATE(albsol1,albsol2) |
---|
[1279] | 324 | |
---|
[2227] | 325 | !albedo SB >>> |
---|
| 326 | REAL,ALLOCATABLE,SAVE :: albsol_dif(:,:),albsol_dir(:,:) |
---|
| 327 | !$OMP THREADPRIVATE(albsol_dif,albsol_dir) |
---|
| 328 | !albedo SB <<< |
---|
| 329 | |
---|
| 330 | |
---|
[1279] | 331 | REAL, ALLOCATABLE, SAVE:: wo(:, :, :) |
---|
| 332 | ! column-density of ozone in a layer, in kilo-Dobsons |
---|
| 333 | ! Third dimension has size 1 or 2. |
---|
| 334 | ! "wo(:, :, 1)" is for the average day-night field, |
---|
| 335 | ! "wo(:, :, 2)" is for daylight time. |
---|
| 336 | !$OMP THREADPRIVATE(wo) |
---|
| 337 | |
---|
[952] | 338 | ! heat : chauffage solaire |
---|
| 339 | ! heat0: chauffage solaire ciel clair |
---|
| 340 | ! cool : refroidissement infrarouge |
---|
| 341 | ! cool0 : refroidissement infrarouge ciel clair |
---|
| 342 | ! sollwdown : downward LW flux at surface |
---|
| 343 | ! sollwdownclr : downward CS LW flux at surface |
---|
| 344 | ! toplwdown : downward CS LW flux at TOA |
---|
| 345 | ! toplwdownclr : downward CS LW flux at TOA |
---|
[3479] | 346 | ! heat_volc : chauffage solaire du au volcanisme |
---|
| 347 | ! cool_volc : refroidissement infrarouge du au volcanisme |
---|
[952] | 348 | REAL,ALLOCATABLE,SAVE :: clwcon0(:,:),rnebcon0(:,:) |
---|
[967] | 349 | !$OMP THREADPRIVATE(clwcon0,rnebcon0) |
---|
[952] | 350 | REAL,ALLOCATABLE,SAVE :: heat(:,:) |
---|
[967] | 351 | !$OMP THREADPRIVATE(heat) |
---|
[952] | 352 | REAL,ALLOCATABLE,SAVE :: heat0(:,:) |
---|
[967] | 353 | !$OMP THREADPRIVATE(heat0) |
---|
[952] | 354 | REAL,ALLOCATABLE,SAVE :: cool(:,:) |
---|
[967] | 355 | !$OMP THREADPRIVATE(cool) |
---|
[952] | 356 | REAL,ALLOCATABLE,SAVE :: cool0(:,:) |
---|
[967] | 357 | !$OMP THREADPRIVATE(cool0) |
---|
[3479] | 358 | REAL,ALLOCATABLE,SAVE :: heat_volc(:,:) |
---|
| 359 | !$OMP THREADPRIVATE(heat_volc) |
---|
| 360 | REAL,ALLOCATABLE,SAVE :: cool_volc(:,:) |
---|
| 361 | !$OMP THREADPRIVATE(cool_volc) |
---|
[952] | 362 | REAL,ALLOCATABLE,SAVE :: topsw(:), toplw(:) |
---|
[967] | 363 | !$OMP THREADPRIVATE(topsw,toplw) |
---|
[952] | 364 | REAL,ALLOCATABLE,SAVE :: sollwdown(:) |
---|
[967] | 365 | !$OMP THREADPRIVATE(sollwdown) |
---|
[2240] | 366 | REAL,ALLOCATABLE,SAVE :: gustiness(:) |
---|
| 367 | !$OMP THREADPRIVATE(gustiness) |
---|
[952] | 368 | REAL,ALLOCATABLE,SAVE :: sollwdownclr(:) |
---|
[967] | 369 | !$OMP THREADPRIVATE(sollwdownclr) |
---|
[952] | 370 | REAL,ALLOCATABLE,SAVE :: toplwdown(:) |
---|
[967] | 371 | !$OMP THREADPRIVATE(toplwdown) |
---|
[952] | 372 | REAL,ALLOCATABLE,SAVE :: toplwdownclr(:) |
---|
[967] | 373 | !$OMP THREADPRIVATE(toplwdownclr) |
---|
[952] | 374 | REAL,ALLOCATABLE,SAVE :: topsw0(:),toplw0(:),solsw0(:),sollw0(:) |
---|
[967] | 375 | !$OMP THREADPRIVATE(topsw0,toplw0,solsw0,sollw0) |
---|
[952] | 376 | REAL,ALLOCATABLE,SAVE :: albpla(:) |
---|
[967] | 377 | !$OMP THREADPRIVATE(albpla) |
---|
[1539] | 378 | |
---|
| 379 | !IM ajout variables CFMIP2/CMIP5 |
---|
| 380 | REAL,ALLOCATABLE,SAVE :: heatp(:,:), coolp(:,:) |
---|
| 381 | !$OMP THREADPRIVATE(heatp, coolp) |
---|
| 382 | REAL,ALLOCATABLE,SAVE :: heat0p(:,:), cool0p(:,:) |
---|
| 383 | !$OMP THREADPRIVATE(heat0p, cool0p) |
---|
| 384 | REAL,ALLOCATABLE,SAVE :: radsolp(:), topswp(:), toplwp(:) |
---|
| 385 | !$OMP THREADPRIVATE(radsolp, topswp, toplwp) |
---|
| 386 | REAL,ALLOCATABLE,SAVE :: albplap(:) |
---|
| 387 | !$OMP THREADPRIVATE(albplap) |
---|
[3756] | 388 | REAL,ALLOCATABLE,SAVE :: solswp(:), solswfdiffp(:), sollwp(:) |
---|
| 389 | !$OMP THREADPRIVATE(solswp, solswfdiffp, sollwp) |
---|
[1539] | 390 | REAL,ALLOCATABLE,SAVE :: sollwdownp(:) |
---|
| 391 | !$OMP THREADPRIVATE(sollwdownp) |
---|
| 392 | REAL,ALLOCATABLE,SAVE :: topsw0p(:),toplw0p(:) |
---|
| 393 | REAL,ALLOCATABLE,SAVE :: solsw0p(:),sollw0p(:) |
---|
| 394 | !$OMP THREADPRIVATE(topsw0p,toplw0p,solsw0p,sollw0p) |
---|
[3106] | 395 | REAL,ALLOCATABLE,SAVE :: lwdnc0p(:,:), lwdn0p(:,:), lwdnp(:,:) |
---|
| 396 | REAL,ALLOCATABLE,SAVE :: lwupc0p(:,:), lwup0p(:,:), lwupp(:,:) |
---|
| 397 | !$OMP THREADPRIVATE(lwdnc0p, lwdn0p, lwdnp, lwupc0p, lwup0p, lwupp) |
---|
[3082] | 398 | REAL,ALLOCATABLE,SAVE :: swdnc0p(:,:), swdn0p(:,:), swdnp(:,:) |
---|
| 399 | REAL,ALLOCATABLE,SAVE :: swupc0p(:,:), swup0p(:,:), swupp(:,:) |
---|
| 400 | !$OMP THREADPRIVATE(swdnc0p, swdn0p, swdnp, swupc0p, swup0p, swupp) |
---|
[1539] | 401 | |
---|
[4677] | 402 | !AI ajout variables double appel Ecrad (3Deffect) |
---|
| 403 | REAL,ALLOCATABLE,SAVE :: heat_s2(:,:), cool_s2(:,:) |
---|
| 404 | !$OMP THREADPRIVATE(heat_s2, cool_s2) |
---|
| 405 | REAL,ALLOCATABLE,SAVE :: heat0_s2(:,:), cool0_s2(:,:) |
---|
| 406 | !$OMP THREADPRIVATE(heat0_s2, cool0_s2) |
---|
| 407 | REAL,ALLOCATABLE,SAVE :: radsol_s2(:), topsw_s2(:), toplw_s2(:) |
---|
| 408 | !$OMP THREADPRIVATE(radsol_s2, topsw_s2, toplw_s2) |
---|
| 409 | REAL,ALLOCATABLE,SAVE :: albpla_s2(:) |
---|
| 410 | !$OMP THREADPRIVATE(albpla_s2) |
---|
| 411 | REAL,ALLOCATABLE,SAVE :: solsw_s2(:), solswfdiff_s2(:), sollw_s2(:) |
---|
| 412 | !$OMP THREADPRIVATE(solsw_s2, solswfdiff_s2, sollw_s2) |
---|
[4773] | 413 | REAL,ALLOCATABLE,SAVE :: sollwdown_s2(:), sollwdownclr_s2(:) |
---|
| 414 | !$OMP THREADPRIVATE(sollwdown_s2, sollwdownclr_s2) |
---|
[4677] | 415 | REAL,ALLOCATABLE,SAVE :: topsw0_s2(:),toplw0_s2(:) |
---|
| 416 | REAL,ALLOCATABLE,SAVE :: solsw0_s2(:),sollw0_s2(:) |
---|
| 417 | !$OMP THREADPRIVATE(topsw0_s2,toplw0_s2,solsw0_s2,sollw0_s2) |
---|
| 418 | REAL,ALLOCATABLE,SAVE :: lwdnc0_s2(:,:), lwdn0_s2(:,:), lwdn_s2(:,:) |
---|
| 419 | REAL,ALLOCATABLE,SAVE :: lwupc0_s2(:,:), lwup0_s2(:,:), lwup_s2(:,:) |
---|
| 420 | !$OMP THREADPRIVATE(lwdnc0_s2,lwdn0_s2,lwdn_s2,lwupc0_s2,lwup0_s2,lwup_s2) |
---|
| 421 | REAL,ALLOCATABLE,SAVE :: swdnc0_s2(:,:), swdn0_s2(:,:), swdn_s2(:,:) |
---|
| 422 | REAL,ALLOCATABLE,SAVE :: swupc0_s2(:,:), swup0_s2(:,:), swup_s2(:,:) |
---|
| 423 | !$OMP THREADPRIVATE(swdnc0_s2, swdn0_s2, swdn_s2, swupc0_s2, swup0_s2, swup_s2) |
---|
| 424 | |
---|
[952] | 425 | ! pbase : cloud base pressure |
---|
| 426 | ! bbase : cloud base buoyancy |
---|
| 427 | REAL,ALLOCATABLE,SAVE :: cape(:) |
---|
[967] | 428 | !$OMP THREADPRIVATE(cape) |
---|
[952] | 429 | REAL,ALLOCATABLE,SAVE :: pbase(:) |
---|
[967] | 430 | !$OMP THREADPRIVATE(pbase) |
---|
[952] | 431 | REAL,ALLOCATABLE,SAVE :: bbase(:) |
---|
[967] | 432 | !$OMP THREADPRIVATE(bbase) |
---|
[952] | 433 | ! |
---|
| 434 | REAL,SAVE,ALLOCATABLE :: zqasc(:,:) |
---|
[967] | 435 | !$OMP THREADPRIVATE( zqasc) |
---|
[952] | 436 | INTEGER,ALLOCATABLE,SAVE :: ibas_con(:), itop_con(:) |
---|
[967] | 437 | !$OMP THREADPRIVATE(ibas_con,itop_con) |
---|
[952] | 438 | REAL,SAVE,ALLOCATABLE :: rain_con(:) |
---|
[967] | 439 | !$OMP THREADPRIVATE(rain_con) |
---|
[952] | 440 | REAL,SAVE,ALLOCATABLE :: snow_con(:) |
---|
[967] | 441 | !$OMP THREADPRIVATE(snow_con) |
---|
[952] | 442 | ! |
---|
[4088] | 443 | #ifdef ISO |
---|
| 444 | REAL,SAVE,ALLOCATABLE :: xtrain_con(:,:) |
---|
| 445 | !$OMP THREADPRIVATE(xtrain_con) |
---|
| 446 | REAL,SAVE,ALLOCATABLE :: xtsnow_con(:,:) |
---|
| 447 | !$OMP THREADPRIVATE(xtsnow_con) |
---|
| 448 | #endif |
---|
[952] | 449 | REAL,SAVE,ALLOCATABLE :: rlonPOS(:) |
---|
[967] | 450 | !$OMP THREADPRIVATE(rlonPOS) |
---|
[952] | 451 | REAL,SAVE,ALLOCATABLE :: newsst(:) |
---|
[967] | 452 | !$OMP THREADPRIVATE(newsst) |
---|
[1813] | 453 | REAL,SAVE,ALLOCATABLE :: ustar(:,:),u10m(:,:), v10m(:,:),wstar(:,:) |
---|
| 454 | !$OMP THREADPRIVATE(ustar,u10m,v10m,wstar) |
---|
[952] | 455 | ! |
---|
| 456 | ! ok_ade=T -ADE=topswad-topsw |
---|
| 457 | ! ok_aie=T -> |
---|
| 458 | ! ok_ade=T -AIE=topswai-topswad |
---|
[1279] | 459 | ! ok_ade=F -AIE=topswai-topsw |
---|
[952] | 460 | ! |
---|
| 461 | !topswad, solswad : Aerosol direct effect |
---|
| 462 | REAL,SAVE,ALLOCATABLE :: topswad(:), solswad(:) |
---|
[967] | 463 | !$OMP THREADPRIVATE(topswad,solswad) |
---|
[952] | 464 | !topswai, solswai : Aerosol indirect effect |
---|
| 465 | REAL,SAVE,ALLOCATABLE :: topswai(:), solswai(:) |
---|
[967] | 466 | !$OMP THREADPRIVATE(topswai,solswai) |
---|
[959] | 467 | |
---|
[1279] | 468 | REAL,SAVE,ALLOCATABLE :: tau_aero(:,:,:,:), piz_aero(:,:,:,:), cg_aero(:,:,:,:) |
---|
| 469 | !$OMP THREADPRIVATE(tau_aero, piz_aero, cg_aero) |
---|
[2146] | 470 | REAL,SAVE,ALLOCATABLE :: tau_aero_sw_rrtm(:,:,:,:), piz_aero_sw_rrtm(:,:,:,:), cg_aero_sw_rrtm(:,:,:,:) |
---|
| 471 | !$OMP THREADPRIVATE(tau_aero_sw_rrtm, piz_aero_sw_rrtm, cg_aero_sw_rrtm) |
---|
| 472 | REAL,SAVE,ALLOCATABLE :: tau_aero_lw_rrtm(:,:,:,:), piz_aero_lw_rrtm(:,:,:,:), cg_aero_lw_rrtm(:,:,:,:) |
---|
| 473 | !$OMP THREADPRIVATE(tau_aero_lw_rrtm, piz_aero_lw_rrtm, cg_aero_lw_rrtm) |
---|
[952] | 474 | REAL,SAVE,ALLOCATABLE :: ccm(:,:,:) |
---|
[967] | 475 | !$OMP THREADPRIVATE(ccm) |
---|
[952] | 476 | |
---|
[1638] | 477 | REAL,SAVE,ALLOCATABLE :: ale_bl_trig(:) |
---|
| 478 | !$OMP THREADPRIVATE(ale_bl_trig) |
---|
| 479 | |
---|
[5208] | 480 | REAL,SAVE,ALLOCATABLE :: ratqs_inter_(:,:),sigma_qtherm(:,:) |
---|
| 481 | !$OMP THREADPRIVATE(ratqs_inter_,sigma_qtherm) |
---|
[3856] | 482 | |
---|
[4088] | 483 | #ifdef ISO |
---|
| 484 | #ifdef ISOTRAC |
---|
| 485 | INTEGER,SAVE,ALLOCATABLE :: bassin_map(:) |
---|
| 486 | !$OMP THREADPRIVATE(bassin_map) |
---|
| 487 | INTEGER,SAVE,ALLOCATABLE :: boite_map(:,:) |
---|
| 488 | !$OMP THREADPRIVATE(boite_map) |
---|
| 489 | #endif |
---|
| 490 | #endif |
---|
[2333] | 491 | REAL, ALLOCATABLE, SAVE:: du_gwd_rando(:, :), du_gwd_front(:, :) |
---|
| 492 | !$OMP THREADPRIVATE(du_gwd_rando, du_gwd_front) |
---|
[1938] | 493 | ! tendencies on wind due to gravity waves |
---|
| 494 | |
---|
[3435] | 495 | LOGICAL,SAVE :: is_initialized=.FALSE. |
---|
| 496 | !$OMP THREADPRIVATE(is_initialized) |
---|
| 497 | |
---|
[3815] | 498 | ! Ocean-atmosphere interface: |
---|
[909] | 499 | |
---|
[3815] | 500 | REAL, ALLOCATABLE, SAVE:: ds_ns(:) ! (klon) |
---|
| 501 | ! "delta salinity near surface". Salinity variation in the |
---|
| 502 | ! near-surface turbulent layer. That is subskin salinity minus |
---|
| 503 | ! foundation salinity. In ppt. |
---|
| 504 | |
---|
| 505 | REAL, ALLOCATABLE, SAVE:: dt_ns(:) ! (klon) |
---|
| 506 | ! "delta temperature near surface". Temperature variation in the |
---|
| 507 | ! near-surface turbulent layer. That is subskin temperature |
---|
| 508 | ! minus foundation temperature. (Can be negative.) In K. |
---|
| 509 | |
---|
| 510 | REAL, ALLOCATABLE, SAVE:: delta_sst(:) ! (klon) |
---|
| 511 | ! Ocean-air interface temperature minus bulk SST, in |
---|
| 512 | ! K. Allocated and defined only if activate_ocean_skin >= 1. |
---|
| 513 | |
---|
| 514 | REAL, ALLOCATABLE, SAVE:: delta_sal(:) ! (klon) |
---|
| 515 | ! Ocean-air interface salinity minus bulk salinity, in ppt |
---|
| 516 | |
---|
[4370] | 517 | REAL, ALLOCATABLE, SAVE:: dter(:) ! (klon) |
---|
| 518 | ! Temperature variation in the diffusive microlayer, that is |
---|
| 519 | ! ocean-air interface temperature minus subskin temperature. In K. |
---|
[3815] | 520 | |
---|
[4370] | 521 | REAL, SAVE, ALLOCATABLE:: dser(:) ! (klon) |
---|
| 522 | ! Salinity variation in the diffusive microlayer, that is |
---|
| 523 | ! ocean-air interface salinity minus subskin salinity. In ppt. |
---|
| 524 | |
---|
| 525 | real, SAVE, ALLOCATABLE:: dt_ds(:) ! (klon) |
---|
| 526 | ! (tks / tkt) * dTer, in K |
---|
| 527 | |
---|
| 528 | !$OMP THREADPRIVATE(delta_sal, ds_ns, dt_ns, delta_sst, dter, dser, dt_ds) |
---|
| 529 | |
---|
[3815] | 530 | CONTAINS |
---|
| 531 | |
---|
[909] | 532 | !====================================================================== |
---|
[1279] | 533 | SUBROUTINE phys_state_var_init(read_climoz) |
---|
[1785] | 534 | USE dimphy |
---|
| 535 | USE aero_mod |
---|
[2320] | 536 | USE infotrac_phy, ONLY : nbtr |
---|
[4088] | 537 | #ifdef ISO |
---|
[4143] | 538 | USE infotrac_phy, ONLY : ntraciso=>ntiso,niso |
---|
[4088] | 539 | #endif |
---|
[5282] | 540 | USE clesphys_mod_h |
---|
[1785] | 541 | USE indice_sol_mod |
---|
[3815] | 542 | use config_ocean_skin_m, only: activate_ocean_skin |
---|
[4370] | 543 | use surface_data, only: type_ocean |
---|
[909] | 544 | IMPLICIT NONE |
---|
[1279] | 545 | |
---|
| 546 | integer, intent(in):: read_climoz |
---|
| 547 | ! read ozone climatology |
---|
| 548 | ! Allowed values are 0, 1 and 2 |
---|
| 549 | ! 0: do not read an ozone climatology |
---|
| 550 | ! 1: read a single ozone climatology that will be used day and night |
---|
| 551 | ! 2: read two ozone climatologies, the average day and night |
---|
| 552 | ! climatology and the daylight climatology |
---|
| 553 | |
---|
[3781] | 554 | |
---|
| 555 | print*, 'is_initialized', is_initialized |
---|
[3435] | 556 | IF (is_initialized) RETURN |
---|
| 557 | is_initialized=.TRUE. |
---|
[952] | 558 | ALLOCATE(pctsrf(klon,nbsrf)) |
---|
| 559 | ALLOCATE(ftsol(klon,nbsrf)) |
---|
[3888] | 560 | ALLOCATE(beta_aridity(klon,nbsrf)) |
---|
[2243] | 561 | ALLOCATE(qsol(klon),fevap(klon,nbsrf)) |
---|
| 562 | ALLOCATE(z0m(klon,nbsrf+1),z0h(klon,nbsrf+1),agesno(klon,nbsrf)) |
---|
[2952] | 563 | !FC |
---|
| 564 | ALLOCATE(treedrg(klon,klev,nbsrf)) |
---|
[952] | 565 | ALLOCATE(falb1(klon,nbsrf)) |
---|
| 566 | ALLOCATE(falb2(klon,nbsrf)) |
---|
[2227] | 567 | !albedo SB >>> |
---|
[3781] | 568 | print*, 'allocate falb' |
---|
[2227] | 569 | ALLOCATE(falb_dir(klon,nsw,nbsrf),falb_dif(klon,nsw,nbsrf)) |
---|
[3956] | 570 | !! print*, 'allocate falb good', falb_dir(1,1,1) |
---|
[2227] | 571 | ALLOCATE(chl_con(klon)) |
---|
| 572 | !albedo SB <<< |
---|
[952] | 573 | ALLOCATE(rain_fall(klon)) |
---|
| 574 | ALLOCATE(snow_fall(klon)) |
---|
[4523] | 575 | ALLOCATE(bs_fall(klon)) |
---|
[3756] | 576 | ALLOCATE(solsw(klon), solswfdiff(klon), sollw(klon)) |
---|
[3435] | 577 | sollw=0.0 |
---|
[952] | 578 | ALLOCATE(radsol(klon)) |
---|
[2366] | 579 | ALLOCATE(swradcorr(klon)) |
---|
[952] | 580 | ALLOCATE(zmea(klon), zstd(klon), zsig(klon), zgam(klon)) |
---|
| 581 | ALLOCATE(zthe(klon), zpic(klon), zval(klon)) |
---|
[909] | 582 | |
---|
[952] | 583 | ALLOCATE(rugoro(klon)) |
---|
| 584 | ALLOCATE(t_ancien(klon,klev), q_ancien(klon,klev)) |
---|
[4523] | 585 | ALLOCATE(ql_ancien(klon,klev), qs_ancien(klon,klev), qbs_ancien(klon,klev)) |
---|
| 586 | ALLOCATE(prw_ancien(klon), prlw_ancien(klon), prsw_ancien(klon), prbsw_ancien(klon)) |
---|
[1054] | 587 | ALLOCATE(u_ancien(klon,klev), v_ancien(klon,klev)) |
---|
[5204] | 588 | ALLOCATE(cf_ancien(klon,klev), rvc_ancien(klon,klev)) |
---|
[1742] | 589 | !!! Rom P >>> |
---|
| 590 | ALLOCATE(tr_ancien(klon,klev,nbtr)) |
---|
| 591 | !!! Rom P <<< |
---|
[952] | 592 | ALLOCATE(clwcon(klon,klev),rnebcon(klon,klev)) |
---|
[4613] | 593 | ALLOCATE(qtc_cv(klon,klev),sigt_cv(klon,klev),detrain_cv(klon,klev),fm_cv(klon,klev)) |
---|
[952] | 594 | ALLOCATE(ratqs(klon,klev)) |
---|
[1761] | 595 | ALLOCATE(pbl_tke(klon,klev+1,nbsrf+1)) |
---|
[2159] | 596 | !nrlmd< |
---|
| 597 | ALLOCATE(delta_tsurf(klon,nbsrf)) |
---|
| 598 | !>nrlmd |
---|
[1761] | 599 | ALLOCATE(coefh(klon,klev+1,nbsrf+1)) |
---|
| 600 | ALLOCATE(coefm(klon,klev+1,nbsrf+1)) |
---|
[4296] | 601 | ! initialize cleanly coefh,coefm |
---|
| 602 | ! (most of the time in the code these are assumed to be on klev levels) |
---|
| 603 | coefh(:,:,:)=0 |
---|
| 604 | coefm(:,:,:)=0 |
---|
[927] | 605 | ALLOCATE(zmax0(klon), f0(klon)) |
---|
[1827] | 606 | ALLOCATE(sig1(klon,klev), w01(klon,klev)) |
---|
[942] | 607 | ALLOCATE(entr_therm(klon,klev), fm_therm(klon,klev+1)) |
---|
[952] | 608 | ALLOCATE(detr_therm(klon,klev)) |
---|
| 609 | ! pour phsystoke avec thermiques |
---|
| 610 | ALLOCATE(clwcon0th(klon,klev),rnebcon0th(klon,klev)) |
---|
| 611 | ! radiation outputs |
---|
[3082] | 612 | ALLOCATE(swdnc0(klon,klevp1), swdn0(klon,klevp1), swdn(klon,klevp1)) |
---|
| 613 | ALLOCATE(swupc0(klon,klevp1), swup0(klon,klevp1), swup(klon,klevp1)) |
---|
[3106] | 614 | ALLOCATE(lwdnc0(klon,klevp1), lwdn0(klon,klevp1), lwdn(klon,klevp1)) |
---|
| 615 | ALLOCATE(lwupc0(klon,klevp1), lwup0(klon,klevp1), lwup(klon,klevp1)) |
---|
[952] | 616 | ALLOCATE(SWdn200clr(klon), SWdn200(klon)) |
---|
| 617 | ALLOCATE(SWup200clr(klon), SWup200(klon)) |
---|
| 618 | ALLOCATE(LWdn200clr(klon), LWdn200(klon)) |
---|
| 619 | ALLOCATE(LWup200clr(klon), LWup200(klon)) |
---|
| 620 | ALLOCATE(LWdnTOA(klon), LWdnTOAclr(klon)) |
---|
| 621 | ! pressure level |
---|
| 622 | ALLOCATE(tsumSTD(klon,nlevSTD,nout)) |
---|
| 623 | ALLOCATE(usumSTD(klon,nlevSTD,nout), vsumSTD(klon,nlevSTD,nout)) |
---|
| 624 | ALLOCATE(wsumSTD(klon,nlevSTD,nout), phisumSTD(klon,nlevSTD,nout)) |
---|
| 625 | ALLOCATE(qsumSTD(klon,nlevSTD,nout), rhsumSTD(klon,nlevSTD,nout)) |
---|
| 626 | ALLOCATE(tnondef(klon,nlevSTD,nout)) |
---|
| 627 | ALLOCATE(uvsumSTD(klon,nlevSTD,nout)) |
---|
| 628 | ALLOCATE(vqsumSTD(klon,nlevSTD,nout)) |
---|
| 629 | ALLOCATE(vTsumSTD(klon,nlevSTD,nout)) |
---|
| 630 | ALLOCATE(wqsumSTD(klon,nlevSTD,nout)) |
---|
| 631 | ALLOCATE(vphisumSTD(klon,nlevSTD,nout)) |
---|
| 632 | ALLOCATE(wTsumSTD(klon,nlevSTD,nout)) |
---|
| 633 | ALLOCATE(u2sumSTD(klon,nlevSTD,nout)) |
---|
| 634 | ALLOCATE(v2sumSTD(klon,nlevSTD,nout)) |
---|
| 635 | ALLOCATE(T2sumSTD(klon,nlevSTD,nout)) |
---|
[1398] | 636 | ALLOCATE(O3sumSTD(klon,nlevSTD,nout)) |
---|
| 637 | ALLOCATE(O3daysumSTD(klon,nlevSTD,nout)) |
---|
[1352] | 638 | !IM beg |
---|
| 639 | ALLOCATE(wlevSTD(klon,nlevSTD), ulevSTD(klon,nlevSTD), vlevSTD(klon,nlevSTD)) |
---|
| 640 | ALLOCATE(tlevSTD(klon,nlevSTD), qlevSTD(klon,nlevSTD), rhlevSTD(klon,nlevSTD)) |
---|
| 641 | ALLOCATE(philevSTD(klon,nlevSTD)) |
---|
| 642 | ALLOCATE(uvSTD(klon,nlevSTD),vqSTD(klon,nlevSTD)) |
---|
| 643 | ALLOCATE(vTSTD(klon,nlevSTD),wqSTD(klon,nlevSTD)) |
---|
| 644 | ALLOCATE(vphiSTD(klon,nlevSTD),wTSTD(klon,nlevSTD)) |
---|
| 645 | ALLOCATE(u2STD(klon,nlevSTD),v2STD(klon,nlevSTD)) |
---|
| 646 | ALLOCATE(T2STD(klon,nlevSTD)) |
---|
[1398] | 647 | ALLOCATE(O3STD(klon,nlevSTD)) |
---|
| 648 | ALLOCATE(O3daySTD(klon,nlevSTD)) |
---|
[1352] | 649 | !IM end |
---|
[952] | 650 | ALLOCATE(seed_old(klon,napisccp)) |
---|
| 651 | ALLOCATE(zuthe(klon),zvthe(klon)) |
---|
| 652 | ALLOCATE(alb_neig(klon)) |
---|
| 653 | !cloud base mass flux |
---|
[1398] | 654 | ALLOCATE(ema_cbmf(klon)) |
---|
[952] | 655 | !cloud base pressure & cloud top pressure |
---|
| 656 | ALLOCATE(ema_pcb(klon), ema_pct(klon)) |
---|
| 657 | ! |
---|
[3496] | 658 | ALLOCATE(Mipsh(klon,klev)) |
---|
[952] | 659 | ALLOCATE(Ma(klon,klev)) |
---|
| 660 | ALLOCATE(qcondc(klon,klev)) |
---|
| 661 | ALLOCATE(wd(klon)) |
---|
| 662 | ALLOCATE(sigd(klon)) |
---|
| 663 | ALLOCATE(cin(klon), ALE(klon), ALP(klon)) |
---|
[4613] | 664 | ALLOCATE(ftd(klon,klev), fqd(klon,klev),fqcomp(klon,klev)) |
---|
[952] | 665 | ALLOCATE(Ale_bl(klon)) |
---|
[3080] | 666 | ALLOCATE(ale_wake(klon)) |
---|
| 667 | ALLOCATE(ale_bl_stat(klon)) |
---|
[3439] | 668 | ale_bl_stat(:)=0 |
---|
[952] | 669 | ALLOCATE(Alp_bl(klon)) |
---|
| 670 | ALLOCATE(lalim_conv(klon)) |
---|
| 671 | ALLOCATE(wght_th(klon,klev)) |
---|
| 672 | ALLOCATE(wake_deltat(klon,klev), wake_deltaq(klon,klev)) |
---|
[4744] | 673 | ALLOCATE(wake_s(klon), awake_s(klon), wake_dens(klon), awake_dens(klon)) |
---|
[3956] | 674 | !! awake_dens = 0. ! initialized in phyetat0 |
---|
| 675 | ALLOCATE(cv_gen(klon)) |
---|
[2635] | 676 | ALLOCATE(wake_Cstar(klon)) |
---|
[1403] | 677 | ALLOCATE(wake_pe(klon), wake_fip(klon)) |
---|
[2159] | 678 | !jyg< |
---|
[2181] | 679 | ALLOCATE(wake_delta_pbl_TKE(klon,klev+1,nbsrf+1)) |
---|
[2159] | 680 | !>jyg |
---|
[952] | 681 | ALLOCATE(pfrac_impa(klon,klev), pfrac_nucl(klon,klev)) |
---|
| 682 | ALLOCATE(pfrac_1nucl(klon,klev)) |
---|
| 683 | ALLOCATE(total_rain(klon), nday_rain(klon)) |
---|
[4556] | 684 | ALLOCATE(ndayrain_mth(klon)) |
---|
[3435] | 685 | ALLOCATE(paire_ter(klon)) |
---|
[952] | 686 | ALLOCATE(albsol1(klon), albsol2(klon)) |
---|
[2227] | 687 | !albedo SB >>> |
---|
| 688 | ALLOCATE(albsol_dir(klon,nsw),albsol_dif(klon,nsw)) |
---|
| 689 | !albedo SB <<< |
---|
[1279] | 690 | |
---|
| 691 | if (read_climoz <= 1) then |
---|
| 692 | ALLOCATE(wo(klon,klev, 1)) |
---|
| 693 | else |
---|
| 694 | ! read_climoz == 2 |
---|
| 695 | ALLOCATE(wo(klon,klev, 2)) |
---|
| 696 | end if |
---|
| 697 | |
---|
[952] | 698 | ALLOCATE(clwcon0(klon,klev),rnebcon0(klon,klev)) |
---|
| 699 | ALLOCATE(heat(klon,klev), heat0(klon,klev)) |
---|
| 700 | ALLOCATE(cool(klon,klev), cool0(klon,klev)) |
---|
[3479] | 701 | ALLOCATE(heat_volc(klon,klev), cool_volc(klon,klev)) |
---|
[952] | 702 | ALLOCATE(topsw(klon), toplw(klon)) |
---|
| 703 | ALLOCATE(sollwdown(klon), sollwdownclr(klon)) |
---|
[3435] | 704 | sollwdown = 0. |
---|
[952] | 705 | ALLOCATE(toplwdown(klon), toplwdownclr(klon)) |
---|
| 706 | ALLOCATE(topsw0(klon),toplw0(klon),solsw0(klon),sollw0(klon)) |
---|
[3435] | 707 | sollw0 = 0. |
---|
[952] | 708 | ALLOCATE(albpla(klon)) |
---|
[1539] | 709 | !IM ajout variables CFMIP2/CMIP5 |
---|
| 710 | ALLOCATE(heatp(klon,klev), coolp(klon,klev)) |
---|
| 711 | ALLOCATE(heat0p(klon,klev), cool0p(klon,klev)) |
---|
| 712 | ALLOCATE(radsolp(klon), topswp(klon), toplwp(klon)) |
---|
| 713 | ALLOCATE(albplap(klon)) |
---|
[3756] | 714 | ALLOCATE(solswp(klon), solswfdiffp(klon), sollwp(klon)) |
---|
[2240] | 715 | ALLOCATE(gustiness(klon)) |
---|
[1539] | 716 | ALLOCATE(sollwdownp(klon)) |
---|
| 717 | ALLOCATE(topsw0p(klon),toplw0p(klon)) |
---|
| 718 | ALLOCATE(solsw0p(klon),sollw0p(klon)) |
---|
[3106] | 719 | ALLOCATE(lwdnc0p(klon,klevp1), lwdn0p(klon,klevp1), lwdnp(klon,klevp1)) |
---|
| 720 | ALLOCATE(lwupc0p(klon,klevp1), lwup0p(klon,klevp1), lwupp(klon,klevp1)) |
---|
[3082] | 721 | ALLOCATE(swdnc0p(klon,klevp1), swdn0p(klon,klevp1), swdnp(klon,klevp1)) |
---|
| 722 | ALLOCATE(swupc0p(klon,klevp1), swup0p(klon,klevp1), swupp(klon,klevp1)) |
---|
[1539] | 723 | |
---|
[4677] | 724 | !AI Ajout pour Ecrad (3Deffect) |
---|
| 725 | ALLOCATE(heat_s2(klon,klev), cool_s2(klon,klev)) |
---|
| 726 | ALLOCATE(heat0_s2(klon,klev), cool0_s2(klon,klev)) |
---|
| 727 | ALLOCATE(radsol_s2(klon), topsw_s2(klon), toplw_s2(klon)) |
---|
| 728 | ALLOCATE(albpla_s2(klon)) |
---|
| 729 | ALLOCATE(solsw_s2(klon), solswfdiff_s2(klon), sollw_s2(klon)) |
---|
[4773] | 730 | ALLOCATE(sollwdown_s2(klon),sollwdownclr_s2(klon)) |
---|
[4677] | 731 | ALLOCATE(topsw0_s2(klon),toplw0_s2(klon)) |
---|
| 732 | ALLOCATE(solsw0_s2(klon),sollw0_s2(klon)) |
---|
| 733 | ALLOCATE(lwdnc0_s2(klon,klevp1), lwdn0_s2(klon,klevp1), lwdn_s2(klon,klevp1)) |
---|
| 734 | ALLOCATE(lwupc0_s2(klon,klevp1), lwup0_s2(klon,klevp1), lwup_s2(klon,klevp1)) |
---|
| 735 | ALLOCATE(swdnc0_s2(klon,klevp1), swdn0_s2(klon,klevp1), swdn_s2(klon,klevp1)) |
---|
| 736 | ALLOCATE(swupc0_s2(klon,klevp1), swup0_s2(klon,klevp1), swup_s2(klon,klevp1)) |
---|
| 737 | |
---|
[952] | 738 | ALLOCATE(cape(klon)) |
---|
| 739 | ALLOCATE(pbase(klon),bbase(klon)) |
---|
| 740 | ALLOCATE(zqasc(klon,klev)) |
---|
| 741 | ALLOCATE(ibas_con(klon), itop_con(klon)) |
---|
| 742 | ALLOCATE(rain_con(klon), snow_con(klon)) |
---|
| 743 | ALLOCATE(rlonPOS(klon)) |
---|
| 744 | ALLOCATE(newsst(klon)) |
---|
[1813] | 745 | ALLOCATE(ustar(klon,nbsrf),u10m(klon,nbsrf), v10m(klon,nbsrf),wstar(klon,nbsrf+1)) |
---|
[952] | 746 | ALLOCATE(topswad(klon), solswad(klon)) |
---|
| 747 | ALLOCATE(topswai(klon), solswai(klon)) |
---|
[1279] | 748 | ALLOCATE(tau_aero(klon,klev,naero_grp,nbands),piz_aero(klon,klev,naero_grp,nbands),cg_aero(klon,klev,naero_grp,nbands)) |
---|
[2146] | 749 | ALLOCATE(tau_aero_sw_rrtm(klon,klev,2,nbands_sw_rrtm),piz_aero_sw_rrtm(klon,klev,2,nbands_sw_rrtm)) |
---|
| 750 | ALLOCATE(cg_aero_sw_rrtm(klon,klev,2,nbands_sw_rrtm)) |
---|
| 751 | ALLOCATE(tau_aero_lw_rrtm(klon,klev,2,nbands_lw_rrtm),piz_aero_lw_rrtm(klon,klev,2,nbands_lw_rrtm)) |
---|
| 752 | ALLOCATE(cg_aero_lw_rrtm(klon,klev,2,nbands_lw_rrtm)) |
---|
[1279] | 753 | ALLOCATE(ccm(klon,klev,nbands)) |
---|
[4088] | 754 | |
---|
| 755 | #ifdef ISO |
---|
| 756 | ALLOCATE(xtsol(niso,klon),fxtevap(ntraciso,klon,nbsrf)) |
---|
| 757 | ALLOCATE(fxtd(ntraciso,klon,klev)) |
---|
| 758 | ALLOCATE(wake_deltaxt(ntraciso,klon,klev)) |
---|
| 759 | ALLOCATE(xt_ancien(ntraciso,klon,klev)) |
---|
| 760 | ALLOCATE(xtl_ancien(ntraciso,klon,klev)) |
---|
| 761 | ALLOCATE(xts_ancien(ntraciso,klon,klev)) |
---|
[4984] | 762 | ALLOCATE(xtbs_ancien(ntraciso,klon,klev)) |
---|
[4088] | 763 | ALLOCATE(xtrain_fall(ntraciso,klon)) |
---|
| 764 | ALLOCATE(xtsnow_fall(ntraciso,klon)) |
---|
| 765 | ALLOCATE(xtrain_con(ntraciso,klon)) |
---|
| 766 | ALLOCATE(xtsnow_con(ntraciso,klon)) |
---|
| 767 | #ifdef ISOTRAC |
---|
| 768 | ALLOCATE(bassin_map(klon)) |
---|
| 769 | ALLOCATE(boite_map(klon,klev)) |
---|
| 770 | #endif |
---|
| 771 | #endif |
---|
| 772 | |
---|
[1638] | 773 | ALLOCATE(ale_bl_trig(klon)) |
---|
[5208] | 774 | ALLOCATE(ratqs_inter_(klon,klev),sigma_qtherm(klon,klev)) |
---|
[3435] | 775 | IF (ok_gwd_rando) THEN |
---|
[3756] | 776 | ALLOCATE(du_gwd_rando(klon, klev)) |
---|
[3435] | 777 | du_gwd_rando(:,:)=0. |
---|
| 778 | ENDIF |
---|
| 779 | IF (.not. ok_hines .and. ok_gwd_rando) THEN |
---|
| 780 | ALLOCATE(du_gwd_front(klon, klev)) |
---|
| 781 | du_gwd_front(:,:) = 0 !ym missing init |
---|
| 782 | ENDIF |
---|
[909] | 783 | |
---|
[4370] | 784 | if (activate_ocean_skin >= 1) then |
---|
| 785 | ALLOCATE(delta_sal(klon), ds_ns(klon), dt_ns(klon), delta_sst(klon), & |
---|
| 786 | dter(klon), dser(klon)) |
---|
| 787 | if (activate_ocean_skin == 2 .and. type_ocean == "couple") & |
---|
| 788 | allocate(dt_ds(klon)) |
---|
| 789 | end if |
---|
| 790 | |
---|
[3815] | 791 | END SUBROUTINE phys_state_var_init |
---|
| 792 | |
---|
[909] | 793 | !====================================================================== |
---|
[3815] | 794 | SUBROUTINE phys_state_var_end |
---|
| 795 | ! Useful only for lmdz1d. |
---|
[5282] | 796 | USE clesphys_mod_h |
---|
[1785] | 797 | USE indice_sol_mod |
---|
[3815] | 798 | use config_ocean_skin_m, only: activate_ocean_skin |
---|
[4370] | 799 | use surface_data, only: type_ocean |
---|
[909] | 800 | IMPLICIT NONE |
---|
| 801 | |
---|
[3756] | 802 | DEALLOCATE(pctsrf, ftsol, falb1, falb2) |
---|
[3888] | 803 | DEALLOCATE(beta_aridity) |
---|
[3756] | 804 | DEALLOCATE(qsol,fevap,z0m,z0h,agesno) |
---|
[2952] | 805 | !FC |
---|
[3756] | 806 | DEALLOCATE(treedrg) |
---|
[4523] | 807 | DEALLOCATE(rain_fall, snow_fall, bs_fall,solsw, solswfdiff, sollw, radsol, swradcorr) |
---|
[3756] | 808 | DEALLOCATE(zmea, zstd, zsig, zgam) |
---|
| 809 | DEALLOCATE(zthe, zpic, zval) |
---|
| 810 | DEALLOCATE(rugoro, t_ancien, q_ancien, clwcon, rnebcon) |
---|
[5204] | 811 | DEALLOCATE(qs_ancien, ql_ancien, qbs_ancien) |
---|
[4523] | 812 | DEALLOCATE(prw_ancien, prlw_ancien, prsw_ancien, prbsw_ancien) |
---|
[4613] | 813 | DEALLOCATE(qtc_cv,sigt_cv,detrain_cv,fm_cv) |
---|
[3756] | 814 | DEALLOCATE(u_ancien, v_ancien) |
---|
[5204] | 815 | DEALLOCATE(cf_ancien, rvc_ancien) |
---|
[3756] | 816 | DEALLOCATE(tr_ancien) !RomP |
---|
| 817 | DEALLOCATE(ratqs, pbl_tke,coefh,coefm) |
---|
| 818 | DEALLOCATE(zmax0, f0) |
---|
| 819 | DEALLOCATE(sig1, w01) |
---|
| 820 | DEALLOCATE(entr_therm, fm_therm) |
---|
| 821 | DEALLOCATE(detr_therm) |
---|
| 822 | DEALLOCATE(clwcon0th, rnebcon0th) |
---|
[952] | 823 | ! radiation outputs |
---|
[3756] | 824 | DEALLOCATE(swdnc0, swdn0, swdn) |
---|
| 825 | DEALLOCATE(swupc0, swup0, swup) |
---|
| 826 | DEALLOCATE(lwdnc0, lwdn0, lwdn) |
---|
| 827 | DEALLOCATE(lwupc0, lwup0, lwup) |
---|
| 828 | DEALLOCATE(SWdn200clr, SWdn200) |
---|
| 829 | DEALLOCATE(SWup200clr, SWup200) |
---|
| 830 | DEALLOCATE(LWdn200clr, LWdn200) |
---|
| 831 | DEALLOCATE(LWup200clr, LWup200) |
---|
| 832 | DEALLOCATE(LWdnTOA, LWdnTOAclr) |
---|
[952] | 833 | ! pressure level |
---|
[3756] | 834 | DEALLOCATE(tsumSTD) |
---|
| 835 | DEALLOCATE(usumSTD, vsumSTD) |
---|
| 836 | DEALLOCATE(wsumSTD, phisumSTD) |
---|
| 837 | DEALLOCATE(tnondef) |
---|
| 838 | DEALLOCATE(qsumSTD, rhsumSTD) |
---|
| 839 | DEALLOCATE(uvsumSTD) |
---|
| 840 | DEALLOCATE(vqsumSTD) |
---|
| 841 | DEALLOCATE(vTsumSTD) |
---|
| 842 | DEALLOCATE(wqsumSTD) |
---|
| 843 | DEALLOCATE(vphisumSTD) |
---|
| 844 | DEALLOCATE(wTsumSTD) |
---|
| 845 | DEALLOCATE(u2sumSTD) |
---|
| 846 | DEALLOCATE(v2sumSTD) |
---|
| 847 | DEALLOCATE(T2sumSTD) |
---|
| 848 | DEALLOCATE(O3sumSTD) |
---|
| 849 | DEALLOCATE(O3daysumSTD) |
---|
[1352] | 850 | !IM beg |
---|
[3756] | 851 | DEALLOCATE(wlevSTD,ulevSTD,vlevSTD,tlevSTD,qlevSTD,rhlevSTD,philevSTD) |
---|
| 852 | DEALLOCATE(uvSTD,vqSTD,vTSTD,wqSTD,vphiSTD,wTSTD,u2STD,v2STD,T2STD,O3STD,O3daySTD) |
---|
[1352] | 853 | !IM end |
---|
[3756] | 854 | DEALLOCATE(seed_old) |
---|
| 855 | DEALLOCATE(zuthe, zvthe) |
---|
| 856 | DEALLOCATE(alb_neig) |
---|
| 857 | DEALLOCATE(ema_cbmf) |
---|
| 858 | DEALLOCATE(ema_pcb, ema_pct) |
---|
| 859 | DEALLOCATE(Mipsh, Ma, qcondc) |
---|
| 860 | DEALLOCATE(wd, sigd) |
---|
| 861 | DEALLOCATE(cin, ALE, ALP) |
---|
[4613] | 862 | DEALLOCATE(ftd, fqd, fqcomp) |
---|
[3756] | 863 | DEALLOCATE(Ale_bl, Alp_bl) |
---|
| 864 | DEALLOCATE(ale_wake) |
---|
| 865 | DEALLOCATE(ale_bl_stat) |
---|
| 866 | DEALLOCATE(lalim_conv, wght_th) |
---|
| 867 | DEALLOCATE(wake_deltat, wake_deltaq) |
---|
[4744] | 868 | DEALLOCATE(wake_s, awake_s, wake_dens, awake_dens) |
---|
[3956] | 869 | DEALLOCATE(cv_gen) |
---|
[3756] | 870 | DEALLOCATE(wake_Cstar, wake_pe, wake_fip) |
---|
[2159] | 871 | !jyg< |
---|
[3756] | 872 | DEALLOCATE(wake_delta_pbl_TKE) |
---|
[3888] | 873 | !nrlmd< |
---|
| 874 | DEALLOCATE(delta_tsurf) |
---|
| 875 | !>nrlmd |
---|
[2159] | 876 | !>jyg |
---|
[3756] | 877 | DEALLOCATE(pfrac_impa, pfrac_nucl) |
---|
| 878 | DEALLOCATE(pfrac_1nucl) |
---|
| 879 | DEALLOCATE(total_rain, nday_rain) |
---|
[4556] | 880 | DEALLOCATE(ndayrain_mth) |
---|
[3756] | 881 | DEALLOCATE(paire_ter) |
---|
| 882 | DEALLOCATE(albsol1, albsol2) |
---|
[2227] | 883 | !albedo SB >>> |
---|
[3756] | 884 | DEALLOCATE(albsol_dir,albsol_dif,falb_dir,falb_dif,chl_con) |
---|
[2227] | 885 | !albedo SB <<< |
---|
[3756] | 886 | DEALLOCATE(wo) |
---|
| 887 | DEALLOCATE(clwcon0,rnebcon0) |
---|
| 888 | DEALLOCATE(heat, heat0) |
---|
| 889 | DEALLOCATE(cool, cool0) |
---|
| 890 | DEALLOCATE(heat_volc, cool_volc) |
---|
| 891 | DEALLOCATE(topsw, toplw) |
---|
| 892 | DEALLOCATE(sollwdown, sollwdownclr) |
---|
| 893 | DEALLOCATE(gustiness) |
---|
| 894 | DEALLOCATE(toplwdown, toplwdownclr) |
---|
| 895 | DEALLOCATE(topsw0,toplw0,solsw0,sollw0) |
---|
| 896 | DEALLOCATE(albpla) |
---|
[4677] | 897 | |
---|
| 898 | !AI Ajout pour Ecrad (3Deffect) |
---|
| 899 | DEALLOCATE(heat_s2, cool_s2) |
---|
| 900 | DEALLOCATE(heat0_s2, cool0_s2) |
---|
| 901 | DEALLOCATE(radsol_s2, topsw_s2, toplw_s2) |
---|
| 902 | DEALLOCATE(albpla_s2) |
---|
| 903 | DEALLOCATE(solsw_s2, solswfdiff_s2, sollw_s2) |
---|
[4773] | 904 | DEALLOCATE(sollwdown_s2, sollwdownclr_s2) |
---|
[4677] | 905 | DEALLOCATE(topsw0_s2,toplw0_s2) |
---|
| 906 | DEALLOCATE(solsw0_s2,sollw0_s2) |
---|
| 907 | DEALLOCATE(lwdnc0_s2, lwdn0_s2, lwdn_s2) |
---|
| 908 | DEALLOCATE(lwupc0_s2, lwup0_s2, lwup_s2) |
---|
| 909 | DEALLOCATE(swdnc0_s2, swdn0_s2, swdn_s2) |
---|
| 910 | DEALLOCATE(swupc0_s2, swup0_s2, swup_s2) |
---|
| 911 | |
---|
[1539] | 912 | !IM ajout variables CFMIP2/CMIP5 |
---|
[3756] | 913 | DEALLOCATE(heatp, coolp) |
---|
| 914 | DEALLOCATE(heat0p, cool0p) |
---|
| 915 | DEALLOCATE(radsolp, topswp, toplwp) |
---|
| 916 | DEALLOCATE(albplap) |
---|
| 917 | DEALLOCATE(solswp, solswfdiffp, sollwp) |
---|
| 918 | DEALLOCATE(sollwdownp) |
---|
| 919 | DEALLOCATE(topsw0p,toplw0p) |
---|
| 920 | DEALLOCATE(solsw0p,sollw0p) |
---|
| 921 | DEALLOCATE(lwdnc0p, lwdn0p, lwdnp) |
---|
| 922 | DEALLOCATE(lwupc0p, lwup0p, lwupp) |
---|
| 923 | DEALLOCATE(swdnc0p, swdn0p, swdnp) |
---|
| 924 | DEALLOCATE(swupc0p, swup0p, swupp) |
---|
| 925 | DEALLOCATE(cape) |
---|
| 926 | DEALLOCATE(pbase,bbase) |
---|
| 927 | DEALLOCATE(zqasc) |
---|
| 928 | DEALLOCATE(ibas_con, itop_con) |
---|
| 929 | DEALLOCATE(rain_con, snow_con) |
---|
| 930 | DEALLOCATE(rlonPOS) |
---|
| 931 | DEALLOCATE(newsst) |
---|
| 932 | DEALLOCATE(ustar,u10m, v10m,wstar) |
---|
| 933 | DEALLOCATE(topswad, solswad) |
---|
| 934 | DEALLOCATE(topswai, solswai) |
---|
| 935 | DEALLOCATE(tau_aero,piz_aero,cg_aero) |
---|
| 936 | DEALLOCATE(tau_aero_sw_rrtm,piz_aero_sw_rrtm,cg_aero_sw_rrtm) |
---|
| 937 | DEALLOCATE(tau_aero_lw_rrtm,piz_aero_lw_rrtm,cg_aero_lw_rrtm) |
---|
| 938 | DEALLOCATE(ccm) |
---|
| 939 | if (ok_gwd_rando) DEALLOCATE(du_gwd_rando) |
---|
| 940 | if (.not. ok_hines .and. ok_gwd_rando) DEALLOCATE(du_gwd_front) |
---|
| 941 | DEALLOCATE(ale_bl_trig) |
---|
[5208] | 942 | DEALLOCATE(ratqs_inter_,sigma_qtherm) |
---|
[3815] | 943 | |
---|
[4370] | 944 | if (activate_ocean_skin >= 1) then |
---|
| 945 | deALLOCATE(delta_sal, ds_ns, dt_ns, delta_sst, dter, dser) |
---|
| 946 | if (activate_ocean_skin == 2 .and. type_ocean == "couple") & |
---|
| 947 | deALLOCATE(dt_ds) |
---|
| 948 | end if |
---|
[3815] | 949 | |
---|
[4088] | 950 | #ifdef ISO |
---|
| 951 | DEALLOCATE(xtsol,fxtevap) |
---|
[4984] | 952 | DEALLOCATE(xt_ancien,xtl_ancien,xts_ancien,xtbs_ancien, fxtd, wake_deltaxt) |
---|
[4088] | 953 | DEALLOCATE(xtrain_fall, xtsnow_fall, xtrain_con, xtsnow_con) |
---|
| 954 | #ifdef ISOTRAC |
---|
| 955 | DEALLOCATE(bassin_map,boite_map) |
---|
| 956 | #endif |
---|
| 957 | #endif |
---|
[3435] | 958 | is_initialized=.FALSE. |
---|
[3815] | 959 | |
---|
[909] | 960 | END SUBROUTINE phys_state_var_end |
---|
| 961 | |
---|
| 962 | END MODULE phys_state_var_mod |
---|