[940] | 1 | |
---|
[524] | 2 | ! |
---|
| 3 | ! $Header$ |
---|
| 4 | ! |
---|
[879] | 5 | SUBROUTINE concvl (iflag_con,iflag_clos, |
---|
| 6 | . dtime,paprs,pplay, |
---|
| 7 | . t,q,t_wake,q_wake,u,v,tra,ntra, |
---|
| 8 | . ALE,ALP,work1,work2, |
---|
| 9 | . d_t,d_q,d_u,d_v,d_tra, |
---|
| 10 | . rain, snow, kbas, ktop, sigd, |
---|
| 11 | . upwd,dnwd,dnwdbis,Ma,mip,Vprecip, |
---|
| 12 | . cape,cin,tvp,Tconv,iflag, |
---|
[524] | 13 | . pbase,bbase,dtvpdt1,dtvpdq1,dplcldt,dplcldr, |
---|
[879] | 14 | . qcondc,wd,pmflxr,pmflxs, |
---|
| 15 | . da,phi,mp,dd_t,dd_q,lalim_conv,wght_th) |
---|
| 16 | *************************************************************** |
---|
| 17 | * * |
---|
| 18 | * CONCVL * |
---|
| 19 | * * |
---|
| 20 | * * |
---|
| 21 | * written by : Sandrine Bony-Lena, 17/05/2003, 11.16.04 * |
---|
| 22 | * modified by : * |
---|
| 23 | *************************************************************** |
---|
| 24 | * |
---|
[524] | 25 | c |
---|
[940] | 26 | USE dimphy |
---|
[1114] | 27 | USE infotrac, ONLY : nbtr |
---|
[524] | 28 | IMPLICIT none |
---|
| 29 | c====================================================================== |
---|
[879] | 30 | c Auteur(s): S. Bony-Lena (LMD/CNRS) date: ??? |
---|
[524] | 31 | c Objet: schema de convection de Emanuel (1991) interface |
---|
| 32 | c====================================================================== |
---|
| 33 | c Arguments: |
---|
| 34 | c dtime--input-R-pas d'integration (s) |
---|
| 35 | c s-------input-R-la valeur "s" pour chaque couche |
---|
| 36 | c sigs----input-R-la valeur "sigma" de chaque couche |
---|
| 37 | c sig-----input-R-la valeur de "sigma" pour chaque niveau |
---|
| 38 | c psolpa--input-R-la pression au sol (en Pa) |
---|
| 39 | C pskapa--input-R-exponentiel kappa de psolpa |
---|
| 40 | c h-------input-R-enthalpie potentielle (Cp*T/P**kappa) |
---|
| 41 | c q-------input-R-vapeur d'eau (en kg/kg) |
---|
| 42 | c |
---|
| 43 | c work*: input et output: deux variables de travail, |
---|
| 44 | c on peut les mettre a 0 au debut |
---|
| 45 | c ALE-----input-R-energie disponible pour soulevement |
---|
[879] | 46 | c ALP-----input-R-puissance disponible pour soulevement |
---|
[524] | 47 | c |
---|
| 48 | C d_h-----output-R-increment de l'enthalpie potentielle (h) |
---|
| 49 | c d_q-----output-R-increment de la vapeur d'eau |
---|
| 50 | c rain----output-R-la pluie (mm/s) |
---|
| 51 | c snow----output-R-la neige (mm/s) |
---|
| 52 | c upwd----output-R-saturated updraft mass flux (kg/m**2/s) |
---|
| 53 | c dnwd----output-R-saturated downdraft mass flux (kg/m**2/s) |
---|
| 54 | c dnwd0---output-R-unsaturated downdraft mass flux (kg/m**2/s) |
---|
[879] | 55 | c Ma------output-R-adiabatic ascent mass flux (kg/m2/s) |
---|
| 56 | c mip-----output-R-mass flux shed by adiabatic ascent (kg/m2/s) |
---|
| 57 | c Vprecip-output-R-vertical profile of precipitations (kg/m2/s) |
---|
| 58 | c Tconv---output-R-environment temperature seen by convective scheme (K) |
---|
[524] | 59 | c Cape----output-R-CAPE (J/kg) |
---|
[879] | 60 | c Cin ----output-R-CIN (J/kg) |
---|
[524] | 61 | c Tvp-----output-R-Temperature virtuelle d'une parcelle soulevee |
---|
| 62 | c adiabatiquement a partir du niveau 1 (K) |
---|
| 63 | c deltapb-output-R-distance entre LCL et base de la colonne (<0 ; Pa) |
---|
| 64 | c Ice_flag-input-L-TRUE->prise en compte de la thermodynamique de la glace |
---|
[879] | 65 | c dd_t-----output-R-increment de la temperature du aux descentes precipitantes |
---|
| 66 | c dd_q-----output-R-increment de la vapeur d'eau du aux desc precip |
---|
[524] | 67 | c====================================================================== |
---|
| 68 | c |
---|
| 69 | #include "dimensions.h" |
---|
| 70 | c |
---|
[879] | 71 | INTEGER iflag_con,iflag_clos |
---|
[524] | 72 | c |
---|
| 73 | REAL dtime, paprs(klon,klev+1),pplay(klon,klev) |
---|
| 74 | REAL t(klon,klev),q(klon,klev),u(klon,klev),v(klon,klev) |
---|
[879] | 75 | REAL t_wake(klon,klev),q_wake(klon,klev) |
---|
[1114] | 76 | REAL tra(klon,klev,nbtr) |
---|
[524] | 77 | INTEGER ntra |
---|
[879] | 78 | REAL work1(klon,klev),work2(klon,klev),ptop2(klon) |
---|
[619] | 79 | REAL pmflxr(klon,klev+1),pmflxs(klon,klev+1) |
---|
[879] | 80 | REAL ALE(klon),ALP(klon) |
---|
[524] | 81 | c |
---|
| 82 | REAL d_t(klon,klev),d_q(klon,klev),d_u(klon,klev),d_v(klon,klev) |
---|
[879] | 83 | REAL dd_t(klon,klev),dd_q(klon,klev) |
---|
[1114] | 84 | REAL d_tra(klon,klev,nbtr) |
---|
[524] | 85 | REAL rain(klon),snow(klon) |
---|
| 86 | c |
---|
| 87 | INTEGER kbas(klon),ktop(klon) |
---|
| 88 | REAL em_ph(klon,klev+1),em_p(klon,klev) |
---|
| 89 | REAL upwd(klon,klev),dnwd(klon,klev),dnwdbis(klon,klev) |
---|
[879] | 90 | REAL Ma(klon,klev), mip(klon,klev),Vprecip(klon,klev) |
---|
[619] | 91 | real da(klon,klev),phi(klon,klev,klev),mp(klon,klev) |
---|
[879] | 92 | REAL cape(klon),cin(klon),tvp(klon,klev) |
---|
| 93 | REAL Tconv(klon,klev) |
---|
| 94 | c |
---|
| 95 | cCR:test: on passe lentr et alim_star des thermiques |
---|
| 96 | INTEGER lalim_conv(klon) |
---|
| 97 | REAL wght_th(klon,klev) |
---|
| 98 | REAL em_sig1feed ! sigma at lower bound of feeding layer |
---|
| 99 | REAL em_sig2feed ! sigma at upper bound of feeding layer |
---|
| 100 | REAL em_wght(klev) ! weight density determining the feeding mixture |
---|
| 101 | con enleve le save |
---|
| 102 | c SAVE em_sig1feed,em_sig2feed,em_wght |
---|
| 103 | c |
---|
[524] | 104 | INTEGER iflag(klon) |
---|
| 105 | REAL rflag(klon) |
---|
| 106 | REAL pbase(klon),bbase(klon) |
---|
| 107 | REAL dtvpdt1(klon,klev),dtvpdq1(klon,klev) |
---|
| 108 | REAL dplcldt(klon),dplcldr(klon) |
---|
| 109 | REAL qcondc(klon,klev) |
---|
| 110 | REAL wd(klon) |
---|
[879] | 111 | REAL Plim1(klon),Plim2(klon),asupmax(klon,klev) |
---|
| 112 | REAL supmax0(klon),asupmaxmin(klon) |
---|
[524] | 113 | c |
---|
[879] | 114 | REAL sigd(klon) |
---|
[524] | 115 | REAL zx_t,zdelta,zx_qs,zcor |
---|
| 116 | c |
---|
[963] | 117 | ! INTEGER iflag_mix |
---|
| 118 | ! SAVE iflag_mix |
---|
[524] | 119 | INTEGER noff, minorig |
---|
| 120 | INTEGER i,k,itra |
---|
[879] | 121 | REAL qs(klon,klev),qs_wake(klon,klev) |
---|
[940] | 122 | cLF REAL cbmf(klon) |
---|
| 123 | cLF SAVE cbmf |
---|
| 124 | REAL, SAVE, ALLOCATABLE :: cbmf(:) |
---|
| 125 | c$OMP THREADPRIVATE(cbmf)! |
---|
| 126 | REAL cbmflast(klon) |
---|
[524] | 127 | INTEGER ifrst |
---|
| 128 | SAVE ifrst |
---|
| 129 | DATA ifrst /0/ |
---|
[766] | 130 | c$OMP THREADPRIVATE(ifrst) |
---|
| 131 | |
---|
[879] | 132 | c |
---|
| 133 | C Variables supplementaires liees au bilan d'energie |
---|
| 134 | c Real paire(klon) |
---|
[940] | 135 | cLF Real ql(klon,klev) |
---|
[879] | 136 | c Save paire |
---|
[940] | 137 | cLF Save ql |
---|
| 138 | cLF Real t1(klon,klev),q1(klon,klev) |
---|
| 139 | cLF Save t1,q1 |
---|
[879] | 140 | c Data paire /1./ |
---|
[940] | 141 | REAL, SAVE, ALLOCATABLE :: ql(:,:), q1(:,:), t1(:,:) |
---|
| 142 | c$OMP THREADPRIVATE(ql, q1, t1) |
---|
[879] | 143 | c |
---|
| 144 | C Variables liees au bilan d'energie et d'enthalpi |
---|
| 145 | REAL ztsol(klon) |
---|
| 146 | REAL h_vcol_tot, h_dair_tot, h_qw_tot, h_ql_tot |
---|
| 147 | $ , h_qs_tot, qw_tot, ql_tot, qs_tot , ec_tot |
---|
| 148 | SAVE h_vcol_tot, h_dair_tot, h_qw_tot, h_ql_tot |
---|
| 149 | $ , h_qs_tot, qw_tot, ql_tot, qs_tot , ec_tot |
---|
[987] | 150 | c$OMP THREADPRIVATE(h_vcol_tot, h_dair_tot, h_qw_tot, h_ql_tot) |
---|
| 151 | c$OMP THREADPRIVATE(h_qs_tot, qw_tot, ql_tot, qs_tot , ec_tot) |
---|
[879] | 152 | REAL d_h_vcol, d_h_dair, d_qt, d_qw, d_ql, d_qs, d_ec |
---|
| 153 | REAL d_h_vcol_phy |
---|
| 154 | REAL fs_bound, fq_bound |
---|
| 155 | SAVE d_h_vcol_phy |
---|
[987] | 156 | c$OMP THREADPRIVATE(d_h_vcol_phy) |
---|
[879] | 157 | REAL zero_v(klon) |
---|
| 158 | CHARACTER*15 ztit |
---|
| 159 | INTEGER ip_ebil ! PRINT level for energy conserv. diag. |
---|
| 160 | SAVE ip_ebil |
---|
| 161 | DATA ip_ebil/2/ |
---|
[987] | 162 | c$OMP THREADPRIVATE(ip_ebil) |
---|
[879] | 163 | INTEGER if_ebil ! level for energy conserv. dignostics |
---|
| 164 | SAVE if_ebil |
---|
| 165 | DATA if_ebil/2/ |
---|
[987] | 166 | c$OMP THREADPRIVATE(if_ebil) |
---|
[879] | 167 | c+jld ec_conser |
---|
| 168 | REAL d_t_ec(klon,klev) ! tendance du a la conersion Ec -> E thermique |
---|
| 169 | REAL ZRCPD |
---|
| 170 | c-jld ec_conser |
---|
[940] | 171 | cLF |
---|
[973] | 172 | INTEGER nloc |
---|
[940] | 173 | logical, save :: first=.true. |
---|
[987] | 174 | c$OMP THREADPRIVATE(first) |
---|
| 175 | INTEGER, SAVE :: itap, igout |
---|
| 176 | c$OMP THREADPRIVATE(itap, igout) |
---|
[879] | 177 | c |
---|
[524] | 178 | #include "YOMCST.h" |
---|
[879] | 179 | #include "YOMCST2.h" |
---|
[524] | 180 | #include "YOETHF.h" |
---|
| 181 | #include "FCTTRE.h" |
---|
[973] | 182 | #include "iniprint.h" |
---|
[524] | 183 | c |
---|
[940] | 184 | if (first) then |
---|
| 185 | c Allocate some variables LF 04/2008 |
---|
| 186 | c |
---|
| 187 | allocate(cbmf(klon)) |
---|
| 188 | allocate(ql(klon,klev)) |
---|
| 189 | allocate(t1(klon,klev)) |
---|
| 190 | allocate(q1(klon,klev)) |
---|
[973] | 191 | itap=0 |
---|
| 192 | igout=klon/2+1/klon |
---|
[940] | 193 | endif |
---|
[973] | 194 | c Incrementer le compteur de la physique |
---|
| 195 | itap = itap + 1 |
---|
[879] | 196 | |
---|
| 197 | c Copy T into Tconv |
---|
| 198 | DO k = 1,klev |
---|
| 199 | DO i = 1,klon |
---|
| 200 | Tconv(i,k) = T(i,k) |
---|
| 201 | ENDDO |
---|
| 202 | ENDDO |
---|
[524] | 203 | c |
---|
[879] | 204 | IF (if_ebil.ge.1) THEN |
---|
| 205 | DO i=1,klon |
---|
| 206 | ztsol(i) = t(i,1) |
---|
| 207 | zero_v(i)=0. |
---|
| 208 | Do k = 1,klev |
---|
| 209 | ql(i,k) = 0. |
---|
| 210 | ENDDO |
---|
| 211 | END DO |
---|
| 212 | END IF |
---|
| 213 | c |
---|
[559] | 214 | cym |
---|
| 215 | snow(:)=0 |
---|
| 216 | |
---|
[940] | 217 | c IF (ifrst .EQ. 0) THEN |
---|
| 218 | c ifrst = 1 |
---|
| 219 | if (first) then |
---|
| 220 | first=.false. |
---|
[879] | 221 | c |
---|
| 222 | C=========================================================================== |
---|
| 223 | C READ IN PARAMETERS FOR THE CLOSURE AND THE MIXING DISTRIBUTION |
---|
| 224 | C=========================================================================== |
---|
| 225 | C |
---|
| 226 | if (iflag_con.eq.3) then |
---|
[963] | 227 | c CALL cv3_inicp() |
---|
| 228 | CALL cv3_inip() |
---|
[879] | 229 | endif |
---|
| 230 | c |
---|
| 231 | C=========================================================================== |
---|
| 232 | C READ IN PARAMETERS FOR CONVECTIVE INHIBITION BY TROPOS. DRYNESS |
---|
| 233 | C=========================================================================== |
---|
| 234 | C |
---|
[987] | 235 | cc$$$ open (56,file='supcrit.data') |
---|
| 236 | cc$$$ read (56,*) Supcrit1, Supcrit2 |
---|
| 237 | cc$$$ close (56) |
---|
[879] | 238 | c |
---|
| 239 | print*, 'supcrit1, supcrit2' ,supcrit1, supcrit2 |
---|
| 240 | C |
---|
| 241 | C=========================================================================== |
---|
| 242 | C Initialisation pour les bilans d'eau et d'energie |
---|
| 243 | C=========================================================================== |
---|
| 244 | IF (if_ebil.ge.1) d_h_vcol_phy=0. |
---|
| 245 | c |
---|
[524] | 246 | DO i = 1, klon |
---|
| 247 | cbmf(i) = 0. |
---|
[973] | 248 | sigd(i) = 0. |
---|
[524] | 249 | ENDDO |
---|
[879] | 250 | ENDIF !(ifrst .EQ. 0) |
---|
[524] | 251 | |
---|
| 252 | DO k = 1, klev+1 |
---|
| 253 | DO i=1,klon |
---|
| 254 | em_ph(i,k) = paprs(i,k) / 100.0 |
---|
[619] | 255 | pmflxs(i,k)=0. |
---|
[524] | 256 | ENDDO |
---|
| 257 | ENDDO |
---|
| 258 | c |
---|
| 259 | DO k = 1, klev |
---|
| 260 | DO i=1,klon |
---|
| 261 | em_p(i,k) = pplay(i,k) / 100.0 |
---|
| 262 | ENDDO |
---|
| 263 | ENDDO |
---|
[879] | 264 | c |
---|
| 265 | ! |
---|
| 266 | ! Feeding layer |
---|
| 267 | ! |
---|
| 268 | em_sig1feed = 1. |
---|
| 269 | em_sig2feed = 0.97 |
---|
| 270 | c em_sig2feed = 0.8 |
---|
| 271 | ! Relative Weight densities |
---|
| 272 | do k=1,klev |
---|
| 273 | em_wght(k)=1. |
---|
| 274 | end do |
---|
| 275 | cCRtest: couche alim des tehrmiques ponderee par a* |
---|
| 276 | c DO i = 1, klon |
---|
| 277 | c do k=1,lalim_conv(i) |
---|
| 278 | c em_wght(k)=wght_th(i,k) |
---|
| 279 | c print*,'em_wght=',em_wght(k),wght_th(i,k) |
---|
| 280 | c end do |
---|
| 281 | c END DO |
---|
[524] | 282 | |
---|
| 283 | if (iflag_con .eq. 4) then |
---|
| 284 | DO k = 1, klev |
---|
| 285 | DO i = 1, klon |
---|
| 286 | zx_t = t(i,k) |
---|
| 287 | zdelta=MAX(0.,SIGN(1.,rtt-zx_t)) |
---|
| 288 | zx_qs= MIN(0.5 , r2es * FOEEW(zx_t,zdelta)/em_p(i,k)/100.0) |
---|
| 289 | zcor=1./(1.-retv*zx_qs) |
---|
| 290 | qs(i,k)=zx_qs*zcor |
---|
| 291 | ENDDO |
---|
[879] | 292 | DO i = 1, klon |
---|
| 293 | zx_t = t_wake(i,k) |
---|
| 294 | zdelta=MAX(0.,SIGN(1.,rtt-zx_t)) |
---|
| 295 | zx_qs= MIN(0.5 , r2es * FOEEW(zx_t,zdelta)/em_p(i,k)/100.0) |
---|
| 296 | zcor=1./(1.-retv*zx_qs) |
---|
| 297 | qs_wake(i,k)=zx_qs*zcor |
---|
| 298 | ENDDO |
---|
[524] | 299 | ENDDO |
---|
| 300 | else ! iflag_con=3 (modif de puristes qui fait la diffce pour la convergence numerique) |
---|
| 301 | DO k = 1, klev |
---|
| 302 | DO i = 1, klon |
---|
| 303 | zx_t = t(i,k) |
---|
| 304 | zdelta=MAX(0.,SIGN(1.,rtt-zx_t)) |
---|
| 305 | zx_qs= r2es * FOEEW(zx_t,zdelta)/em_p(i,k)/100.0 |
---|
| 306 | zx_qs= MIN(0.5,zx_qs) |
---|
| 307 | zcor=1./(1.-retv*zx_qs) |
---|
| 308 | zx_qs=zx_qs*zcor |
---|
| 309 | qs(i,k)=zx_qs |
---|
| 310 | ENDDO |
---|
[879] | 311 | DO i = 1, klon |
---|
| 312 | zx_t = t_wake(i,k) |
---|
| 313 | zdelta=MAX(0.,SIGN(1.,rtt-zx_t)) |
---|
| 314 | zx_qs= r2es * FOEEW(zx_t,zdelta)/em_p(i,k)/100.0 |
---|
| 315 | zx_qs= MIN(0.5,zx_qs) |
---|
| 316 | zcor=1./(1.-retv*zx_qs) |
---|
| 317 | zx_qs=zx_qs*zcor |
---|
| 318 | qs_wake(i,k)=zx_qs |
---|
| 319 | ENDDO |
---|
[524] | 320 | ENDDO |
---|
| 321 | endif ! iflag_con |
---|
| 322 | c |
---|
| 323 | C------------------------------------------------------------------ |
---|
| 324 | |
---|
| 325 | C Main driver for convection: |
---|
[879] | 326 | C iflag_con=3 -> nvlle version de KE (JYG) |
---|
| 327 | C iflag_con = 30 -> equivalent to convect3 |
---|
[524] | 328 | C iflag_con = 4 -> equivalent to convect1/2 |
---|
[879] | 329 | c |
---|
| 330 | c |
---|
| 331 | if (iflag_con.eq.30) then |
---|
[524] | 332 | |
---|
| 333 | CALL cv_driver(klon,klev,klev+1,ntra,iflag_con, |
---|
| 334 | : t,q,qs,u,v,tra, |
---|
| 335 | $ em_p,em_ph,iflag, |
---|
| 336 | $ d_t,d_q,d_u,d_v,d_tra,rain, |
---|
[619] | 337 | $ pmflxr,cbmf,work1,work2, |
---|
| 338 | $ kbas,ktop, |
---|
| 339 | $ dtime,Ma,upwd,dnwd,dnwdbis,qcondc,wd,cape, |
---|
| 340 | $ da,phi,mp) |
---|
[879] | 341 | |
---|
| 342 | else |
---|
[524] | 343 | |
---|
[940] | 344 | cLF necessary for gathered fields |
---|
| 345 | nloc=klon |
---|
| 346 | CALL cva_driver(klon,klev,klev+1,ntra,nloc, |
---|
[879] | 347 | $ iflag_con,iflag_mix,iflag_clos,dtime, |
---|
| 348 | : t,q,qs,t_wake,q_wake,qs_wake,u,v,tra, |
---|
| 349 | $ em_p,em_ph, |
---|
| 350 | . ALE,ALP, |
---|
| 351 | . em_sig1feed,em_sig2feed,em_wght, |
---|
| 352 | . iflag,d_t,d_q,d_u,d_v,d_tra,rain,kbas,ktop, |
---|
| 353 | $ cbmf,work1,work2,ptop2,sigd, |
---|
| 354 | $ Ma,mip,Vprecip,upwd,dnwd,dnwdbis,qcondc,wd, |
---|
| 355 | $ cape,cin,tvp, |
---|
| 356 | $ dd_t,dd_q,Plim1,Plim2,asupmax,supmax0, |
---|
| 357 | $ asupmaxmin,lalim_conv) |
---|
| 358 | endif |
---|
[524] | 359 | C------------------------------------------------------------------ |
---|
| 360 | |
---|
| 361 | DO i = 1,klon |
---|
| 362 | rain(i) = rain(i)/86400. |
---|
| 363 | rflag(i)=iflag(i) |
---|
| 364 | ENDDO |
---|
| 365 | |
---|
| 366 | DO k = 1, klev |
---|
| 367 | DO i = 1, klon |
---|
| 368 | d_t(i,k) = dtime*d_t(i,k) |
---|
| 369 | d_q(i,k) = dtime*d_q(i,k) |
---|
| 370 | d_u(i,k) = dtime*d_u(i,k) |
---|
| 371 | d_v(i,k) = dtime*d_v(i,k) |
---|
| 372 | ENDDO |
---|
| 373 | ENDDO |
---|
[879] | 374 | c |
---|
| 375 | if (iflag_con.eq.30) then |
---|
[619] | 376 | DO itra = 1,ntra |
---|
| 377 | DO k = 1, klev |
---|
| 378 | DO i = 1, klon |
---|
| 379 | d_tra(i,k,itra) =dtime*d_tra(i,k,itra) |
---|
| 380 | ENDDO |
---|
| 381 | ENDDO |
---|
[879] | 382 | ENDDO |
---|
| 383 | endif |
---|
| 384 | |
---|
| 385 | DO k = 1, klev |
---|
| 386 | DO i = 1, klon |
---|
| 387 | t1(i,k) = t(i,k)+ d_t(i,k) |
---|
| 388 | q1(i,k) = q(i,k)+ d_q(i,k) |
---|
| 389 | ENDDO |
---|
| 390 | ENDDO |
---|
| 391 | c |
---|
| 392 | cc IF (if_ebil.ge.2) THEN |
---|
| 393 | cc ztit='after convect' |
---|
| 394 | cc CALL diagetpq(paire,ztit,ip_ebil,2,2,dtime |
---|
| 395 | cc e , t1,q1,ql,qs,u,v,paprs,pplay |
---|
| 396 | cc s , d_h_vcol, d_qt, d_qw, d_ql, d_qs, d_ec) |
---|
| 397 | cc call diagphy(paire,ztit,ip_ebil |
---|
| 398 | cc e , zero_v, zero_v, zero_v, zero_v, zero_v |
---|
| 399 | cc e , zero_v, rain, zero_v, ztsol |
---|
| 400 | cc e , d_h_vcol, d_qt, d_ec |
---|
| 401 | cc s , fs_bound, fq_bound ) |
---|
| 402 | cc END IF |
---|
| 403 | C |
---|
| 404 | c |
---|
[524] | 405 | c les traceurs ne sont pas mis dans cette version de convect4: |
---|
| 406 | if (iflag_con.eq.4) then |
---|
| 407 | DO itra = 1,ntra |
---|
| 408 | DO k = 1, klev |
---|
| 409 | DO i = 1, klon |
---|
| 410 | d_tra(i,k,itra) = 0. |
---|
| 411 | ENDDO |
---|
| 412 | ENDDO |
---|
| 413 | ENDDO |
---|
| 414 | endif |
---|
[938] | 415 | c print*, 'concvl->: dd_t,dd_q ',dd_t(1,1),dd_q(1,1) |
---|
[879] | 416 | |
---|
[970] | 417 | DO k = 1, klev |
---|
| 418 | DO i = 1, klon |
---|
| 419 | dtvpdt1(i,k) = 0. |
---|
| 420 | dtvpdq1(i,k) = 0. |
---|
| 421 | ENDDO |
---|
| 422 | ENDDO |
---|
| 423 | DO i = 1, klon |
---|
| 424 | dplcldt(i) = 0. |
---|
| 425 | dplcldr(i) = 0. |
---|
| 426 | ENDDO |
---|
[973] | 427 | c |
---|
| 428 | if(prt_level.GE.20) THEN |
---|
| 429 | DO k=1,klev |
---|
| 430 | ! print*,'physiq apres_add_con i k it d_u d_v d_t d_q qdl0',igout |
---|
| 431 | ! .,k,itap,d_u_con(igout,k) ,d_v_con(igout,k), d_t_con(igout,k), |
---|
| 432 | ! .d_q_con(igout,k),dql0(igout,k) |
---|
| 433 | ! print*,'phys apres_add_con itap Ma cin ALE ALP wak t q undi t q' |
---|
| 434 | ! .,itap,Ma(igout,k),cin(igout),ALE(igout), ALP(igout), |
---|
| 435 | ! . t_wake(igout,k),q_wake(igout,k),t_undi(igout,k),q_undi(igout,k) |
---|
| 436 | ! print*,'phy apres_add_con itap CON rain snow EMA wk1 wk2 Vpp mip' |
---|
| 437 | ! .,itap,rain_con(igout),snow_con(igout),ema_work1(igout,k), |
---|
| 438 | ! .ema_work2(igout,k),Vprecip(igout,k), mip(igout,k) |
---|
| 439 | ! print*,'phy apres_add_con itap upwd dnwd dnwd0 cape tvp Tconv ' |
---|
| 440 | ! .,itap,upwd(igout,k),dnwd(igout,k),dnwd0(igout,k),cape(igout), |
---|
| 441 | ! .tvp(igout,k),Tconv(igout,k) |
---|
| 442 | ! print*,'phy apres_add_con itap dtvpdt dtvdq dplcl dplcldr qcondc' |
---|
| 443 | ! .,itap,dtvpdt1(igout,k),dtvpdq1(igout,k),dplcldt(igout), |
---|
| 444 | ! .dplcldr(igout),qcondc(igout,k) |
---|
| 445 | ! print*,'phy apres_add_con itap wd pmflxr Kpmflxr Kp1 Kpmflxs Kp1' |
---|
| 446 | ! .,itap,wd(igout),pmflxr(igout,k),pmflxr(igout,k+1),pmflxs(igout,k) |
---|
| 447 | ! .,pmflxs(igout,k+1) |
---|
| 448 | ! print*,'phy apres_add_con itap da phi mp ftd fqd lalim wgth', |
---|
| 449 | ! .itap,da(igout,k),phi(igout,k,k),mp(igout,k),ftd(igout,k), |
---|
| 450 | ! . fqd(igout,k),lalim_conv(igout),wght_th(igout,k) |
---|
| 451 | ENDDO |
---|
| 452 | endif !(prt_level.EQ.20) THEN |
---|
| 453 | c |
---|
[524] | 454 | RETURN |
---|
| 455 | END |
---|
| 456 | |
---|