1 | ! |
---|
2 | ! $Id: phys_local_var_mod.F90 1989 2014-03-03 09:57:40Z fairhead $ |
---|
3 | ! |
---|
4 | MODULE phys_local_var_mod |
---|
5 | ! Variables locales pour effectuer les appels en serie |
---|
6 | !====================================================================== |
---|
7 | ! |
---|
8 | ! |
---|
9 | !====================================================================== |
---|
10 | ! Declaration des variables |
---|
11 | |
---|
12 | REAL, SAVE, ALLOCATABLE :: t_seri(:,:), q_seri(:,:) |
---|
13 | !$OMP THREADPRIVATE(t_seri, q_seri) |
---|
14 | REAL, SAVE, ALLOCATABLE :: ql_seri(:,:),qs_seri(:,:) |
---|
15 | !$OMP THREADPRIVATE(ql_seri,qs_seri) |
---|
16 | REAL, SAVE, ALLOCATABLE :: u_seri(:,:), v_seri(:,:) |
---|
17 | !$OMP THREADPRIVATE(u_seri, v_seri) |
---|
18 | |
---|
19 | REAL, SAVE, ALLOCATABLE :: tr_seri(:,:,:) |
---|
20 | !$OMP THREADPRIVATE(tr_seri) |
---|
21 | REAL, SAVE, ALLOCATABLE :: d_t_dyn(:,:), d_q_dyn(:,:) |
---|
22 | !$OMP THREADPRIVATE(d_t_dyn, d_q_dyn) |
---|
23 | REAL, SAVE, ALLOCATABLE :: d_u_dyn(:,:), d_v_dyn(:,:) |
---|
24 | !$OMP THREADPRIVATE(d_u_dyn, d_v_dyn) |
---|
25 | !!!! |
---|
26 | REAL, SAVE, ALLOCATABLE :: d_tr_dyn(:,:,:) |
---|
27 | !$OMP THREADPRIVATE(d_tr_dyn) |
---|
28 | !!!! |
---|
29 | REAL, SAVE, ALLOCATABLE :: d_t_con(:,:),d_q_con(:,:) |
---|
30 | !$OMP THREADPRIVATE(d_t_con,d_q_con) |
---|
31 | REAL, SAVE, ALLOCATABLE :: d_u_con(:,:),d_v_con(:,:) |
---|
32 | !$OMP THREADPRIVATE(d_u_con,d_v_con) |
---|
33 | REAL, SAVE, ALLOCATABLE :: d_t_wake(:,:),d_q_wake(:,:) |
---|
34 | !$OMP THREADPRIVATE( d_t_wake,d_q_wake) |
---|
35 | REAL, SAVE, ALLOCATABLE :: d_t_lsc(:,:),d_q_lsc(:,:),d_ql_lsc(:,:) |
---|
36 | !$OMP THREADPRIVATE(d_t_lsc,d_q_lsc,d_ql_lsc) |
---|
37 | REAL, SAVE, ALLOCATABLE :: d_t_ajsb(:,:), d_q_ajsb(:,:) |
---|
38 | !$OMP THREADPRIVATE(d_t_ajsb, d_q_ajsb) |
---|
39 | REAL, SAVE, ALLOCATABLE :: d_t_ajs(:,:), d_q_ajs(:,:) |
---|
40 | !$OMP THREADPRIVATE(d_t_ajs, d_q_ajs) |
---|
41 | REAL, SAVE, ALLOCATABLE :: d_u_ajs(:,:), d_v_ajs(:,:) |
---|
42 | !$OMP THREADPRIVATE(d_u_ajs, d_v_ajs) |
---|
43 | REAL, SAVE, ALLOCATABLE :: d_t_eva(:,:),d_q_eva(:,:) |
---|
44 | !$OMP THREADPRIVATE(d_t_eva,d_q_eva) |
---|
45 | REAL, SAVE, ALLOCATABLE :: d_t_lscst(:,:),d_q_lscst(:,:) |
---|
46 | !$OMP THREADPRIVATE(d_t_lscst,d_q_lscst) |
---|
47 | REAL, SAVE, ALLOCATABLE :: d_t_lscth(:,:),d_q_lscth(:,:) |
---|
48 | !$OMP THREADPRIVATE(d_t_lscth,d_q_lscth) |
---|
49 | REAL, SAVE, ALLOCATABLE :: plul_th(:),plul_st(:) |
---|
50 | !$OMP THREADPRIVATE(plul_th,plul_st) |
---|
51 | !tendances dues a oro et lif |
---|
52 | REAL, SAVE, ALLOCATABLE :: d_t_oli(:,:) |
---|
53 | !$OMP THREADPRIVATE(d_t_oli) |
---|
54 | REAL, SAVE, ALLOCATABLE :: d_u_oli(:,:), d_v_oli(:,:) |
---|
55 | !$OMP THREADPRIVATE(d_u_oli, d_v_oli) |
---|
56 | REAL, SAVE, ALLOCATABLE :: d_t_vdf(:,:), d_q_vdf(:,:), d_t_diss(:,:) |
---|
57 | !$OMP THREADPRIVATE( d_t_vdf, d_q_vdf,d_t_diss) |
---|
58 | REAL, SAVE, ALLOCATABLE :: d_u_vdf(:,:), d_v_vdf(:,:) |
---|
59 | !$OMP THREADPRIVATE(d_u_vdf, d_v_vdf) |
---|
60 | REAL, SAVE, ALLOCATABLE :: d_t_oro(:,:) |
---|
61 | !$OMP THREADPRIVATE(d_t_oro) |
---|
62 | REAL, SAVE, ALLOCATABLE :: d_u_oro(:,:), d_v_oro(:,:) |
---|
63 | !$OMP THREADPRIVATE(d_u_oro, d_v_oro) |
---|
64 | REAL, SAVE, ALLOCATABLE :: d_t_lif(:,:) |
---|
65 | !$OMP THREADPRIVATE(d_t_lif) |
---|
66 | REAL, SAVE, ALLOCATABLE :: d_u_lif(:,:), d_v_lif(:,:) |
---|
67 | !$OMP THREADPRIVATE(d_u_lif, d_v_lif) |
---|
68 | ! Tendances Ondes de G non oro (runs strato). |
---|
69 | REAL, SAVE, ALLOCATABLE :: d_u_hin(:,:) |
---|
70 | !$OMP THREADPRIVATE(d_u_hin) |
---|
71 | REAL, SAVE, ALLOCATABLE :: d_v_hin(:,:) |
---|
72 | !$OMP THREADPRIVATE(d_v_hin) |
---|
73 | REAL, SAVE, ALLOCATABLE :: d_t_hin(:,:) |
---|
74 | !$OMP THREADPRIVATE(d_t_hin) |
---|
75 | |
---|
76 | ! tendance du a la conersion Ec -> E thermique |
---|
77 | REAL, SAVE, ALLOCATABLE :: d_t_ec(:,:) |
---|
78 | !$OMP THREADPRIVATE(d_t_ec) |
---|
79 | REAL, SAVE, ALLOCATABLE :: d_ts(:,:), d_tr(:,:,:) |
---|
80 | !$OMP THREADPRIVATE(d_ts, d_tr) |
---|
81 | |
---|
82 | ! diagnostique pour le rayonnement |
---|
83 | REAL, SAVE, ALLOCATABLE :: topswad_aero(:), solswad_aero(:) ! diag |
---|
84 | !$OMP THREADPRIVATE(topswad_aero,solswad_aero) |
---|
85 | REAL, SAVE, ALLOCATABLE :: topswai_aero(:), solswai_aero(:) ! diag |
---|
86 | !$OMP THREADPRIVATE(topswai_aero,solswai_aero) |
---|
87 | REAL, SAVE, ALLOCATABLE :: topswad0_aero(:), solswad0_aero(:) ! diag |
---|
88 | !$OMP THREADPRIVATE(topswad0_aero,solswad0_aero) |
---|
89 | REAL, SAVE, ALLOCATABLE :: topsw_aero(:,:), solsw_aero(:,:) ! diag |
---|
90 | !$OMP THREADPRIVATE(topsw_aero,solsw_aero) |
---|
91 | REAL, SAVE, ALLOCATABLE :: topsw0_aero(:,:), solsw0_aero(:,:) ! diag |
---|
92 | !$OMP THREADPRIVATE(topsw0_aero,solsw0_aero) |
---|
93 | REAL, SAVE, ALLOCATABLE :: topswcf_aero(:,:), solswcf_aero(:,:) ! diag |
---|
94 | !$OMP THREADPRIVATE(topswcf_aero,solswcf_aero) |
---|
95 | ! Special RRTM |
---|
96 | REAL, SAVE, ALLOCATABLE :: ZLWFT0_i(:,:), ZSWFT0_i(:,:) ! diag |
---|
97 | !$OMP THREADPRIVATE(ZLWFT0_i,ZSWFT0_i) |
---|
98 | REAL, SAVE, ALLOCATABLE :: ZFLDN0(:,:), ZFLUP0(:,:) ! diag |
---|
99 | !$OMP THREADPRIVATE(ZFLDN0,ZFLUP0) |
---|
100 | REAL, SAVE, ALLOCATABLE :: ZFSDN0(:,:), ZFSUP0(:,:) ! diag |
---|
101 | !$OMP THREADPRIVATE(ZFSDN0,ZFSUP0) |
---|
102 | ! |
---|
103 | REAL, SAVE, ALLOCATABLE :: tausum_aero(:,:,:) |
---|
104 | !$OMP THREADPRIVATE(tausum_aero) |
---|
105 | REAL, SAVE, ALLOCATABLE :: tau3d_aero(:,:,:,:) |
---|
106 | !$OMP THREADPRIVATE(tau3d_aero) |
---|
107 | REAL, SAVE, ALLOCATABLE :: scdnc(:,:) |
---|
108 | !$OMP THREADPRIVATE(scdnc) |
---|
109 | REAL, SAVE, ALLOCATABLE :: cldncl(:) |
---|
110 | !$OMP THREADPRIVATE(cldncl) |
---|
111 | REAL, SAVE, ALLOCATABLE :: reffclwtop(:) |
---|
112 | !$OMP THREADPRIVATE(reffclwtop) |
---|
113 | REAL, SAVE, ALLOCATABLE :: lcc(:) |
---|
114 | !$OMP THREADPRIVATE(lcc) |
---|
115 | REAL, SAVE, ALLOCATABLE :: reffclws(:,:) |
---|
116 | !$OMP THREADPRIVATE(reffclws) |
---|
117 | REAL, SAVE, ALLOCATABLE :: reffclwc(:,:) |
---|
118 | !$OMP THREADPRIVATE(reffclwc) |
---|
119 | REAL, SAVE, ALLOCATABLE :: cldnvi(:) |
---|
120 | !$OMP THREADPRIVATE(cldnvi) |
---|
121 | REAL, SAVE, ALLOCATABLE :: lcc3d(:,:) |
---|
122 | !$OMP THREADPRIVATE(lcc3d) |
---|
123 | REAL, SAVE, ALLOCATABLE :: lcc3dcon(:,:) |
---|
124 | !$OMP THREADPRIVATE(lcc3dcon) |
---|
125 | REAL, SAVE, ALLOCATABLE :: lcc3dstra(:,:) |
---|
126 | !$OMP THREADPRIVATE(lcc3dstra) |
---|
127 | REAL, SAVE, ALLOCATABLE :: od550aer(:) |
---|
128 | !$OMP THREADPRIVATE(od550aer) |
---|
129 | REAL, SAVE, ALLOCATABLE :: absvisaer(:) |
---|
130 | !$OMP THREADPRIVATE(absvisaer) |
---|
131 | REAL, SAVE, ALLOCATABLE :: od865aer(:) |
---|
132 | !$OMP THREADPRIVATE(od865aer) |
---|
133 | REAL, SAVE, ALLOCATABLE :: ec550aer(:,:) |
---|
134 | !$OMP THREADPRIVATE(ec550aer) |
---|
135 | REAL, SAVE, ALLOCATABLE :: od550lt1aer(:) |
---|
136 | !$OMP THREADPRIVATE(od550lt1aer) |
---|
137 | REAL, SAVE, ALLOCATABLE :: sconcso4(:) |
---|
138 | !$OMP THREADPRIVATE(sconcso4) |
---|
139 | REAL, SAVE, ALLOCATABLE :: sconcoa(:) |
---|
140 | !$OMP THREADPRIVATE(sconcoa) |
---|
141 | REAL, SAVE, ALLOCATABLE :: sconcbc(:) |
---|
142 | !$OMP THREADPRIVATE(sconcbc) |
---|
143 | REAL, SAVE, ALLOCATABLE :: sconcss(:) |
---|
144 | !$OMP THREADPRIVATE(sconcss) |
---|
145 | REAL, SAVE, ALLOCATABLE :: sconcdust(:) |
---|
146 | !$OMP THREADPRIVATE(sconcdust) |
---|
147 | REAL, SAVE, ALLOCATABLE :: concso4(:,:) |
---|
148 | !$OMP THREADPRIVATE(concso4) |
---|
149 | REAL, SAVE, ALLOCATABLE :: concoa(:,:) |
---|
150 | !$OMP THREADPRIVATE(concoa) |
---|
151 | REAL, SAVE, ALLOCATABLE :: concbc(:,:) |
---|
152 | !$OMP THREADPRIVATE(concbc) |
---|
153 | REAL, SAVE, ALLOCATABLE :: concss(:,:) |
---|
154 | !$OMP THREADPRIVATE(concss) |
---|
155 | REAL, SAVE, ALLOCATABLE :: concdust(:,:) |
---|
156 | !$OMP THREADPRIVATE(concdust) |
---|
157 | REAL, SAVE, ALLOCATABLE :: loadso4(:) |
---|
158 | !$OMP THREADPRIVATE(loadso4) |
---|
159 | REAL, SAVE, ALLOCATABLE :: loadoa(:) |
---|
160 | !$OMP THREADPRIVATE(loadoa) |
---|
161 | REAL, SAVE, ALLOCATABLE :: loadbc(:) |
---|
162 | !$OMP THREADPRIVATE(loadbc) |
---|
163 | REAL, SAVE, ALLOCATABLE :: loadss(:) |
---|
164 | !$OMP THREADPRIVATE(loadss) |
---|
165 | REAL, SAVE, ALLOCATABLE :: loaddust(:) |
---|
166 | !$OMP THREADPRIVATE(loaddust) |
---|
167 | REAL, SAVE, ALLOCATABLE :: load_tmp1(:) |
---|
168 | !$OMP THREADPRIVATE(load_tmp1) |
---|
169 | REAL, SAVE, ALLOCATABLE :: load_tmp2(:) |
---|
170 | !$OMP THREADPRIVATE(load_tmp2) |
---|
171 | REAL, SAVE, ALLOCATABLE :: load_tmp3(:) |
---|
172 | !$OMP THREADPRIVATE(load_tmp3) |
---|
173 | REAL, SAVE, ALLOCATABLE :: load_tmp4(:) |
---|
174 | !$OMP THREADPRIVATE(load_tmp4) |
---|
175 | REAL, SAVE, ALLOCATABLE :: load_tmp5(:) |
---|
176 | !$OMP THREADPRIVATE(load_tmp5) |
---|
177 | REAL, SAVE, ALLOCATABLE :: load_tmp6(:) |
---|
178 | !$OMP THREADPRIVATE(load_tmp6) |
---|
179 | REAL, SAVE, ALLOCATABLE :: load_tmp7(:) |
---|
180 | !$OMP THREADPRIVATE(load_tmp7) |
---|
181 | |
---|
182 | !IM ajout variables CFMIP2/CMIP5 |
---|
183 | REAL,ALLOCATABLE,SAVE :: topswad_aerop(:), solswad_aerop(:) |
---|
184 | !$OMP THREADPRIVATE(topswad_aerop, solswad_aerop) |
---|
185 | REAL,ALLOCATABLE,SAVE :: topswai_aerop(:), solswai_aerop(:) |
---|
186 | !$OMP THREADPRIVATE(topswai_aerop, solswai_aerop) |
---|
187 | REAL,ALLOCATABLE,SAVE :: topswad0_aerop(:), solswad0_aerop(:) |
---|
188 | !$OMP THREADPRIVATE(topswad0_aerop, solswad0_aerop) |
---|
189 | REAL,ALLOCATABLE,SAVE :: topsw_aerop(:,:), topsw0_aerop(:,:) |
---|
190 | !$OMP THREADPRIVATE(topsw_aerop, topsw0_aerop) |
---|
191 | REAL,ALLOCATABLE,SAVE :: solsw_aerop(:,:), solsw0_aerop(:,:) |
---|
192 | !$OMP THREADPRIVATE(solsw_aerop, solsw0_aerop) |
---|
193 | REAL,ALLOCATABLE,SAVE :: topswcf_aerop(:,:), solswcf_aerop(:,:) |
---|
194 | !$OMP THREADPRIVATE(topswcf_aerop, solswcf_aerop) |
---|
195 | |
---|
196 | |
---|
197 | !Ajout de celles nécessaires au phys_output_write_mod |
---|
198 | REAL, SAVE, ALLOCATABLE :: slp(:) |
---|
199 | !$OMP THREADPRIVATE(slp) |
---|
200 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: sens, flwp, fiwp |
---|
201 | !$OMP THREADPRIVATE(sens, flwp, fiwp) |
---|
202 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: ale_wake, alp_wake, bils |
---|
203 | !$OMP THREADPRIVATE(ale_wake, alp_wake, bils) |
---|
204 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: cdragm, cdragh |
---|
205 | !$OMP THREADPRIVATE(cdragm, cdragh) |
---|
206 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: cldh, cldl, cldm, cldq, cldt, qsat2m, qsol |
---|
207 | !$OMP THREADPRIVATE(cldh, cldl, cldm, cldq, cldt, qsat2m, qsol) |
---|
208 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: cldhjn, cldljn, cldmjn,cldtjn |
---|
209 | !$OMP THREADPRIVATE(cldhjn, cldljn, cldmjn, cldtjn) |
---|
210 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: JrNt |
---|
211 | !$OMP THREADPRIVATE(JrNt) |
---|
212 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: dthmin, evap, fder, plcl, plfc, prw |
---|
213 | !$OMP THREADPRIVATE(dthmin, evap, fder, plcl, plfc, prw) |
---|
214 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: zustar, zu10m, zv10m, rh2m |
---|
215 | !$OMP THREADPRIVATE(zustar, zu10m, zv10m, rh2m) |
---|
216 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: s_lcl, s_pblh, s_pblt, s_therm |
---|
217 | !$OMP THREADPRIVATE(s_lcl, s_pblh, s_pblt, s_therm) |
---|
218 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: slab_wfbils |
---|
219 | !$OMP THREADPRIVATE(slab_wfbils) |
---|
220 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: tpot, tpote, ue, uq, ve, vq, zxffonte |
---|
221 | !$OMP THREADPRIVATE(tpot, tpote, ue, uq, ve, vq, zxffonte) |
---|
222 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: zxfqcalving |
---|
223 | !$OMP THREADPRIVATE(zxfqcalving) |
---|
224 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: zxfluxlat, zxrugs, zxtsol, snow_lsc, zxfqfonte |
---|
225 | !$OMP THREADPRIVATE(zxfluxlat, zxrugs, zxtsol, snow_lsc, zxfqfonte) |
---|
226 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: zxqsurf, rain_lsc |
---|
227 | !$OMP THREADPRIVATE(zxqsurf, rain_lsc) |
---|
228 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: wake_h, wbeff, zmax_th, zq2m, zt2m |
---|
229 | !$OMP THREADPRIVATE(wake_h, wbeff, zmax_th, zq2m, zt2m) |
---|
230 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: weak_inversion |
---|
231 | !$OMP THREADPRIVATE(weak_inversion) |
---|
232 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: ale_bl_stat,alp_bl_conv,alp_bl_det |
---|
233 | !$OMP THREADPRIVATE(ale_bl_stat,alp_bl_conv,alp_bl_det) |
---|
234 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: alp_bl_fluct_m,alp_bl_fluct_tke |
---|
235 | !$OMP THREADPRIVATE(alp_bl_fluct_m,alp_bl_fluct_tke) |
---|
236 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: alp_bl_stat, n2, s2 |
---|
237 | !$OMP THREADPRIVATE(alp_bl_stat, n2, s2) |
---|
238 | REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: proba_notrig, random_notrig |
---|
239 | !$OMP THREADPRIVATE(proba_notrig, random_notrig) |
---|
240 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: fsolsw, wfbils, wfbilo |
---|
241 | !$OMP THREADPRIVATE(fsolsw, wfbils, wfbilo) |
---|
242 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: t2m, fevap, fluxlat, fsollw,evap_pot |
---|
243 | !$OMP THREADPRIVATE(t2m, fevap, fluxlat, fsollw,evap_pot) |
---|
244 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: dnwd, dnwd0, upwd, omega |
---|
245 | !$OMP THREADPRIVATE(dnwd, dnwd0, upwd, omega) |
---|
246 | ! REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: coefh, coefm, lambda_th |
---|
247 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: lambda_th |
---|
248 | !$OMP THREADPRIVATE(lambda_th) |
---|
249 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: cldemi, cldfra, cldtau, fiwc, fl, re, flwc |
---|
250 | !$OMP THREADPRIVATE(cldemi, cldfra, cldtau, fiwc, fl, re, flwc) |
---|
251 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: ref_liq, ref_ice, theta, zphi |
---|
252 | !$OMP THREADPRIVATE(ref_liq, ref_ice, theta, zphi) |
---|
253 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: ref_liq_pi, ref_ice_pi |
---|
254 | !$OMP THREADPRIVATE(ref_liq_pi, ref_ice_pi) |
---|
255 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: wake_omg, zx_rh |
---|
256 | !$OMP THREADPRIVATE(wake_omg, zx_rh) |
---|
257 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: frugs, agesno |
---|
258 | !$OMP THREADPRIVATE(frugs, agesno) |
---|
259 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: pmflxr, pmflxs, prfl, psfl, fraca |
---|
260 | !$OMP THREADPRIVATE(pmflxr, pmflxs, prfl, psfl, fraca) |
---|
261 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: Vprecip, zw2 |
---|
262 | !$OMP THREADPRIVATE(Vprecip, zw2) |
---|
263 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: pmfd, pmfu |
---|
264 | !$OMP THREADPRIVATE(pmfd, pmfu) |
---|
265 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:,:) :: fluxt, fluxu, fluxv |
---|
266 | !$OMP THREADPRIVATE(fluxt, fluxu, fluxv) |
---|
267 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:,:) :: uwriteSTD, vwriteSTD, wwriteSTD |
---|
268 | !$OMP THREADPRIVATE(uwriteSTD, vwriteSTD, wwriteSTD) |
---|
269 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:,:) :: phiwriteSTD, qwriteSTD, twriteSTD, rhwriteSTD |
---|
270 | !$OMP THREADPRIVATE(phiwriteSTD, qwriteSTD, twriteSTD, rhwriteSTD) |
---|
271 | |
---|
272 | ! ug et d'autres encore: |
---|
273 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: wdtrainA, wdtrainM |
---|
274 | !$OMP THREADPRIVATE(wdtrainA, wdtrainM) |
---|
275 | REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: beta_prec |
---|
276 | !$OMP THREADPRIVATE(beta_prec) |
---|
277 | REAL, ALLOCATABLE, SAVE, DIMENSION(:,:) :: rneb,rnebjn |
---|
278 | !$OMP THREADPRIVATE(rneb,rnebjn) |
---|
279 | |
---|
280 | ! variables de sorties MM |
---|
281 | REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: zxsnow,snowhgt,qsnow,to_ice |
---|
282 | REAL, ALLOCATABLE, SAVE, DIMENSION(:) :: sissnow,runoff,albsol3_lic |
---|
283 | !$OMP THREADPRIVATE(zxsnow,snowhgt,qsnow,to_ice) |
---|
284 | !$OMP THREADPRIVATE(sissnow,runoff,albsol3_lic) |
---|
285 | |
---|
286 | CONTAINS |
---|
287 | |
---|
288 | !====================================================================== |
---|
289 | SUBROUTINE phys_local_var_init |
---|
290 | USE dimphy |
---|
291 | USE infotrac, ONLY : nbtr |
---|
292 | USE aero_mod |
---|
293 | USE indice_sol_mod |
---|
294 | USE phys_output_var_mod |
---|
295 | USE phys_state_var_mod |
---|
296 | |
---|
297 | IMPLICIT NONE |
---|
298 | allocate(t_seri(klon,klev),q_seri(klon,klev),ql_seri(klon,klev),qs_seri(klon,klev)) |
---|
299 | allocate(u_seri(klon,klev),v_seri(klon,klev)) |
---|
300 | |
---|
301 | allocate(tr_seri(klon,klev,nbtr)) |
---|
302 | allocate(d_t_dyn(klon,klev),d_q_dyn(klon,klev)) |
---|
303 | allocate(d_u_dyn(klon,klev),d_v_dyn(klon,klev)) |
---|
304 | allocate(d_tr_dyn(klon,klev,nbtr)) !RomP |
---|
305 | allocate(d_t_con(klon,klev),d_q_con(klon,klev)) |
---|
306 | allocate(d_u_con(klon,klev),d_v_con(klon,klev)) |
---|
307 | allocate(d_t_wake(klon,klev),d_q_wake(klon,klev)) |
---|
308 | allocate(d_t_lsc(klon,klev),d_q_lsc(klon,klev)) |
---|
309 | allocate(d_ql_lsc(klon,klev)) |
---|
310 | allocate(d_t_ajsb(klon,klev),d_q_ajsb(klon,klev)) |
---|
311 | allocate(d_t_ajs(klon,klev),d_q_ajs(klon,klev)) |
---|
312 | allocate(d_u_ajs(klon,klev),d_v_ajs(klon,klev)) |
---|
313 | allocate(d_t_eva(klon,klev),d_q_eva(klon,klev)) |
---|
314 | allocate(d_t_lscst(klon,klev),d_q_lscst(klon,klev)) |
---|
315 | allocate(d_t_lscth(klon,klev),d_q_lscth(klon,klev)) |
---|
316 | allocate(plul_st(klon),plul_th(klon)) |
---|
317 | allocate(d_t_vdf(klon,klev),d_q_vdf(klon,klev),d_t_diss(klon,klev)) |
---|
318 | allocate(d_u_vdf(klon,klev),d_v_vdf(klon,klev)) |
---|
319 | allocate(d_t_oli(klon,klev),d_t_oro(klon,klev)) |
---|
320 | allocate(d_u_oli(klon,klev),d_v_oli(klon,klev)) |
---|
321 | allocate(d_u_oro(klon,klev),d_v_oro(klon,klev)) |
---|
322 | allocate(d_t_lif(klon,klev),d_t_ec(klon,klev)) |
---|
323 | allocate(d_u_lif(klon,klev),d_v_lif(klon,klev)) |
---|
324 | allocate(d_ts(klon,nbsrf), d_tr(klon,klev,nbtr)) |
---|
325 | ! Special RRTM |
---|
326 | allocate(ZLWFT0_i(klon,klev+1),ZSWFT0_i(klon,klev+1),ZFLDN0(klon,klev+1)) |
---|
327 | allocate(ZFLUP0(klon,klev+1),ZFSDN0(klon,klev+1),ZFSUP0(klon,klev+1)) |
---|
328 | ! |
---|
329 | allocate(topswad_aero(klon), solswad_aero(klon)) |
---|
330 | allocate(topswai_aero(klon), solswai_aero(klon)) |
---|
331 | allocate(topswad0_aero(klon), solswad0_aero(klon)) |
---|
332 | allocate(topsw_aero(klon,naero_grp), solsw_aero(klon,naero_grp)) |
---|
333 | allocate(topsw0_aero(klon,naero_grp), solsw0_aero(klon,naero_grp)) |
---|
334 | allocate(topswcf_aero(klon,3), solswcf_aero(klon,3)) |
---|
335 | allocate(d_u_hin(klon,klev),d_v_hin(klon,klev),d_t_hin(klon,klev)) |
---|
336 | allocate(tausum_aero(klon,nwave,naero_spc)) |
---|
337 | allocate(tau3d_aero(klon,klev,nwave,naero_spc)) |
---|
338 | allocate(scdnc(klon, klev)) |
---|
339 | allocate(cldncl(klon)) |
---|
340 | allocate(reffclwtop(klon)) |
---|
341 | allocate(lcc(klon)) |
---|
342 | allocate(reffclws(klon, klev)) |
---|
343 | allocate(reffclwc(klon, klev)) |
---|
344 | allocate(cldnvi(klon)) |
---|
345 | allocate(lcc3d(klon, klev)) |
---|
346 | allocate(lcc3dcon(klon, klev)) |
---|
347 | allocate(lcc3dstra(klon, klev)) |
---|
348 | allocate(od550aer(klon)) |
---|
349 | allocate(od865aer(klon)) |
---|
350 | allocate(absvisaer(klon)) |
---|
351 | allocate(ec550aer(klon,klev)) |
---|
352 | allocate(od550lt1aer(klon)) |
---|
353 | allocate(sconcso4(klon)) |
---|
354 | allocate(sconcoa(klon)) |
---|
355 | allocate(sconcbc(klon)) |
---|
356 | allocate(sconcss(klon)) |
---|
357 | allocate(sconcdust(klon)) |
---|
358 | allocate(concso4(klon,klev)) |
---|
359 | allocate(concoa(klon,klev)) |
---|
360 | allocate(concbc(klon,klev)) |
---|
361 | allocate(concss(klon,klev)) |
---|
362 | allocate(concdust(klon,klev)) |
---|
363 | allocate(loadso4(klon)) |
---|
364 | allocate(loadoa(klon)) |
---|
365 | allocate(loadbc(klon)) |
---|
366 | allocate(loadss(klon)) |
---|
367 | allocate(loaddust(klon)) |
---|
368 | allocate(load_tmp1(klon)) |
---|
369 | allocate(load_tmp2(klon)) |
---|
370 | allocate(load_tmp3(klon)) |
---|
371 | allocate(load_tmp4(klon)) |
---|
372 | allocate(load_tmp5(klon)) |
---|
373 | allocate(load_tmp6(klon)) |
---|
374 | allocate(load_tmp7(klon)) |
---|
375 | |
---|
376 | !IM ajout variables CFMIP2/CMIP5 |
---|
377 | ALLOCATE(topswad_aerop(klon), solswad_aerop(klon)) |
---|
378 | ALLOCATE(topswai_aerop(klon), solswai_aerop(klon)) |
---|
379 | ALLOCATE(topswad0_aerop(klon), solswad0_aerop(klon)) |
---|
380 | ALLOCATE(topsw_aerop(klon,naero_grp), topsw0_aerop(klon,naero_grp)) |
---|
381 | ALLOCATE(solsw_aerop(klon,naero_grp), solsw0_aerop(klon,naero_grp)) |
---|
382 | ALLOCATE(topswcf_aerop(klon,naero_grp), solswcf_aerop(klon,naero_grp)) |
---|
383 | |
---|
384 | ! FH Ajout de celles nécessaires au phys_output_write_mod |
---|
385 | |
---|
386 | ALLOCATE(slp(klon)) |
---|
387 | ALLOCATE(ale_wake(klon), alp_wake(klon), bils(klon)) |
---|
388 | ALLOCATE(cdragm(klon), cdragh(klon), cldh(klon), cldl(klon)) |
---|
389 | ALLOCATE(cldm(klon), cldq(klon), cldt(klon), qsat2m(klon), qsol(klon)) |
---|
390 | ALLOCATE(cldhjn(klon), cldljn(klon), cldmjn(klon), cldtjn(klon)) |
---|
391 | ALLOCATE(JrNt(klon)) |
---|
392 | ALLOCATE(dthmin(klon), evap(klon), fder(klon), plcl(klon), plfc(klon)) |
---|
393 | ALLOCATE(prw(klon), zustar(klon), zu10m(klon), zv10m(klon), rh2m(klon)) |
---|
394 | ALLOCATE(s_lcl(klon)) |
---|
395 | ALLOCATE(s_pblh(klon), s_pblt(klon), s_therm(klon)) |
---|
396 | ALLOCATE(slab_wfbils(klon), tpot(klon), tpote(klon), ue(klon)) |
---|
397 | ALLOCATE(uq(klon), ve(klon), vq(klon), zxffonte(klon)) |
---|
398 | ALLOCATE(zxfqcalving(klon), zxfluxlat(klon), zxrugs(klon)) |
---|
399 | ALLOCATE(zxtsol(klon), snow_lsc(klon), zxfqfonte(klon), zxqsurf(klon)) |
---|
400 | ALLOCATE(rain_lsc(klon), wake_h(klon), wbeff(klon), zmax_th(klon)) |
---|
401 | ALLOCATE(zq2m(klon), zt2m(klon), weak_inversion(klon)) |
---|
402 | ALLOCATE(sens(klon), flwp(klon), fiwp(klon)) |
---|
403 | ALLOCATE(ale_bl_stat(klon), alp_bl_conv(klon), alp_bl_det(klon)) |
---|
404 | ALLOCATE(alp_bl_fluct_m(klon), alp_bl_fluct_tke(klon)) |
---|
405 | ALLOCATE(alp_bl_stat(klon), n2(klon), s2(klon)) |
---|
406 | ALLOCATE(proba_notrig(klon), random_notrig(klon)) |
---|
407 | |
---|
408 | ALLOCATE(dnwd(klon, klev), dnwd0(klon, klev)) |
---|
409 | ! ALLOCATE(upwd(klon, klev), omega(klon, klev), coefh(klon, klev)) |
---|
410 | ALLOCATE(upwd(klon, klev), omega(klon, klev)) |
---|
411 | ! ALLOCATE(coefm(klon, klev), lambda_th(klon, klev), cldemi(klon, klev)) |
---|
412 | ALLOCATE(lambda_th(klon, klev), cldemi(klon, klev)) |
---|
413 | ALLOCATE(cldfra(klon, klev), cldtau(klon, klev), fiwc(klon, klev)) |
---|
414 | ALLOCATE(fl(klon, klev), re(klon, klev), flwc(klon, klev)) |
---|
415 | ALLOCATE(ref_liq(klon, klev), ref_ice(klon, klev), theta(klon, klev)) |
---|
416 | ALLOCATE(ref_liq_pi(klon, klev), ref_ice_pi(klon, klev)) |
---|
417 | ALLOCATE(zphi(klon, klev), wake_omg(klon, klev), zx_rh(klon, klev)) |
---|
418 | ALLOCATE(pmfd(klon, klev), pmfu(klon, klev)) |
---|
419 | |
---|
420 | ALLOCATE(t2m(klon, nbsrf), fevap(klon, nbsrf), fluxlat(klon, nbsrf)) |
---|
421 | ALLOCATE(frugs(klon, nbsrf), agesno(klon, nbsrf), fsollw(klon, nbsrf)) |
---|
422 | ALLOCATE(fsolsw(klon, nbsrf), wfbils(klon, nbsrf), wfbilo(klon, nbsrf)) |
---|
423 | ALLOCATE(evap_pot(klon, nbsrf)) |
---|
424 | |
---|
425 | ALLOCATE(pmflxr(klon, klev+1), pmflxs(klon, klev+1), prfl(klon, klev+1)) |
---|
426 | ALLOCATE(psfl(klon, klev+1), fraca(klon, klev+1), Vprecip(klon, klev+1)) |
---|
427 | ALLOCATE(zw2(klon, klev+1)) |
---|
428 | |
---|
429 | ALLOCATE(fluxu(klon, klev, nbsrf), fluxv(klon, klev, nbsrf)) |
---|
430 | ALLOCATE(fluxt(klon, klev, nbsrf)) |
---|
431 | |
---|
432 | ALLOCATE(uwriteSTD(klon,nlevSTD,nfiles), vwriteSTD(klon,nlevSTD,nfiles)) |
---|
433 | ALLOCATE(wwriteSTD(klon,nlevSTD,nfiles), phiwriteSTD(klon,nlevSTD,nfiles)) |
---|
434 | ALLOCATE(qwriteSTD(klon,nlevSTD,nfiles), twriteSTD(klon,nlevSTD,nfiles)) |
---|
435 | ALLOCATE(rhwriteSTD(klon,nlevSTD,nfiles)) |
---|
436 | |
---|
437 | ! ug et d'autres encore: |
---|
438 | ALLOCATE(wdtrainA(klon,klev),wdtrainM(klon,klev)) |
---|
439 | ALLOCATE(beta_prec(klon,klev)) |
---|
440 | ALLOCATE(rneb(klon,klev),rnebjn(klon,klev)) |
---|
441 | |
---|
442 | |
---|
443 | ALLOCATE (zxsnow(klon),snowhgt(klon),qsnow(klon),to_ice(klon)) |
---|
444 | ALLOCATE (sissnow(klon),runoff(klon),albsol3_lic(klon)) |
---|
445 | |
---|
446 | |
---|
447 | |
---|
448 | END SUBROUTINE phys_local_var_init |
---|
449 | |
---|
450 | !====================================================================== |
---|
451 | SUBROUTINE phys_local_var_end |
---|
452 | USE dimphy |
---|
453 | USE indice_sol_mod |
---|
454 | IMPLICIT NONE |
---|
455 | deallocate(t_seri,q_seri,ql_seri,qs_seri) |
---|
456 | deallocate(u_seri,v_seri) |
---|
457 | |
---|
458 | deallocate(tr_seri) |
---|
459 | deallocate(d_t_dyn,d_q_dyn) |
---|
460 | deallocate(d_u_dyn,d_v_dyn) |
---|
461 | deallocate(d_tr_dyn) !RomP |
---|
462 | deallocate(d_t_con,d_q_con) |
---|
463 | deallocate(d_u_con,d_v_con) |
---|
464 | deallocate(d_t_wake,d_q_wake) |
---|
465 | deallocate(d_t_lsc,d_q_lsc) |
---|
466 | deallocate(d_ql_lsc) |
---|
467 | deallocate(d_t_ajsb,d_q_ajsb) |
---|
468 | deallocate(d_t_ajs,d_q_ajs) |
---|
469 | deallocate(d_u_ajs,d_v_ajs) |
---|
470 | deallocate(d_t_eva,d_q_eva) |
---|
471 | deallocate(d_t_lscst,d_q_lscst) |
---|
472 | deallocate(d_t_lscth,d_q_lscth) |
---|
473 | deallocate(plul_st,plul_th) |
---|
474 | deallocate(d_t_vdf,d_q_vdf,d_t_diss) |
---|
475 | deallocate(d_u_vdf,d_v_vdf) |
---|
476 | deallocate(d_t_oli,d_t_oro) |
---|
477 | deallocate(d_u_oli,d_v_oli) |
---|
478 | deallocate(d_u_oro,d_v_oro) |
---|
479 | deallocate(d_t_lif,d_t_ec) |
---|
480 | deallocate(d_u_lif,d_v_lif) |
---|
481 | deallocate(d_ts, d_tr) |
---|
482 | deallocate(topswad_aero,solswad_aero) |
---|
483 | deallocate(topswai_aero,solswai_aero) |
---|
484 | deallocate(topswad0_aero,solswad0_aero) |
---|
485 | deallocate(topsw_aero,solsw_aero) |
---|
486 | deallocate(topsw0_aero,solsw0_aero) |
---|
487 | deallocate(topswcf_aero,solswcf_aero) |
---|
488 | deallocate(tausum_aero) |
---|
489 | deallocate(tau3d_aero) |
---|
490 | deallocate(scdnc) |
---|
491 | deallocate(cldncl) |
---|
492 | deallocate(reffclwtop) |
---|
493 | deallocate(lcc) |
---|
494 | deallocate(reffclws) |
---|
495 | deallocate(reffclwc) |
---|
496 | deallocate(cldnvi) |
---|
497 | deallocate(lcc3d) |
---|
498 | deallocate(lcc3dcon) |
---|
499 | deallocate(lcc3dstra) |
---|
500 | deallocate(od550aer) |
---|
501 | deallocate(od865aer) |
---|
502 | deallocate(absvisaer) |
---|
503 | deallocate(ec550aer) |
---|
504 | deallocate(od550lt1aer) |
---|
505 | deallocate(sconcso4) |
---|
506 | deallocate(sconcoa) |
---|
507 | deallocate(sconcbc) |
---|
508 | deallocate(sconcss) |
---|
509 | deallocate(sconcdust) |
---|
510 | deallocate(concso4) |
---|
511 | deallocate(concoa) |
---|
512 | deallocate(concbc) |
---|
513 | deallocate(concss) |
---|
514 | deallocate(concdust) |
---|
515 | deallocate(loadso4) |
---|
516 | deallocate(loadoa) |
---|
517 | deallocate(loadbc) |
---|
518 | deallocate(loadss) |
---|
519 | deallocate(loaddust) |
---|
520 | deallocate(load_tmp1) |
---|
521 | deallocate(load_tmp2) |
---|
522 | deallocate(load_tmp3) |
---|
523 | deallocate(load_tmp4) |
---|
524 | deallocate(load_tmp5) |
---|
525 | deallocate(load_tmp6) |
---|
526 | deallocate(load_tmp7) |
---|
527 | deallocate(d_u_hin,d_v_hin,d_t_hin) |
---|
528 | |
---|
529 | !IM ajout variables CFMIP2/CMIP5 |
---|
530 | deallocate(topswad_aerop, solswad_aerop) |
---|
531 | deallocate(topswai_aerop, solswai_aerop) |
---|
532 | deallocate(topswad0_aerop, solswad0_aerop) |
---|
533 | deallocate(topsw_aerop, topsw0_aerop) |
---|
534 | deallocate(solsw_aerop, solsw0_aerop) |
---|
535 | deallocate(topswcf_aerop, solswcf_aerop) |
---|
536 | |
---|
537 | |
---|
538 | ! FH Ajout de celles nécessaires au phys_output_write_mod |
---|
539 | DEALLOCATE(slp) |
---|
540 | DEALLOCATE(ale_wake, alp_wake, bils) |
---|
541 | DEALLOCATE(cdragm, cdragh, cldh, cldl) |
---|
542 | DEALLOCATE(cldm, cldq, cldt, qsat2m, qsol) |
---|
543 | DEALLOCATE(cldljn, cldmjn, cldhjn, cldtjn, JrNt) |
---|
544 | DEALLOCATE(dthmin, evap, fder, plcl, plfc) |
---|
545 | DEALLOCATE(prw, zustar, zu10m, zv10m, rh2m, s_lcl) |
---|
546 | DEALLOCATE(s_pblh, s_pblt, s_therm) |
---|
547 | DEALLOCATE(slab_wfbils, tpot, tpote, ue) |
---|
548 | DEALLOCATE(uq, ve, vq, zxffonte) |
---|
549 | DEALLOCATE(zxfqcalving, zxfluxlat, zxrugs) |
---|
550 | DEALLOCATE(zxtsol, snow_lsc, zxfqfonte, zxqsurf) |
---|
551 | DEALLOCATE(rain_lsc, wake_h, wbeff, zmax_th) |
---|
552 | DEALLOCATE(zq2m, zt2m, weak_inversion) |
---|
553 | DEALLOCATE(sens, flwp, fiwp) |
---|
554 | DEALLOCATE(ale_bl_stat,alp_bl_conv,alp_bl_det) |
---|
555 | DEALLOCATE(alp_bl_fluct_m,alp_bl_fluct_tke) |
---|
556 | DEALLOCATE(alp_bl_stat, n2, s2) |
---|
557 | DEALLOCATE(proba_notrig, random_notrig) |
---|
558 | |
---|
559 | DEALLOCATE(dnwd, dnwd0) |
---|
560 | ! DEALLOCATE(upwd, omega, coefh) |
---|
561 | DEALLOCATE(upwd, omega) |
---|
562 | ! DEALLOCATE(coefm, lambda_th, cldemi) |
---|
563 | DEALLOCATE(lambda_th, cldemi) |
---|
564 | DEALLOCATE(cldfra, cldtau, fiwc) |
---|
565 | DEALLOCATE(fl, re, flwc) |
---|
566 | DEALLOCATE(ref_liq, ref_ice, theta) |
---|
567 | DEALLOCATE(ref_liq_pi, ref_ice_pi) |
---|
568 | DEALLOCATE(zphi, wake_omg, zx_rh) |
---|
569 | DEALLOCATE(pmfd, pmfu) |
---|
570 | |
---|
571 | DEALLOCATE(t2m, fevap, fluxlat) |
---|
572 | DEALLOCATE(frugs, agesno, fsollw, evap_pot) |
---|
573 | DEALLOCATE(fsolsw, wfbils, wfbilo) |
---|
574 | |
---|
575 | DEALLOCATE(pmflxr, pmflxs, prfl) |
---|
576 | DEALLOCATE(psfl, fraca, Vprecip) |
---|
577 | DEALLOCATE(zw2) |
---|
578 | |
---|
579 | DEALLOCATE(fluxu, fluxv) |
---|
580 | DEALLOCATE(fluxt) |
---|
581 | |
---|
582 | DEALLOCATE(uwriteSTD, vwriteSTD) |
---|
583 | DEALLOCATE(wwriteSTD, phiwriteSTD) |
---|
584 | DEALLOCATE(qwriteSTD, twriteSTD, rhwriteSTD) |
---|
585 | |
---|
586 | ! ug et d'autres encore: |
---|
587 | DEALLOCATE(wdtrainA, wdtrainM) |
---|
588 | DEALLOCATE(beta_prec) |
---|
589 | DEALLOCATE(rneb) |
---|
590 | DEALLOCATE (zxsnow,snowhgt,qsnow,to_ice,sissnow,runoff,albsol3_lic) |
---|
591 | |
---|
592 | END SUBROUTINE phys_local_var_end |
---|
593 | |
---|
594 | END MODULE phys_local_var_mod |
---|