[1403] | 1 | ! |
---|
| 2 | ! $Id: phys_state_var_mod.F90 4370 2022-12-06 15:23:49Z musat $ |
---|
| 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) |
---|
[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 | |
---|
[909] | 56 | REAL, ALLOCATABLE, SAVE :: rain_fall(:), snow_fall(:) |
---|
[967] | 57 | !$OMP THREADPRIVATE( rain_fall, snow_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) |
---|
[2497] | 84 | REAL, ALLOCATABLE, SAVE :: ql_ancien(:,:), qs_ancien(:,:) |
---|
| 85 | !$OMP THREADPRIVATE(ql_ancien, qs_ancien) |
---|
[2499] | 86 | REAL, ALLOCATABLE, SAVE :: prw_ancien(:), prlw_ancien(:), prsw_ancien(:) |
---|
| 87 | !$OMP THREADPRIVATE(prw_ancien, prlw_ancien, prsw_ancien) |
---|
[4088] | 88 | #ifdef ISO |
---|
| 89 | REAL, ALLOCATABLE, SAVE :: xt_ancien(:,:,:),xtl_ancien(:,:,:),xts_ancien(:,:,:) |
---|
| 90 | !$OMP THREADPRIVATE(xt_ancien,xtl_ancien,xts_ancien) |
---|
| 91 | #endif |
---|
[1054] | 92 | REAL, ALLOCATABLE, SAVE :: u_ancien(:,:), v_ancien(:,:) |
---|
| 93 | !$OMP THREADPRIVATE(u_ancien, v_ancien) |
---|
[1742] | 94 | !!! RomP >>> |
---|
| 95 | REAL, ALLOCATABLE, SAVE :: tr_ancien(:,:,:) |
---|
| 96 | !$OMP THREADPRIVATE(tr_ancien) |
---|
| 97 | !!! RomP <<< |
---|
[909] | 98 | LOGICAL, SAVE :: ancien_ok |
---|
[967] | 99 | !$OMP THREADPRIVATE(ancien_ok) |
---|
[909] | 100 | REAL, ALLOCATABLE, SAVE :: clwcon(:,:),rnebcon(:,:) |
---|
[967] | 101 | !$OMP THREADPRIVATE(clwcon,rnebcon) |
---|
[4059] | 102 | REAL, ALLOCATABLE, SAVE :: rneb_ancien(:,:) |
---|
| 103 | !$OMP THREADPRIVATE(rneb_ancien) |
---|
[2205] | 104 | REAL, ALLOCATABLE, SAVE :: qtc_cv(:,:),sigt_cv(:,:) |
---|
| 105 | !$OMP THREADPRIVATE(qtc_cv,sigt_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 |
---|
[952] | 231 | REAL,ALLOCATABLE,SAVE :: fqd(:,:) |
---|
[967] | 232 | !$OMP THREADPRIVATE(fqd) |
---|
[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 |
---|
[3208] | 265 | ! awake_dens : number of active wakes per unit area |
---|
[2635] | 266 | ! wake_dens : number of wakes per unit area |
---|
[3956] | 267 | ! cv_gen : birth rate of cumulonimbus per unit area. |
---|
[2635] | 268 | ! wake_occ : occurence of wakes (= 1 if wakes occur, =0 otherwise) |
---|
[952] | 269 | ! wake_Cstar : vitesse d'etalement de la poche |
---|
[1403] | 270 | ! wake_pe : wake potential energy - WAPE |
---|
[952] | 271 | ! wake_fip : Gust Front Impinging power - ALP |
---|
| 272 | REAL,ALLOCATABLE,SAVE :: wake_deltat(:,:) |
---|
[967] | 273 | !$OMP THREADPRIVATE(wake_deltat) |
---|
[952] | 274 | REAL,ALLOCATABLE,SAVE :: wake_deltaq(:,:) |
---|
[967] | 275 | !$OMP THREADPRIVATE(wake_deltaq) |
---|
[4088] | 276 | #ifdef ISO |
---|
| 277 | REAL, ALLOCATABLE, SAVE :: wake_deltaxt(:,:,:) |
---|
| 278 | !$OMP THREADPRIVATE(wake_deltaxt) |
---|
| 279 | #endif |
---|
[2635] | 280 | REAL,ALLOCATABLE,SAVE :: wake_s(:) |
---|
| 281 | !$OMP THREADPRIVATE(wake_s) |
---|
[3208] | 282 | REAL,ALLOCATABLE,SAVE :: awake_dens(:), wake_dens(:) |
---|
| 283 | !$OMP THREADPRIVATE(awake_dens, wake_dens) |
---|
[3956] | 284 | REAL,ALLOCATABLE,SAVE :: cv_gen(:) |
---|
| 285 | !$OMP THREADPRIVATE(cv_gen) |
---|
[952] | 286 | REAL,ALLOCATABLE,SAVE :: wake_Cstar(:) |
---|
[967] | 287 | !$OMP THREADPRIVATE(wake_Cstar) |
---|
[1403] | 288 | REAL,ALLOCATABLE,SAVE :: wake_pe(:) |
---|
| 289 | !$OMP THREADPRIVATE(wake_pe) |
---|
[952] | 290 | REAL,ALLOCATABLE,SAVE :: wake_fip(:) |
---|
[967] | 291 | !$OMP THREADPRIVATE(wake_fip) |
---|
[952] | 292 | ! |
---|
[2159] | 293 | !jyg< |
---|
| 294 | ! variables related to the spitting of the PBL between wake and |
---|
| 295 | ! off-wake regions. |
---|
| 296 | ! wake_delta_pbl_TKE : difference TKE_w - TKE_x |
---|
| 297 | REAL,ALLOCATABLE,SAVE :: wake_delta_pbl_TKE(:,:,:) |
---|
| 298 | !$OMP THREADPRIVATE(wake_delta_pbl_TKE) |
---|
[3888] | 299 | !nrlmd< |
---|
| 300 | REAL, ALLOCATABLE, SAVE :: delta_tsurf(:,:) ! Surface temperature difference inside-outside cold pool |
---|
| 301 | !$OMP THREADPRIVATE(delta_tsurf) |
---|
| 302 | !>nrlmd |
---|
[2159] | 303 | !>jyg |
---|
| 304 | ! |
---|
[952] | 305 | ! pfrac_impa : Produits des coefs lessivage impaction |
---|
| 306 | ! pfrac_nucl : Produits des coefs lessivage nucleation |
---|
| 307 | ! pfrac_1nucl: Produits des coefs lessi nucl (alpha = 1) |
---|
| 308 | REAL,ALLOCATABLE,SAVE :: pfrac_impa(:,:), pfrac_nucl(:,:) |
---|
[967] | 309 | !$OMP THREADPRIVATE(pfrac_impa,pfrac_nucl) |
---|
[952] | 310 | REAL,ALLOCATABLE,SAVE :: pfrac_1nucl(:,:) |
---|
[967] | 311 | !$OMP THREADPRIVATE(pfrac_1nucl) |
---|
[952] | 312 | ! |
---|
| 313 | REAL,ALLOCATABLE,SAVE :: total_rain(:), nday_rain(:) |
---|
[967] | 314 | !$OMP THREADPRIVATE(total_rain,nday_rain) |
---|
[3435] | 315 | REAL,ALLOCATABLE,SAVE :: paire_ter(:) |
---|
| 316 | !$OMP THREADPRIVATE(paire_ter) |
---|
[952] | 317 | ! albsol1: albedo du sol total pour SW visible |
---|
| 318 | ! albsol2: albedo du sol total pour SW proche IR |
---|
| 319 | REAL,ALLOCATABLE,SAVE :: albsol1(:), albsol2(:) |
---|
[967] | 320 | !$OMP THREADPRIVATE(albsol1,albsol2) |
---|
[1279] | 321 | |
---|
[2227] | 322 | !albedo SB >>> |
---|
| 323 | REAL,ALLOCATABLE,SAVE :: albsol_dif(:,:),albsol_dir(:,:) |
---|
| 324 | !$OMP THREADPRIVATE(albsol_dif,albsol_dir) |
---|
| 325 | !albedo SB <<< |
---|
| 326 | |
---|
| 327 | |
---|
[1279] | 328 | REAL, ALLOCATABLE, SAVE:: wo(:, :, :) |
---|
| 329 | ! column-density of ozone in a layer, in kilo-Dobsons |
---|
| 330 | ! Third dimension has size 1 or 2. |
---|
| 331 | ! "wo(:, :, 1)" is for the average day-night field, |
---|
| 332 | ! "wo(:, :, 2)" is for daylight time. |
---|
| 333 | !$OMP THREADPRIVATE(wo) |
---|
| 334 | |
---|
[952] | 335 | ! heat : chauffage solaire |
---|
| 336 | ! heat0: chauffage solaire ciel clair |
---|
| 337 | ! cool : refroidissement infrarouge |
---|
| 338 | ! cool0 : refroidissement infrarouge ciel clair |
---|
| 339 | ! sollwdown : downward LW flux at surface |
---|
| 340 | ! sollwdownclr : downward CS LW flux at surface |
---|
| 341 | ! toplwdown : downward CS LW flux at TOA |
---|
| 342 | ! toplwdownclr : downward CS LW flux at TOA |
---|
[3479] | 343 | ! heat_volc : chauffage solaire du au volcanisme |
---|
| 344 | ! cool_volc : refroidissement infrarouge du au volcanisme |
---|
[952] | 345 | REAL,ALLOCATABLE,SAVE :: clwcon0(:,:),rnebcon0(:,:) |
---|
[967] | 346 | !$OMP THREADPRIVATE(clwcon0,rnebcon0) |
---|
[952] | 347 | REAL,ALLOCATABLE,SAVE :: heat(:,:) |
---|
[967] | 348 | !$OMP THREADPRIVATE(heat) |
---|
[952] | 349 | REAL,ALLOCATABLE,SAVE :: heat0(:,:) |
---|
[967] | 350 | !$OMP THREADPRIVATE(heat0) |
---|
[952] | 351 | REAL,ALLOCATABLE,SAVE :: cool(:,:) |
---|
[967] | 352 | !$OMP THREADPRIVATE(cool) |
---|
[952] | 353 | REAL,ALLOCATABLE,SAVE :: cool0(:,:) |
---|
[967] | 354 | !$OMP THREADPRIVATE(cool0) |
---|
[3479] | 355 | REAL,ALLOCATABLE,SAVE :: heat_volc(:,:) |
---|
| 356 | !$OMP THREADPRIVATE(heat_volc) |
---|
| 357 | REAL,ALLOCATABLE,SAVE :: cool_volc(:,:) |
---|
| 358 | !$OMP THREADPRIVATE(cool_volc) |
---|
[952] | 359 | REAL,ALLOCATABLE,SAVE :: topsw(:), toplw(:) |
---|
[967] | 360 | !$OMP THREADPRIVATE(topsw,toplw) |
---|
[952] | 361 | REAL,ALLOCATABLE,SAVE :: sollwdown(:) |
---|
[967] | 362 | !$OMP THREADPRIVATE(sollwdown) |
---|
[2240] | 363 | REAL,ALLOCATABLE,SAVE :: gustiness(:) |
---|
| 364 | !$OMP THREADPRIVATE(gustiness) |
---|
[952] | 365 | REAL,ALLOCATABLE,SAVE :: sollwdownclr(:) |
---|
[967] | 366 | !$OMP THREADPRIVATE(sollwdownclr) |
---|
[952] | 367 | REAL,ALLOCATABLE,SAVE :: toplwdown(:) |
---|
[967] | 368 | !$OMP THREADPRIVATE(toplwdown) |
---|
[952] | 369 | REAL,ALLOCATABLE,SAVE :: toplwdownclr(:) |
---|
[967] | 370 | !$OMP THREADPRIVATE(toplwdownclr) |
---|
[952] | 371 | REAL,ALLOCATABLE,SAVE :: topsw0(:),toplw0(:),solsw0(:),sollw0(:) |
---|
[967] | 372 | !$OMP THREADPRIVATE(topsw0,toplw0,solsw0,sollw0) |
---|
[952] | 373 | REAL,ALLOCATABLE,SAVE :: albpla(:) |
---|
[967] | 374 | !$OMP THREADPRIVATE(albpla) |
---|
[1539] | 375 | |
---|
| 376 | !IM ajout variables CFMIP2/CMIP5 |
---|
| 377 | REAL,ALLOCATABLE,SAVE :: heatp(:,:), coolp(:,:) |
---|
| 378 | !$OMP THREADPRIVATE(heatp, coolp) |
---|
| 379 | REAL,ALLOCATABLE,SAVE :: heat0p(:,:), cool0p(:,:) |
---|
| 380 | !$OMP THREADPRIVATE(heat0p, cool0p) |
---|
| 381 | REAL,ALLOCATABLE,SAVE :: radsolp(:), topswp(:), toplwp(:) |
---|
| 382 | !$OMP THREADPRIVATE(radsolp, topswp, toplwp) |
---|
| 383 | REAL,ALLOCATABLE,SAVE :: albplap(:) |
---|
| 384 | !$OMP THREADPRIVATE(albplap) |
---|
[3756] | 385 | REAL,ALLOCATABLE,SAVE :: solswp(:), solswfdiffp(:), sollwp(:) |
---|
| 386 | !$OMP THREADPRIVATE(solswp, solswfdiffp, sollwp) |
---|
[1539] | 387 | REAL,ALLOCATABLE,SAVE :: sollwdownp(:) |
---|
| 388 | !$OMP THREADPRIVATE(sollwdownp) |
---|
| 389 | REAL,ALLOCATABLE,SAVE :: topsw0p(:),toplw0p(:) |
---|
| 390 | REAL,ALLOCATABLE,SAVE :: solsw0p(:),sollw0p(:) |
---|
| 391 | !$OMP THREADPRIVATE(topsw0p,toplw0p,solsw0p,sollw0p) |
---|
[3106] | 392 | REAL,ALLOCATABLE,SAVE :: lwdnc0p(:,:), lwdn0p(:,:), lwdnp(:,:) |
---|
| 393 | REAL,ALLOCATABLE,SAVE :: lwupc0p(:,:), lwup0p(:,:), lwupp(:,:) |
---|
| 394 | !$OMP THREADPRIVATE(lwdnc0p, lwdn0p, lwdnp, lwupc0p, lwup0p, lwupp) |
---|
[3082] | 395 | REAL,ALLOCATABLE,SAVE :: swdnc0p(:,:), swdn0p(:,:), swdnp(:,:) |
---|
| 396 | REAL,ALLOCATABLE,SAVE :: swupc0p(:,:), swup0p(:,:), swupp(:,:) |
---|
| 397 | !$OMP THREADPRIVATE(swdnc0p, swdn0p, swdnp, swupc0p, swup0p, swupp) |
---|
[1539] | 398 | |
---|
[952] | 399 | ! pbase : cloud base pressure |
---|
| 400 | ! bbase : cloud base buoyancy |
---|
| 401 | REAL,ALLOCATABLE,SAVE :: cape(:) |
---|
[967] | 402 | !$OMP THREADPRIVATE(cape) |
---|
[952] | 403 | REAL,ALLOCATABLE,SAVE :: pbase(:) |
---|
[967] | 404 | !$OMP THREADPRIVATE(pbase) |
---|
[952] | 405 | REAL,ALLOCATABLE,SAVE :: bbase(:) |
---|
[967] | 406 | !$OMP THREADPRIVATE(bbase) |
---|
[952] | 407 | ! |
---|
| 408 | REAL,SAVE,ALLOCATABLE :: zqasc(:,:) |
---|
[967] | 409 | !$OMP THREADPRIVATE( zqasc) |
---|
[952] | 410 | INTEGER,ALLOCATABLE,SAVE :: ibas_con(:), itop_con(:) |
---|
[967] | 411 | !$OMP THREADPRIVATE(ibas_con,itop_con) |
---|
[952] | 412 | REAL,SAVE,ALLOCATABLE :: rain_con(:) |
---|
[967] | 413 | !$OMP THREADPRIVATE(rain_con) |
---|
[952] | 414 | REAL,SAVE,ALLOCATABLE :: snow_con(:) |
---|
[967] | 415 | !$OMP THREADPRIVATE(snow_con) |
---|
[952] | 416 | ! |
---|
[4088] | 417 | #ifdef ISO |
---|
| 418 | REAL,SAVE,ALLOCATABLE :: xtrain_con(:,:) |
---|
| 419 | !$OMP THREADPRIVATE(xtrain_con) |
---|
| 420 | REAL,SAVE,ALLOCATABLE :: xtsnow_con(:,:) |
---|
| 421 | !$OMP THREADPRIVATE(xtsnow_con) |
---|
| 422 | #endif |
---|
[952] | 423 | REAL,SAVE,ALLOCATABLE :: rlonPOS(:) |
---|
[967] | 424 | !$OMP THREADPRIVATE(rlonPOS) |
---|
[952] | 425 | REAL,SAVE,ALLOCATABLE :: newsst(:) |
---|
[967] | 426 | !$OMP THREADPRIVATE(newsst) |
---|
[1813] | 427 | REAL,SAVE,ALLOCATABLE :: ustar(:,:),u10m(:,:), v10m(:,:),wstar(:,:) |
---|
| 428 | !$OMP THREADPRIVATE(ustar,u10m,v10m,wstar) |
---|
[952] | 429 | ! |
---|
| 430 | ! ok_ade=T -ADE=topswad-topsw |
---|
| 431 | ! ok_aie=T -> |
---|
| 432 | ! ok_ade=T -AIE=topswai-topswad |
---|
[1279] | 433 | ! ok_ade=F -AIE=topswai-topsw |
---|
[952] | 434 | ! |
---|
| 435 | !topswad, solswad : Aerosol direct effect |
---|
| 436 | REAL,SAVE,ALLOCATABLE :: topswad(:), solswad(:) |
---|
[967] | 437 | !$OMP THREADPRIVATE(topswad,solswad) |
---|
[952] | 438 | !topswai, solswai : Aerosol indirect effect |
---|
| 439 | REAL,SAVE,ALLOCATABLE :: topswai(:), solswai(:) |
---|
[967] | 440 | !$OMP THREADPRIVATE(topswai,solswai) |
---|
[959] | 441 | |
---|
[1279] | 442 | REAL,SAVE,ALLOCATABLE :: tau_aero(:,:,:,:), piz_aero(:,:,:,:), cg_aero(:,:,:,:) |
---|
| 443 | !$OMP THREADPRIVATE(tau_aero, piz_aero, cg_aero) |
---|
[2146] | 444 | REAL,SAVE,ALLOCATABLE :: tau_aero_sw_rrtm(:,:,:,:), piz_aero_sw_rrtm(:,:,:,:), cg_aero_sw_rrtm(:,:,:,:) |
---|
| 445 | !$OMP THREADPRIVATE(tau_aero_sw_rrtm, piz_aero_sw_rrtm, cg_aero_sw_rrtm) |
---|
| 446 | REAL,SAVE,ALLOCATABLE :: tau_aero_lw_rrtm(:,:,:,:), piz_aero_lw_rrtm(:,:,:,:), cg_aero_lw_rrtm(:,:,:,:) |
---|
| 447 | !$OMP THREADPRIVATE(tau_aero_lw_rrtm, piz_aero_lw_rrtm, cg_aero_lw_rrtm) |
---|
[952] | 448 | REAL,SAVE,ALLOCATABLE :: ccm(:,:,:) |
---|
[967] | 449 | !$OMP THREADPRIVATE(ccm) |
---|
[952] | 450 | |
---|
[1638] | 451 | REAL,SAVE,ALLOCATABLE :: ale_bl_trig(:) |
---|
| 452 | !$OMP THREADPRIVATE(ale_bl_trig) |
---|
| 453 | |
---|
[3856] | 454 | REAL,SAVE,ALLOCATABLE :: ratqs_inter(:,:) |
---|
| 455 | !$OMP THREADPRIVATE(ratqs_inter) |
---|
| 456 | |
---|
[4088] | 457 | #ifdef ISO |
---|
| 458 | #ifdef ISOTRAC |
---|
| 459 | INTEGER,SAVE,ALLOCATABLE :: bassin_map(:) |
---|
| 460 | !$OMP THREADPRIVATE(bassin_map) |
---|
| 461 | INTEGER,SAVE,ALLOCATABLE :: boite_map(:,:) |
---|
| 462 | !$OMP THREADPRIVATE(boite_map) |
---|
| 463 | #endif |
---|
| 464 | #endif |
---|
[2333] | 465 | REAL, ALLOCATABLE, SAVE:: du_gwd_rando(:, :), du_gwd_front(:, :) |
---|
| 466 | !$OMP THREADPRIVATE(du_gwd_rando, du_gwd_front) |
---|
[1938] | 467 | ! tendencies on wind due to gravity waves |
---|
| 468 | |
---|
[3435] | 469 | LOGICAL,SAVE :: is_initialized=.FALSE. |
---|
| 470 | !$OMP THREADPRIVATE(is_initialized) |
---|
| 471 | |
---|
[3815] | 472 | ! Ocean-atmosphere interface: |
---|
[909] | 473 | |
---|
[3815] | 474 | REAL, ALLOCATABLE, SAVE:: ds_ns(:) ! (klon) |
---|
| 475 | ! "delta salinity near surface". Salinity variation in the |
---|
| 476 | ! near-surface turbulent layer. That is subskin salinity minus |
---|
| 477 | ! foundation salinity. In ppt. |
---|
| 478 | |
---|
| 479 | REAL, ALLOCATABLE, SAVE:: dt_ns(:) ! (klon) |
---|
| 480 | ! "delta temperature near surface". Temperature variation in the |
---|
| 481 | ! near-surface turbulent layer. That is subskin temperature |
---|
| 482 | ! minus foundation temperature. (Can be negative.) In K. |
---|
| 483 | |
---|
| 484 | REAL, ALLOCATABLE, SAVE:: delta_sst(:) ! (klon) |
---|
| 485 | ! Ocean-air interface temperature minus bulk SST, in |
---|
| 486 | ! K. Allocated and defined only if activate_ocean_skin >= 1. |
---|
| 487 | |
---|
| 488 | REAL, ALLOCATABLE, SAVE:: delta_sal(:) ! (klon) |
---|
| 489 | ! Ocean-air interface salinity minus bulk salinity, in ppt |
---|
| 490 | |
---|
[4370] | 491 | REAL, ALLOCATABLE, SAVE:: dter(:) ! (klon) |
---|
| 492 | ! Temperature variation in the diffusive microlayer, that is |
---|
| 493 | ! ocean-air interface temperature minus subskin temperature. In K. |
---|
[3815] | 494 | |
---|
[4370] | 495 | REAL, SAVE, ALLOCATABLE:: dser(:) ! (klon) |
---|
| 496 | ! Salinity variation in the diffusive microlayer, that is |
---|
| 497 | ! ocean-air interface salinity minus subskin salinity. In ppt. |
---|
| 498 | |
---|
| 499 | real, SAVE, ALLOCATABLE:: dt_ds(:) ! (klon) |
---|
| 500 | ! (tks / tkt) * dTer, in K |
---|
| 501 | |
---|
| 502 | !$OMP THREADPRIVATE(delta_sal, ds_ns, dt_ns, delta_sst, dter, dser, dt_ds) |
---|
| 503 | |
---|
[3815] | 504 | CONTAINS |
---|
| 505 | |
---|
[909] | 506 | !====================================================================== |
---|
[1279] | 507 | SUBROUTINE phys_state_var_init(read_climoz) |
---|
[1785] | 508 | USE dimphy |
---|
| 509 | USE aero_mod |
---|
[2320] | 510 | USE infotrac_phy, ONLY : nbtr |
---|
[4088] | 511 | #ifdef ISO |
---|
[4143] | 512 | USE infotrac_phy, ONLY : ntraciso=>ntiso,niso |
---|
[4088] | 513 | #endif |
---|
[1785] | 514 | USE indice_sol_mod |
---|
[3815] | 515 | use config_ocean_skin_m, only: activate_ocean_skin |
---|
[4370] | 516 | use surface_data, only: type_ocean |
---|
[909] | 517 | IMPLICIT NONE |
---|
[1279] | 518 | |
---|
| 519 | integer, intent(in):: read_climoz |
---|
| 520 | ! read ozone climatology |
---|
| 521 | ! Allowed values are 0, 1 and 2 |
---|
| 522 | ! 0: do not read an ozone climatology |
---|
| 523 | ! 1: read a single ozone climatology that will be used day and night |
---|
| 524 | ! 2: read two ozone climatologies, the average day and night |
---|
| 525 | ! climatology and the daylight climatology |
---|
| 526 | |
---|
[1938] | 527 | include "clesphys.h" |
---|
[3781] | 528 | |
---|
| 529 | print*, 'is_initialized', is_initialized |
---|
[3435] | 530 | IF (is_initialized) RETURN |
---|
| 531 | is_initialized=.TRUE. |
---|
[952] | 532 | ALLOCATE(pctsrf(klon,nbsrf)) |
---|
| 533 | ALLOCATE(ftsol(klon,nbsrf)) |
---|
[3888] | 534 | ALLOCATE(beta_aridity(klon,nbsrf)) |
---|
[2243] | 535 | ALLOCATE(qsol(klon),fevap(klon,nbsrf)) |
---|
| 536 | ALLOCATE(z0m(klon,nbsrf+1),z0h(klon,nbsrf+1),agesno(klon,nbsrf)) |
---|
[2952] | 537 | !FC |
---|
| 538 | ALLOCATE(treedrg(klon,klev,nbsrf)) |
---|
[952] | 539 | ALLOCATE(falb1(klon,nbsrf)) |
---|
| 540 | ALLOCATE(falb2(klon,nbsrf)) |
---|
[2227] | 541 | !albedo SB >>> |
---|
[3781] | 542 | print*, 'allocate falb' |
---|
[2227] | 543 | ALLOCATE(falb_dir(klon,nsw,nbsrf),falb_dif(klon,nsw,nbsrf)) |
---|
[3956] | 544 | !! print*, 'allocate falb good', falb_dir(1,1,1) |
---|
[2227] | 545 | ALLOCATE(chl_con(klon)) |
---|
| 546 | !albedo SB <<< |
---|
[952] | 547 | ALLOCATE(rain_fall(klon)) |
---|
| 548 | ALLOCATE(snow_fall(klon)) |
---|
[3756] | 549 | ALLOCATE(solsw(klon), solswfdiff(klon), sollw(klon)) |
---|
[3435] | 550 | sollw=0.0 |
---|
[952] | 551 | ALLOCATE(radsol(klon)) |
---|
[2366] | 552 | ALLOCATE(swradcorr(klon)) |
---|
[952] | 553 | ALLOCATE(zmea(klon), zstd(klon), zsig(klon), zgam(klon)) |
---|
| 554 | ALLOCATE(zthe(klon), zpic(klon), zval(klon)) |
---|
[909] | 555 | |
---|
[952] | 556 | ALLOCATE(rugoro(klon)) |
---|
| 557 | ALLOCATE(t_ancien(klon,klev), q_ancien(klon,klev)) |
---|
[2497] | 558 | ALLOCATE(ql_ancien(klon,klev), qs_ancien(klon,klev)) |
---|
[2499] | 559 | ALLOCATE(prw_ancien(klon), prlw_ancien(klon), prsw_ancien(klon)) |
---|
[1054] | 560 | ALLOCATE(u_ancien(klon,klev), v_ancien(klon,klev)) |
---|
[1742] | 561 | !!! Rom P >>> |
---|
| 562 | ALLOCATE(tr_ancien(klon,klev,nbtr)) |
---|
| 563 | !!! Rom P <<< |
---|
[952] | 564 | ALLOCATE(clwcon(klon,klev),rnebcon(klon,klev)) |
---|
[4059] | 565 | ALLOCATE(rneb_ancien(klon,klev)) |
---|
[2205] | 566 | ALLOCATE(qtc_cv(klon,klev),sigt_cv(klon,klev)) |
---|
[952] | 567 | ALLOCATE(ratqs(klon,klev)) |
---|
[1761] | 568 | ALLOCATE(pbl_tke(klon,klev+1,nbsrf+1)) |
---|
[2159] | 569 | !nrlmd< |
---|
| 570 | ALLOCATE(delta_tsurf(klon,nbsrf)) |
---|
| 571 | !>nrlmd |
---|
[1761] | 572 | ALLOCATE(coefh(klon,klev+1,nbsrf+1)) |
---|
| 573 | ALLOCATE(coefm(klon,klev+1,nbsrf+1)) |
---|
[4296] | 574 | ! initialize cleanly coefh,coefm |
---|
| 575 | ! (most of the time in the code these are assumed to be on klev levels) |
---|
| 576 | coefh(:,:,:)=0 |
---|
| 577 | coefm(:,:,:)=0 |
---|
[927] | 578 | ALLOCATE(zmax0(klon), f0(klon)) |
---|
[1827] | 579 | ALLOCATE(sig1(klon,klev), w01(klon,klev)) |
---|
[942] | 580 | ALLOCATE(entr_therm(klon,klev), fm_therm(klon,klev+1)) |
---|
[952] | 581 | ALLOCATE(detr_therm(klon,klev)) |
---|
| 582 | ! pour phsystoke avec thermiques |
---|
| 583 | ALLOCATE(clwcon0th(klon,klev),rnebcon0th(klon,klev)) |
---|
| 584 | ! radiation outputs |
---|
[3082] | 585 | ALLOCATE(swdnc0(klon,klevp1), swdn0(klon,klevp1), swdn(klon,klevp1)) |
---|
| 586 | ALLOCATE(swupc0(klon,klevp1), swup0(klon,klevp1), swup(klon,klevp1)) |
---|
[3106] | 587 | ALLOCATE(lwdnc0(klon,klevp1), lwdn0(klon,klevp1), lwdn(klon,klevp1)) |
---|
| 588 | ALLOCATE(lwupc0(klon,klevp1), lwup0(klon,klevp1), lwup(klon,klevp1)) |
---|
[952] | 589 | ALLOCATE(SWdn200clr(klon), SWdn200(klon)) |
---|
| 590 | ALLOCATE(SWup200clr(klon), SWup200(klon)) |
---|
| 591 | ALLOCATE(LWdn200clr(klon), LWdn200(klon)) |
---|
| 592 | ALLOCATE(LWup200clr(klon), LWup200(klon)) |
---|
| 593 | ALLOCATE(LWdnTOA(klon), LWdnTOAclr(klon)) |
---|
| 594 | ! pressure level |
---|
| 595 | ALLOCATE(tsumSTD(klon,nlevSTD,nout)) |
---|
| 596 | ALLOCATE(usumSTD(klon,nlevSTD,nout), vsumSTD(klon,nlevSTD,nout)) |
---|
| 597 | ALLOCATE(wsumSTD(klon,nlevSTD,nout), phisumSTD(klon,nlevSTD,nout)) |
---|
| 598 | ALLOCATE(qsumSTD(klon,nlevSTD,nout), rhsumSTD(klon,nlevSTD,nout)) |
---|
| 599 | ALLOCATE(tnondef(klon,nlevSTD,nout)) |
---|
| 600 | ALLOCATE(uvsumSTD(klon,nlevSTD,nout)) |
---|
| 601 | ALLOCATE(vqsumSTD(klon,nlevSTD,nout)) |
---|
| 602 | ALLOCATE(vTsumSTD(klon,nlevSTD,nout)) |
---|
| 603 | ALLOCATE(wqsumSTD(klon,nlevSTD,nout)) |
---|
| 604 | ALLOCATE(vphisumSTD(klon,nlevSTD,nout)) |
---|
| 605 | ALLOCATE(wTsumSTD(klon,nlevSTD,nout)) |
---|
| 606 | ALLOCATE(u2sumSTD(klon,nlevSTD,nout)) |
---|
| 607 | ALLOCATE(v2sumSTD(klon,nlevSTD,nout)) |
---|
| 608 | ALLOCATE(T2sumSTD(klon,nlevSTD,nout)) |
---|
[1398] | 609 | ALLOCATE(O3sumSTD(klon,nlevSTD,nout)) |
---|
| 610 | ALLOCATE(O3daysumSTD(klon,nlevSTD,nout)) |
---|
[1352] | 611 | !IM beg |
---|
| 612 | ALLOCATE(wlevSTD(klon,nlevSTD), ulevSTD(klon,nlevSTD), vlevSTD(klon,nlevSTD)) |
---|
| 613 | ALLOCATE(tlevSTD(klon,nlevSTD), qlevSTD(klon,nlevSTD), rhlevSTD(klon,nlevSTD)) |
---|
| 614 | ALLOCATE(philevSTD(klon,nlevSTD)) |
---|
| 615 | ALLOCATE(uvSTD(klon,nlevSTD),vqSTD(klon,nlevSTD)) |
---|
| 616 | ALLOCATE(vTSTD(klon,nlevSTD),wqSTD(klon,nlevSTD)) |
---|
| 617 | ALLOCATE(vphiSTD(klon,nlevSTD),wTSTD(klon,nlevSTD)) |
---|
| 618 | ALLOCATE(u2STD(klon,nlevSTD),v2STD(klon,nlevSTD)) |
---|
| 619 | ALLOCATE(T2STD(klon,nlevSTD)) |
---|
[1398] | 620 | ALLOCATE(O3STD(klon,nlevSTD)) |
---|
| 621 | ALLOCATE(O3daySTD(klon,nlevSTD)) |
---|
[1352] | 622 | !IM end |
---|
[952] | 623 | ALLOCATE(seed_old(klon,napisccp)) |
---|
| 624 | ALLOCATE(zuthe(klon),zvthe(klon)) |
---|
| 625 | ALLOCATE(alb_neig(klon)) |
---|
| 626 | !cloud base mass flux |
---|
[1398] | 627 | ALLOCATE(ema_cbmf(klon)) |
---|
[952] | 628 | !cloud base pressure & cloud top pressure |
---|
| 629 | ALLOCATE(ema_pcb(klon), ema_pct(klon)) |
---|
| 630 | ! |
---|
[3496] | 631 | ALLOCATE(Mipsh(klon,klev)) |
---|
[952] | 632 | ALLOCATE(Ma(klon,klev)) |
---|
| 633 | ALLOCATE(qcondc(klon,klev)) |
---|
| 634 | ALLOCATE(wd(klon)) |
---|
| 635 | ALLOCATE(sigd(klon)) |
---|
| 636 | ALLOCATE(cin(klon), ALE(klon), ALP(klon)) |
---|
| 637 | ALLOCATE(ftd(klon,klev), fqd(klon,klev)) |
---|
| 638 | ALLOCATE(Ale_bl(klon)) |
---|
[3080] | 639 | ALLOCATE(ale_wake(klon)) |
---|
| 640 | ALLOCATE(ale_bl_stat(klon)) |
---|
[3439] | 641 | ale_bl_stat(:)=0 |
---|
[952] | 642 | ALLOCATE(Alp_bl(klon)) |
---|
| 643 | ALLOCATE(lalim_conv(klon)) |
---|
| 644 | ALLOCATE(wght_th(klon,klev)) |
---|
| 645 | ALLOCATE(wake_deltat(klon,klev), wake_deltaq(klon,klev)) |
---|
[3208] | 646 | ALLOCATE(wake_s(klon), awake_dens(klon), wake_dens(klon)) |
---|
[3956] | 647 | !! awake_dens = 0. ! initialized in phyetat0 |
---|
| 648 | ALLOCATE(cv_gen(klon)) |
---|
[2635] | 649 | ALLOCATE(wake_Cstar(klon)) |
---|
[1403] | 650 | ALLOCATE(wake_pe(klon), wake_fip(klon)) |
---|
[2159] | 651 | !jyg< |
---|
[2181] | 652 | ALLOCATE(wake_delta_pbl_TKE(klon,klev+1,nbsrf+1)) |
---|
[2159] | 653 | !>jyg |
---|
[952] | 654 | ALLOCATE(pfrac_impa(klon,klev), pfrac_nucl(klon,klev)) |
---|
| 655 | ALLOCATE(pfrac_1nucl(klon,klev)) |
---|
| 656 | ALLOCATE(total_rain(klon), nday_rain(klon)) |
---|
[3435] | 657 | ALLOCATE(paire_ter(klon)) |
---|
[952] | 658 | ALLOCATE(albsol1(klon), albsol2(klon)) |
---|
[2227] | 659 | !albedo SB >>> |
---|
| 660 | ALLOCATE(albsol_dir(klon,nsw),albsol_dif(klon,nsw)) |
---|
| 661 | !albedo SB <<< |
---|
[1279] | 662 | |
---|
| 663 | if (read_climoz <= 1) then |
---|
| 664 | ALLOCATE(wo(klon,klev, 1)) |
---|
| 665 | else |
---|
| 666 | ! read_climoz == 2 |
---|
| 667 | ALLOCATE(wo(klon,klev, 2)) |
---|
| 668 | end if |
---|
| 669 | |
---|
[952] | 670 | ALLOCATE(clwcon0(klon,klev),rnebcon0(klon,klev)) |
---|
| 671 | ALLOCATE(heat(klon,klev), heat0(klon,klev)) |
---|
| 672 | ALLOCATE(cool(klon,klev), cool0(klon,klev)) |
---|
[3479] | 673 | ALLOCATE(heat_volc(klon,klev), cool_volc(klon,klev)) |
---|
[952] | 674 | ALLOCATE(topsw(klon), toplw(klon)) |
---|
| 675 | ALLOCATE(sollwdown(klon), sollwdownclr(klon)) |
---|
[3435] | 676 | sollwdown = 0. |
---|
[952] | 677 | ALLOCATE(toplwdown(klon), toplwdownclr(klon)) |
---|
| 678 | ALLOCATE(topsw0(klon),toplw0(klon),solsw0(klon),sollw0(klon)) |
---|
[3435] | 679 | sollw0 = 0. |
---|
[952] | 680 | ALLOCATE(albpla(klon)) |
---|
[1539] | 681 | !IM ajout variables CFMIP2/CMIP5 |
---|
| 682 | ALLOCATE(heatp(klon,klev), coolp(klon,klev)) |
---|
| 683 | ALLOCATE(heat0p(klon,klev), cool0p(klon,klev)) |
---|
| 684 | ALLOCATE(radsolp(klon), topswp(klon), toplwp(klon)) |
---|
| 685 | ALLOCATE(albplap(klon)) |
---|
[3756] | 686 | ALLOCATE(solswp(klon), solswfdiffp(klon), sollwp(klon)) |
---|
[2240] | 687 | ALLOCATE(gustiness(klon)) |
---|
[1539] | 688 | ALLOCATE(sollwdownp(klon)) |
---|
| 689 | ALLOCATE(topsw0p(klon),toplw0p(klon)) |
---|
| 690 | ALLOCATE(solsw0p(klon),sollw0p(klon)) |
---|
[3106] | 691 | ALLOCATE(lwdnc0p(klon,klevp1), lwdn0p(klon,klevp1), lwdnp(klon,klevp1)) |
---|
| 692 | ALLOCATE(lwupc0p(klon,klevp1), lwup0p(klon,klevp1), lwupp(klon,klevp1)) |
---|
[3082] | 693 | ALLOCATE(swdnc0p(klon,klevp1), swdn0p(klon,klevp1), swdnp(klon,klevp1)) |
---|
| 694 | ALLOCATE(swupc0p(klon,klevp1), swup0p(klon,klevp1), swupp(klon,klevp1)) |
---|
[1539] | 695 | |
---|
[952] | 696 | ALLOCATE(cape(klon)) |
---|
| 697 | ALLOCATE(pbase(klon),bbase(klon)) |
---|
| 698 | ALLOCATE(zqasc(klon,klev)) |
---|
| 699 | ALLOCATE(ibas_con(klon), itop_con(klon)) |
---|
| 700 | ALLOCATE(rain_con(klon), snow_con(klon)) |
---|
| 701 | ALLOCATE(rlonPOS(klon)) |
---|
| 702 | ALLOCATE(newsst(klon)) |
---|
[1813] | 703 | ALLOCATE(ustar(klon,nbsrf),u10m(klon,nbsrf), v10m(klon,nbsrf),wstar(klon,nbsrf+1)) |
---|
[952] | 704 | ALLOCATE(topswad(klon), solswad(klon)) |
---|
| 705 | ALLOCATE(topswai(klon), solswai(klon)) |
---|
[1279] | 706 | ALLOCATE(tau_aero(klon,klev,naero_grp,nbands),piz_aero(klon,klev,naero_grp,nbands),cg_aero(klon,klev,naero_grp,nbands)) |
---|
[2146] | 707 | ALLOCATE(tau_aero_sw_rrtm(klon,klev,2,nbands_sw_rrtm),piz_aero_sw_rrtm(klon,klev,2,nbands_sw_rrtm)) |
---|
| 708 | ALLOCATE(cg_aero_sw_rrtm(klon,klev,2,nbands_sw_rrtm)) |
---|
| 709 | ALLOCATE(tau_aero_lw_rrtm(klon,klev,2,nbands_lw_rrtm),piz_aero_lw_rrtm(klon,klev,2,nbands_lw_rrtm)) |
---|
| 710 | ALLOCATE(cg_aero_lw_rrtm(klon,klev,2,nbands_lw_rrtm)) |
---|
[1279] | 711 | ALLOCATE(ccm(klon,klev,nbands)) |
---|
[4088] | 712 | |
---|
| 713 | #ifdef ISO |
---|
| 714 | ALLOCATE(xtsol(niso,klon),fxtevap(ntraciso,klon,nbsrf)) |
---|
| 715 | ALLOCATE(fxtd(ntraciso,klon,klev)) |
---|
| 716 | ALLOCATE(wake_deltaxt(ntraciso,klon,klev)) |
---|
| 717 | ALLOCATE(xt_ancien(ntraciso,klon,klev)) |
---|
| 718 | ALLOCATE(xtl_ancien(ntraciso,klon,klev)) |
---|
| 719 | ALLOCATE(xts_ancien(ntraciso,klon,klev)) |
---|
| 720 | ALLOCATE(xtrain_fall(ntraciso,klon)) |
---|
| 721 | ALLOCATE(xtsnow_fall(ntraciso,klon)) |
---|
| 722 | ALLOCATE(xtrain_con(ntraciso,klon)) |
---|
| 723 | ALLOCATE(xtsnow_con(ntraciso,klon)) |
---|
| 724 | #ifdef ISOTRAC |
---|
| 725 | ALLOCATE(bassin_map(klon)) |
---|
| 726 | ALLOCATE(boite_map(klon,klev)) |
---|
| 727 | #endif |
---|
| 728 | #endif |
---|
| 729 | |
---|
[1638] | 730 | ALLOCATE(ale_bl_trig(klon)) |
---|
[3856] | 731 | ALLOCATE(ratqs_inter(klon,klev)) |
---|
[3435] | 732 | IF (ok_gwd_rando) THEN |
---|
[3756] | 733 | ALLOCATE(du_gwd_rando(klon, klev)) |
---|
[3435] | 734 | du_gwd_rando(:,:)=0. |
---|
| 735 | ENDIF |
---|
| 736 | IF (.not. ok_hines .and. ok_gwd_rando) THEN |
---|
| 737 | ALLOCATE(du_gwd_front(klon, klev)) |
---|
| 738 | du_gwd_front(:,:) = 0 !ym missing init |
---|
| 739 | ENDIF |
---|
[909] | 740 | |
---|
[4370] | 741 | if (activate_ocean_skin >= 1) then |
---|
| 742 | ALLOCATE(delta_sal(klon), ds_ns(klon), dt_ns(klon), delta_sst(klon), & |
---|
| 743 | dter(klon), dser(klon)) |
---|
| 744 | if (activate_ocean_skin == 2 .and. type_ocean == "couple") & |
---|
| 745 | allocate(dt_ds(klon)) |
---|
| 746 | end if |
---|
| 747 | |
---|
[3815] | 748 | END SUBROUTINE phys_state_var_init |
---|
| 749 | |
---|
[909] | 750 | !====================================================================== |
---|
[3815] | 751 | SUBROUTINE phys_state_var_end |
---|
| 752 | ! Useful only for lmdz1d. |
---|
[2399] | 753 | !USE dimphy |
---|
[1785] | 754 | USE indice_sol_mod |
---|
[3815] | 755 | use config_ocean_skin_m, only: activate_ocean_skin |
---|
[4370] | 756 | use surface_data, only: type_ocean |
---|
[909] | 757 | IMPLICIT NONE |
---|
[1938] | 758 | include "clesphys.h" |
---|
[909] | 759 | |
---|
[3756] | 760 | DEALLOCATE(pctsrf, ftsol, falb1, falb2) |
---|
[3888] | 761 | DEALLOCATE(beta_aridity) |
---|
[3756] | 762 | DEALLOCATE(qsol,fevap,z0m,z0h,agesno) |
---|
[2952] | 763 | !FC |
---|
[3756] | 764 | DEALLOCATE(treedrg) |
---|
| 765 | DEALLOCATE(rain_fall, snow_fall, solsw, solswfdiff, sollw, radsol, swradcorr) |
---|
| 766 | DEALLOCATE(zmea, zstd, zsig, zgam) |
---|
| 767 | DEALLOCATE(zthe, zpic, zval) |
---|
| 768 | DEALLOCATE(rugoro, t_ancien, q_ancien, clwcon, rnebcon) |
---|
[4059] | 769 | DEALLOCATE(qs_ancien, ql_ancien, rneb_ancien) |
---|
[3756] | 770 | DEALLOCATE(prw_ancien, prlw_ancien, prsw_ancien) |
---|
| 771 | DEALLOCATE(qtc_cv,sigt_cv) |
---|
| 772 | DEALLOCATE(u_ancien, v_ancien) |
---|
| 773 | DEALLOCATE(tr_ancien) !RomP |
---|
| 774 | DEALLOCATE(ratqs, pbl_tke,coefh,coefm) |
---|
| 775 | DEALLOCATE(zmax0, f0) |
---|
| 776 | DEALLOCATE(sig1, w01) |
---|
| 777 | DEALLOCATE(entr_therm, fm_therm) |
---|
| 778 | DEALLOCATE(detr_therm) |
---|
| 779 | DEALLOCATE(clwcon0th, rnebcon0th) |
---|
[952] | 780 | ! radiation outputs |
---|
[3756] | 781 | DEALLOCATE(swdnc0, swdn0, swdn) |
---|
| 782 | DEALLOCATE(swupc0, swup0, swup) |
---|
| 783 | DEALLOCATE(lwdnc0, lwdn0, lwdn) |
---|
| 784 | DEALLOCATE(lwupc0, lwup0, lwup) |
---|
| 785 | DEALLOCATE(SWdn200clr, SWdn200) |
---|
| 786 | DEALLOCATE(SWup200clr, SWup200) |
---|
| 787 | DEALLOCATE(LWdn200clr, LWdn200) |
---|
| 788 | DEALLOCATE(LWup200clr, LWup200) |
---|
| 789 | DEALLOCATE(LWdnTOA, LWdnTOAclr) |
---|
[952] | 790 | ! pressure level |
---|
[3756] | 791 | DEALLOCATE(tsumSTD) |
---|
| 792 | DEALLOCATE(usumSTD, vsumSTD) |
---|
| 793 | DEALLOCATE(wsumSTD, phisumSTD) |
---|
| 794 | DEALLOCATE(tnondef) |
---|
| 795 | DEALLOCATE(qsumSTD, rhsumSTD) |
---|
| 796 | DEALLOCATE(uvsumSTD) |
---|
| 797 | DEALLOCATE(vqsumSTD) |
---|
| 798 | DEALLOCATE(vTsumSTD) |
---|
| 799 | DEALLOCATE(wqsumSTD) |
---|
| 800 | DEALLOCATE(vphisumSTD) |
---|
| 801 | DEALLOCATE(wTsumSTD) |
---|
| 802 | DEALLOCATE(u2sumSTD) |
---|
| 803 | DEALLOCATE(v2sumSTD) |
---|
| 804 | DEALLOCATE(T2sumSTD) |
---|
| 805 | DEALLOCATE(O3sumSTD) |
---|
| 806 | DEALLOCATE(O3daysumSTD) |
---|
[1352] | 807 | !IM beg |
---|
[3756] | 808 | DEALLOCATE(wlevSTD,ulevSTD,vlevSTD,tlevSTD,qlevSTD,rhlevSTD,philevSTD) |
---|
| 809 | DEALLOCATE(uvSTD,vqSTD,vTSTD,wqSTD,vphiSTD,wTSTD,u2STD,v2STD,T2STD,O3STD,O3daySTD) |
---|
[1352] | 810 | !IM end |
---|
[3756] | 811 | DEALLOCATE(seed_old) |
---|
| 812 | DEALLOCATE(zuthe, zvthe) |
---|
| 813 | DEALLOCATE(alb_neig) |
---|
| 814 | DEALLOCATE(ema_cbmf) |
---|
| 815 | DEALLOCATE(ema_pcb, ema_pct) |
---|
| 816 | DEALLOCATE(Mipsh, Ma, qcondc) |
---|
| 817 | DEALLOCATE(wd, sigd) |
---|
| 818 | DEALLOCATE(cin, ALE, ALP) |
---|
| 819 | DEALLOCATE(ftd, fqd) |
---|
| 820 | DEALLOCATE(Ale_bl, Alp_bl) |
---|
| 821 | DEALLOCATE(ale_wake) |
---|
| 822 | DEALLOCATE(ale_bl_stat) |
---|
| 823 | DEALLOCATE(lalim_conv, wght_th) |
---|
| 824 | DEALLOCATE(wake_deltat, wake_deltaq) |
---|
| 825 | DEALLOCATE(wake_s, awake_dens, wake_dens) |
---|
[3956] | 826 | DEALLOCATE(cv_gen) |
---|
[3756] | 827 | DEALLOCATE(wake_Cstar, wake_pe, wake_fip) |
---|
[2159] | 828 | !jyg< |
---|
[3756] | 829 | DEALLOCATE(wake_delta_pbl_TKE) |
---|
[3888] | 830 | !nrlmd< |
---|
| 831 | DEALLOCATE(delta_tsurf) |
---|
| 832 | !>nrlmd |
---|
[2159] | 833 | !>jyg |
---|
[3756] | 834 | DEALLOCATE(pfrac_impa, pfrac_nucl) |
---|
| 835 | DEALLOCATE(pfrac_1nucl) |
---|
| 836 | DEALLOCATE(total_rain, nday_rain) |
---|
| 837 | DEALLOCATE(paire_ter) |
---|
| 838 | DEALLOCATE(albsol1, albsol2) |
---|
[2227] | 839 | !albedo SB >>> |
---|
[3756] | 840 | DEALLOCATE(albsol_dir,albsol_dif,falb_dir,falb_dif,chl_con) |
---|
[2227] | 841 | !albedo SB <<< |
---|
[3756] | 842 | DEALLOCATE(wo) |
---|
| 843 | DEALLOCATE(clwcon0,rnebcon0) |
---|
| 844 | DEALLOCATE(heat, heat0) |
---|
| 845 | DEALLOCATE(cool, cool0) |
---|
| 846 | DEALLOCATE(heat_volc, cool_volc) |
---|
| 847 | DEALLOCATE(topsw, toplw) |
---|
| 848 | DEALLOCATE(sollwdown, sollwdownclr) |
---|
| 849 | DEALLOCATE(gustiness) |
---|
| 850 | DEALLOCATE(toplwdown, toplwdownclr) |
---|
| 851 | DEALLOCATE(topsw0,toplw0,solsw0,sollw0) |
---|
| 852 | DEALLOCATE(albpla) |
---|
[1539] | 853 | !IM ajout variables CFMIP2/CMIP5 |
---|
[3756] | 854 | DEALLOCATE(heatp, coolp) |
---|
| 855 | DEALLOCATE(heat0p, cool0p) |
---|
| 856 | DEALLOCATE(radsolp, topswp, toplwp) |
---|
| 857 | DEALLOCATE(albplap) |
---|
| 858 | DEALLOCATE(solswp, solswfdiffp, sollwp) |
---|
| 859 | DEALLOCATE(sollwdownp) |
---|
| 860 | DEALLOCATE(topsw0p,toplw0p) |
---|
| 861 | DEALLOCATE(solsw0p,sollw0p) |
---|
| 862 | DEALLOCATE(lwdnc0p, lwdn0p, lwdnp) |
---|
| 863 | DEALLOCATE(lwupc0p, lwup0p, lwupp) |
---|
| 864 | DEALLOCATE(swdnc0p, swdn0p, swdnp) |
---|
| 865 | DEALLOCATE(swupc0p, swup0p, swupp) |
---|
| 866 | DEALLOCATE(cape) |
---|
| 867 | DEALLOCATE(pbase,bbase) |
---|
| 868 | DEALLOCATE(zqasc) |
---|
| 869 | DEALLOCATE(ibas_con, itop_con) |
---|
| 870 | DEALLOCATE(rain_con, snow_con) |
---|
| 871 | DEALLOCATE(rlonPOS) |
---|
| 872 | DEALLOCATE(newsst) |
---|
| 873 | DEALLOCATE(ustar,u10m, v10m,wstar) |
---|
| 874 | DEALLOCATE(topswad, solswad) |
---|
| 875 | DEALLOCATE(topswai, solswai) |
---|
| 876 | DEALLOCATE(tau_aero,piz_aero,cg_aero) |
---|
| 877 | DEALLOCATE(tau_aero_sw_rrtm,piz_aero_sw_rrtm,cg_aero_sw_rrtm) |
---|
| 878 | DEALLOCATE(tau_aero_lw_rrtm,piz_aero_lw_rrtm,cg_aero_lw_rrtm) |
---|
| 879 | DEALLOCATE(ccm) |
---|
| 880 | if (ok_gwd_rando) DEALLOCATE(du_gwd_rando) |
---|
| 881 | if (.not. ok_hines .and. ok_gwd_rando) DEALLOCATE(du_gwd_front) |
---|
| 882 | DEALLOCATE(ale_bl_trig) |
---|
[3856] | 883 | DEALLOCATE(ratqs_inter) |
---|
[3815] | 884 | |
---|
[4370] | 885 | if (activate_ocean_skin >= 1) then |
---|
| 886 | deALLOCATE(delta_sal, ds_ns, dt_ns, delta_sst, dter, dser) |
---|
| 887 | if (activate_ocean_skin == 2 .and. type_ocean == "couple") & |
---|
| 888 | deALLOCATE(dt_ds) |
---|
| 889 | end if |
---|
[3815] | 890 | |
---|
[4088] | 891 | #ifdef ISO |
---|
| 892 | DEALLOCATE(xtsol,fxtevap) |
---|
| 893 | DEALLOCATE(xt_ancien,xtl_ancien,xts_ancien, fxtd, wake_deltaxt) |
---|
| 894 | DEALLOCATE(xtrain_fall, xtsnow_fall, xtrain_con, xtsnow_con) |
---|
| 895 | #ifdef ISOTRAC |
---|
| 896 | DEALLOCATE(bassin_map,boite_map) |
---|
| 897 | #endif |
---|
| 898 | #endif |
---|
[3435] | 899 | is_initialized=.FALSE. |
---|
[3815] | 900 | |
---|
[909] | 901 | END SUBROUTINE phys_state_var_end |
---|
| 902 | |
---|
| 903 | END MODULE phys_state_var_mod |
---|