[3] | 1 | ! |
---|
| 2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/phytrac.F,v 1.16 2006/03/24 15:06:23 lmdzadmin Exp $ |
---|
| 3 | ! |
---|
| 4 | c |
---|
| 5 | c |
---|
| 6 | SUBROUTINE phytrac (nstep, |
---|
| 7 | I gmtime, |
---|
| 8 | I debutphy, |
---|
| 9 | I lafin, |
---|
| 10 | I nqmax, |
---|
| 11 | I nlon, |
---|
| 12 | I nlev, |
---|
| 13 | I pdtphys, |
---|
| 14 | I u, |
---|
| 15 | I v, |
---|
| 16 | I t_seri, |
---|
| 17 | I paprs, |
---|
| 18 | I pplay, |
---|
| 19 | I coefh, |
---|
| 20 | I yu1, |
---|
| 21 | I yv1, |
---|
| 22 | I ftsol, |
---|
| 23 | I xlat, |
---|
| 24 | I xlon, |
---|
| 25 | I zlev, |
---|
| 26 | I presnivs, |
---|
| 27 | I pphis, |
---|
| 28 | I pphi, |
---|
| 29 | I albsol, |
---|
| 30 | O tr_seri) |
---|
| 31 | |
---|
| 32 | USE ioipsl |
---|
| 33 | |
---|
| 34 | IMPLICIT none |
---|
| 35 | c====================================================================== |
---|
| 36 | c Auteur(s) FH |
---|
| 37 | c Objet: Moniteur general des tendances traceurs |
---|
| 38 | c |
---|
| 39 | cAA Remarques en vrac: |
---|
| 40 | cAA-------------------- |
---|
| 41 | cAA 1/ le call phytrac se fait avec nqmax |
---|
| 42 | c====================================================================== |
---|
| 43 | #include "YOMCST.h" |
---|
| 44 | #include "dimensions.h" |
---|
| 45 | #include "dimphy.h" |
---|
| 46 | #include "clesphys.h" !///utile? |
---|
| 47 | #include "temps.h" |
---|
| 48 | #include "paramet.h" |
---|
| 49 | #include "control.h" |
---|
| 50 | #include "comgeomphy.h" |
---|
| 51 | #include "advtrac.h" |
---|
| 52 | c====================================================================== |
---|
| 53 | |
---|
| 54 | c Arguments: |
---|
| 55 | c |
---|
| 56 | c EN ENTREE: |
---|
| 57 | c ========== |
---|
| 58 | c |
---|
| 59 | c divers: |
---|
| 60 | c ------- |
---|
| 61 | c |
---|
| 62 | integer nlon ! nombre de points horizontaux |
---|
| 63 | integer nlev ! nombre de couches verticales |
---|
| 64 | integer nqmax ! nombre de traceurs auxquels on applique la physique |
---|
| 65 | integer nstep ! appel physique |
---|
| 66 | integer nseuil ! numero du premier traceur non CV |
---|
| 67 | c integer julien !jour julien |
---|
| 68 | c integer itop_con(nlon) |
---|
| 69 | c integer ibas_con(nlon) |
---|
| 70 | real gmtime |
---|
| 71 | real pdtphys ! pas d'integration pour la physique (seconde) |
---|
| 72 | real t_seri(nlon,nlev) ! temperature |
---|
| 73 | real tr_seri(nlon,nlev,nqmax) ! traceur |
---|
| 74 | real u(nlon,nlev) |
---|
| 75 | real v(nlon,nlev) |
---|
| 76 | real albsol(nlon) ! albedo surface |
---|
| 77 | real paprs(nlon,nlev+1) ! pression pour chaque inter-couche (en Pa) |
---|
| 78 | real ps(nlon) ! pression surface |
---|
| 79 | real pplay(nlon,nlev) ! pression pour le mileu de chaque couche (en Pa) |
---|
| 80 | real pphi(nlon,nlev) ! geopotentiel |
---|
| 81 | real pphis(nlon) |
---|
| 82 | REAL presnivs(nlev) |
---|
| 83 | logical debutphy ! le flag de l'initialisation de la physique |
---|
| 84 | logical lafin ! le flag de la fin de la physique |
---|
| 85 | c REAL flxmass_w(nlon,nlev) |
---|
| 86 | |
---|
| 87 | cAA Rem : nqmax : nombre de vrais traceurs est defini dans dimphy.h |
---|
| 88 | c |
---|
| 89 | c convection: |
---|
| 90 | c ----------- |
---|
| 91 | c |
---|
| 92 | REAL pmfu(nlon,nlev) ! flux de masse dans le panache montant |
---|
| 93 | REAL pmfd(nlon,nlev) ! flux de masse dans le panache descendant |
---|
| 94 | REAL pen_u(nlon,nlev) ! flux entraine dans le panache montant |
---|
| 95 | |
---|
| 96 | c |
---|
| 97 | c Couche limite: |
---|
| 98 | c -------------- |
---|
| 99 | c |
---|
| 100 | REAL coefh(nlon,nlev) ! coeff melange CL |
---|
| 101 | REAL yu1(nlon) ! vents au premier niveau |
---|
| 102 | REAL yv1(nlon) ! vents au premier niveau |
---|
| 103 | REAL xlat(nlon) ! latitudes pour chaque point |
---|
| 104 | REAL xlon(nlon) ! longitudes pour chaque point |
---|
| 105 | REAL zlev(nlon,nlev+1) ! altitude a chaque niveau (interface inferieure de la couche) |
---|
| 106 | cAA |
---|
| 107 | cAA Arguments necessaires pour les sources et puits de traceur: |
---|
| 108 | cAA ---------------- |
---|
| 109 | cAA |
---|
| 110 | real ftsol(nlon) ! Temperature du sol (surf)(Kelvin) |
---|
| 111 | |
---|
| 112 | cAA ---------------------------- |
---|
| 113 | cAA VARIABLES LOCALES TRACEURS |
---|
| 114 | cAA ---------------------------- |
---|
| 115 | cAA |
---|
| 116 | |
---|
| 117 | CHARACTER*2 itn |
---|
| 118 | C maf ioipsl |
---|
| 119 | CHARACTER*2 str2 |
---|
| 120 | INTEGER nhori, nvert |
---|
| 121 | REAL zsto, zout, zjulian |
---|
| 122 | INTEGER nid_tra |
---|
| 123 | SAVE nid_tra |
---|
| 124 | INTEGER nid_tra2,nid_tra3 |
---|
| 125 | SAVE nid_tra2,nid_tra3 |
---|
| 126 | INTEGER ndex(1) |
---|
| 127 | INTEGER ndex2d(iim*(jjm+1)),ndex3d(iim*(jjm+1)*klev) |
---|
| 128 | REAL zx_tmp_2d(iim,jjm+1), zx_tmp_3d(iim,jjm+1,klev) |
---|
| 129 | REAL zx_lon(iim,jjm+1), zx_lat(iim,jjm+1) |
---|
| 130 | c |
---|
| 131 | integer itau_w ! pas de temps ecriture = nstep + itau_phy |
---|
| 132 | c |
---|
| 133 | |
---|
| 134 | C |
---|
| 135 | C Variables liees a l'ecriture de la bande histoire : phytrac.nc |
---|
| 136 | c |
---|
| 137 | c INTEGER ecrit_tra |
---|
| 138 | c SAVE ecrit_tra |
---|
| 139 | logical ok_sync |
---|
| 140 | parameter (ok_sync = .true.) |
---|
| 141 | C |
---|
| 142 | C les traceurs |
---|
| 143 | C |
---|
| 144 | c=================== |
---|
| 145 | c it--------indice de traceur |
---|
| 146 | c k,i---------indices long, vert |
---|
| 147 | c=================== |
---|
| 148 | c Variables deja declarees dont on a besoin pour traceurs |
---|
| 149 | c k,i,it,tr_seri(klon,klev,nqmax),pplay(nlon,nlev), |
---|
| 150 | real zprof(klon,klev,nqmx) |
---|
| 151 | c real pzero,gamma |
---|
| 152 | c parameter (pzero=85000.) |
---|
| 153 | c parameter (gamma=5000.) |
---|
| 154 | REAL alpha |
---|
| 155 | real deltatr(klon,klev,nqmx) ! ecart au profil de ref zprof |
---|
| 156 | real tau(klev,nqmx) ! temps de relaxation vers le profil (s) |
---|
| 157 | save zprof,tau |
---|
| 158 | c====================================================================== |
---|
| 159 | c |
---|
| 160 | c Declaration des procedures appelees |
---|
| 161 | c |
---|
| 162 | c--modif convection tiedtke |
---|
| 163 | INTEGER i, k, it |
---|
| 164 | INTEGER iq, iiq |
---|
| 165 | REAL delp(klon,klev) |
---|
| 166 | c--end modif |
---|
| 167 | c |
---|
| 168 | c Variables liees a l'ecriture de la bande histoire physique |
---|
| 169 | c |
---|
| 170 | c Variables locales pour effectuer les appels en serie |
---|
| 171 | c---------------------------------------------------- |
---|
| 172 | c |
---|
| 173 | REAL d_tr(klon,klev), d_trs(klon) ! tendances de traceurs |
---|
| 174 | REAL d_tr_cl(klon,klev,nqmax) ! tendance de traceurs couche limite |
---|
| 175 | REAL d_tr_cv(klon,klev,nqmax) ! tendance de traceurs conv pour chq traceur |
---|
| 176 | C |
---|
| 177 | character*80 abort_message |
---|
| 178 | c |
---|
| 179 | c Controles |
---|
| 180 | c------------- |
---|
| 181 | logical first,couchelimite,convection |
---|
| 182 | save first,couchelimite,convection |
---|
| 183 | c Olivia |
---|
| 184 | data first,couchelimite,convection |
---|
| 185 | s /.true.,.false.,.false./ |
---|
| 186 | |
---|
| 187 | c====================================================================== |
---|
| 188 | ps(:)=paprs(:,1) |
---|
| 189 | c--------- |
---|
| 190 | c debutphy |
---|
| 191 | c--------- |
---|
| 192 | if (debutphy) then |
---|
| 193 | print*,"DEBUT PHYTRAC" |
---|
| 194 | C |
---|
| 195 | c============================================================= |
---|
| 196 | c Initialisation des traceurs |
---|
| 197 | c============================================================= |
---|
| 198 | c |
---|
| 199 | c=========== |
---|
| 200 | c definition de traceurs idealises |
---|
| 201 | c========== |
---|
| 202 | c |
---|
| 203 | c I) Declaration directe du traceur a altitude fixee |
---|
| 204 | c |
---|
| 205 | c a) traceur en carre OK |
---|
| 206 | c |
---|
| 207 | c do i=1,klon |
---|
| 208 | c tr_seri(i,:,1)=0. |
---|
| 209 | c if ((xlat(i)>=0.).and.(xlat(i)<=-30.)) then |
---|
| 210 | c if ((xlon(i)>=0.).and.(xlon(i)<=40.)) then |
---|
| 211 | c tr_seri(i,10,1)=1. |
---|
| 212 | c endif |
---|
| 213 | c endif |
---|
| 214 | c end do |
---|
| 215 | c |
---|
| 216 | c a bis) 2 traceurs en carre lat/alt, uniforme en longitude OK |
---|
| 217 | c |
---|
| 218 | C entre 45-55 km |
---|
| 219 | c |
---|
| 220 | c do i=1,klon |
---|
| 221 | c do k=1,klev+1 |
---|
| 222 | cc tr_seri(i,k,1)=0. |
---|
| 223 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 224 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 225 | c if ((pplay(klon/2,k)>=5.e4).and.(pplay(klon/2,k)<=4.e5)) then |
---|
| 226 | c tr_seri(i,k,1)=1. |
---|
| 227 | c endif |
---|
| 228 | c endif |
---|
| 229 | c endif |
---|
| 230 | c else |
---|
| 231 | c tr_seri(i,k,1)=0. |
---|
| 232 | c end do |
---|
| 233 | c end do |
---|
| 234 | cc |
---|
| 235 | c do i=1,klon |
---|
| 236 | c do k=1,klev+1 |
---|
| 237 | cc tr_seri(i,k,2)=0. |
---|
| 238 | c if ((xlat(i)>=-60.).and.(xlat(i)<=-80.)) then |
---|
| 239 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 240 | c if ((pplay(klon/2,k)>=5.e4).and.(pplay(klon/2,k)<=4.e5)) then |
---|
| 241 | c tr_seri(i,k,2)=1. |
---|
| 242 | c endif |
---|
| 243 | c endif |
---|
| 244 | c endif |
---|
| 245 | c else |
---|
| 246 | c tr_seri(i,k,2)=0. |
---|
| 247 | c end do |
---|
| 248 | c end do |
---|
| 249 | cc |
---|
| 250 | c do i=1,klon |
---|
| 251 | c do k=1,klev+1 |
---|
| 252 | cc tr_seri(i,k,3)=0. |
---|
| 253 | c if ((xlat(i)>=40.).and.(xlat(i)<=60.)) then |
---|
| 254 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 255 | c if ((pplay(klon/2,k)>=5.e4).and.(pplay(klon/2,k)<=4.e5)) then |
---|
| 256 | c tr_seri(i,k,3)=1. |
---|
| 257 | c endif |
---|
| 258 | c endif |
---|
| 259 | c endif |
---|
| 260 | c else |
---|
| 261 | c tr_seri(i,k,3)=0. |
---|
| 262 | c end do |
---|
| 263 | c end do |
---|
| 264 | cc |
---|
| 265 | c do i=1,klon |
---|
| 266 | c do k=1,klev+1 |
---|
| 267 | cc tr_seri(i,k,4)=0. |
---|
| 268 | c if ((xlat(i)>=-40.).and.(xlat(i)<=-60.)) then |
---|
| 269 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 270 | c if ((pplay(klon/2,k)>=5.e4).and.(pplay(klon/2,k)<=4.e5)) then |
---|
| 271 | c tr_seri(i,k,4)=1. |
---|
| 272 | c endif |
---|
| 273 | c endif |
---|
| 274 | c endif |
---|
| 275 | c else |
---|
| 276 | c tr_seri(i,k,4)=0. |
---|
| 277 | c end do |
---|
| 278 | c end do |
---|
| 279 | cc |
---|
| 280 | c do i=1,klon |
---|
| 281 | c do k=1,klev+1 |
---|
| 282 | cc tr_seri(i,k,5)=0. |
---|
| 283 | c if ((xlat(i)>=-20.).and.(xlat(i)<=20.)) then |
---|
| 284 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 285 | c if ((pplay(klon/2,k)>=5.e4).and.(pplay(klon/2,k)<=4.e5)) then |
---|
| 286 | c tr_seri(i,k,5)=1. |
---|
| 287 | c endif |
---|
| 288 | c endif |
---|
| 289 | c endif |
---|
| 290 | c else |
---|
| 291 | c tr_seri(i,k,5)=0. |
---|
| 292 | c end do |
---|
| 293 | c end do |
---|
| 294 | c |
---|
| 295 | c entre 35-45 km |
---|
| 296 | c |
---|
| 297 | c do i=1,klon |
---|
| 298 | c do k=1,klev+1 |
---|
| 299 | cc tr_seri(i,k,6)=0. |
---|
| 300 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 301 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 302 | c if ((pplay(klon/2,k)>=4.e5).and.(pplay(klon/2,k)<=8.e6)) then |
---|
| 303 | c tr_seri(i,k,6)=1. |
---|
| 304 | c endif |
---|
| 305 | c endif |
---|
| 306 | c endif |
---|
| 307 | c else |
---|
| 308 | c tr_seri(i,k,6)=0. |
---|
| 309 | c end do |
---|
| 310 | c end do |
---|
| 311 | c |
---|
| 312 | c do i=1,klon |
---|
| 313 | c do k=1,klev+1 |
---|
| 314 | cc tr_seri(i,k,7)=0. |
---|
| 315 | c if ((xlat(i)>=-60.).and.(xlat(i)<=-80.)) then |
---|
| 316 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 317 | c if ((pplay(klon/2,k)>=4.e5).and.(pplay(klon/2,k)<=8.e6)) then |
---|
| 318 | c tr_seri(i,k,7)=1. |
---|
| 319 | c endif |
---|
| 320 | c endif |
---|
| 321 | c endif |
---|
| 322 | c else |
---|
| 323 | c tr_seri(i,k,7)=0. |
---|
| 324 | c end do |
---|
| 325 | c end do |
---|
| 326 | c |
---|
| 327 | C entre 50-60 km |
---|
| 328 | c |
---|
| 329 | c do i=1,klon |
---|
| 330 | c do k=1,klev+1 |
---|
| 331 | cc tr_seri(i,k,8)=0. |
---|
| 332 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 333 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 334 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=1.e5)) then |
---|
| 335 | c tr_seri(i,k,8)=1. |
---|
| 336 | c endif |
---|
| 337 | c endif |
---|
| 338 | c endif |
---|
| 339 | c else |
---|
| 340 | c tr_seri(i,k,8)=0. |
---|
| 341 | c end do |
---|
| 342 | c end do |
---|
| 343 | c |
---|
| 344 | c do i=1,klon |
---|
| 345 | c do k=1,klev+1 |
---|
| 346 | cc tr_seri(i,k,9)=0. |
---|
| 347 | c if ((xlat(i)>=-80.).and.(xlat(i)<=-60.)) then |
---|
| 348 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 349 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=1.e5)) then |
---|
| 350 | c tr_seri(i,k,9)=1. |
---|
| 351 | c endif |
---|
| 352 | c endif |
---|
| 353 | c endif |
---|
| 354 | c else |
---|
| 355 | c tr_seri(i,k,9)=0. |
---|
| 356 | c end do |
---|
| 357 | c end do |
---|
| 358 | c |
---|
| 359 | c do i=1,klon |
---|
| 360 | c do k=1,klev+1 |
---|
| 361 | cc tr_seri(i,k,10)=0. |
---|
| 362 | c if ((xlat(i)>=40.).and.(xlat(i)<=60.)) then |
---|
| 363 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 364 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=1.e5)) then |
---|
| 365 | c tr_seri(i,k,10)=1. |
---|
| 366 | c endif |
---|
| 367 | c endif |
---|
| 368 | c endif |
---|
| 369 | c else |
---|
| 370 | c tr_seri(i,k,10)=0. |
---|
| 371 | c end do |
---|
| 372 | c end do |
---|
| 373 | c |
---|
| 374 | c do i=1,klon |
---|
| 375 | c do k=1,klev+1 |
---|
| 376 | cc tr_seri(i,k,11)=0. |
---|
| 377 | c if ((xlat(i)>=-60.).and.(xlat(i)<=-40.)) then |
---|
| 378 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 379 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=1.e5)) then |
---|
| 380 | c tr_seri(i,k,11)=1. |
---|
| 381 | c endif |
---|
| 382 | c endif |
---|
| 383 | c endif |
---|
| 384 | c else |
---|
| 385 | c tr_seri(i,k,11)=0. |
---|
| 386 | c end do |
---|
| 387 | c end do |
---|
| 388 | c |
---|
| 389 | c do i=1,klon |
---|
| 390 | c do k=1,klev+1 |
---|
| 391 | cc tr_seri(i,k,12)=0. |
---|
| 392 | c if ((xlat(i)>=-20.).and.(xlat(i)<=20.)) then |
---|
| 393 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 394 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=1.e5)) then |
---|
| 395 | c tr_seri(i,k,12)=1. |
---|
| 396 | c endif |
---|
| 397 | c endif |
---|
| 398 | c endif |
---|
| 399 | c else |
---|
| 400 | c tr_seri(i,k,12)=0. |
---|
| 401 | c end do |
---|
| 402 | c end do |
---|
| 403 | c |
---|
| 404 | c entre 20-30 km |
---|
| 405 | c |
---|
| 406 | c do i=1,klon |
---|
| 407 | c do k=1,klev+1 |
---|
| 408 | cc tr_seri(i,k,13)=0. |
---|
| 409 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 410 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 411 | c if ((pplay(klon/2,k)>=1.e6).and.(pplay(klon/2,k)<=2.e6)) then |
---|
| 412 | c tr_seri(i,k,13)=1. |
---|
| 413 | c endif |
---|
| 414 | c endif |
---|
| 415 | c endif |
---|
| 416 | c else |
---|
| 417 | c tr_seri(i,k,13)=0. |
---|
| 418 | c end do |
---|
| 419 | c end do |
---|
| 420 | c |
---|
| 421 | c do i=1,klon |
---|
| 422 | c do k=1,klev+1 |
---|
| 423 | cc tr_seri(i,k,14)=0. |
---|
| 424 | c if ((xlat(i)>=-80.).and.(xlat(i)<=-60.)) then |
---|
| 425 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 426 | c if ((pplay(klon/2,k)>=1.e6).and.(pplay(klon/2,k)<=2.e6)) then |
---|
| 427 | c tr_seri(i,k,14)=1. |
---|
| 428 | c endif |
---|
| 429 | c endif |
---|
| 430 | c endif |
---|
| 431 | c else |
---|
| 432 | c tr_seri(i,k,14)=0. |
---|
| 433 | c end do |
---|
| 434 | c end do |
---|
| 435 | c |
---|
| 436 | c do i=1,klon |
---|
| 437 | c do k=1,klev+1 |
---|
| 438 | cc tr_seri(i,k,15)=0. |
---|
| 439 | c if ((xlat(i)>=-20.).and.(xlat(i)<=20.)) then |
---|
| 440 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 441 | c if ((pplay(klon/2,k)>=1.e6).and.(pplay(klon/2,k)<=2.e6)) then |
---|
| 442 | c tr_seri(i,k,15)=1. |
---|
| 443 | c endif |
---|
| 444 | c endif |
---|
| 445 | c endif |
---|
| 446 | c else |
---|
| 447 | c tr_seri(i,k,15)=0. |
---|
| 448 | c end do |
---|
| 449 | c end do |
---|
| 450 | c |
---|
| 451 | c entre 55-65 km |
---|
| 452 | c |
---|
| 453 | c do i=1,klon |
---|
| 454 | c do k=1,klev+1 |
---|
| 455 | cc tr_seri(i,k,16)=0. |
---|
| 456 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 457 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 458 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=5.e4)) then |
---|
| 459 | c tr_seri(i,k,16)=1. |
---|
| 460 | c endif |
---|
| 461 | c endif |
---|
| 462 | c endif |
---|
| 463 | c endif |
---|
| 464 | c else |
---|
| 465 | c tr_seri(i,k,16)=0. |
---|
| 466 | c end do |
---|
| 467 | c end do |
---|
| 468 | c |
---|
| 469 | c do i=1,klon |
---|
| 470 | c do k=1,klev+1 |
---|
| 471 | cc tr_seri(i,k,17)=0. |
---|
| 472 | c if ((xlat(i)>=-80.).and.(xlat(i)<=-60.)) then |
---|
| 473 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 474 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=5.e4)) then |
---|
| 475 | c tr_seri(i,k,17)=1. |
---|
| 476 | c endif |
---|
| 477 | c endif |
---|
| 478 | c endif |
---|
| 479 | c endif |
---|
| 480 | c else |
---|
| 481 | c tr_seri(i,k,17)=0. |
---|
| 482 | c end do |
---|
| 483 | c end do |
---|
| 484 | c |
---|
| 485 | c do i=1,klon |
---|
| 486 | c do k=1,klev+1 |
---|
| 487 | cc tr_seri(i,k,18)=0. |
---|
| 488 | c if ((xlat(i)>=-20.).and.(xlat(i)<=20.)) then |
---|
| 489 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 490 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=5.e4)) then |
---|
| 491 | c tr_seri(i,k,18)=1. |
---|
| 492 | c endif |
---|
| 493 | c endif |
---|
| 494 | c endif |
---|
| 495 | c endif |
---|
| 496 | c else |
---|
| 497 | c tr_seri(i,k,18)=0. |
---|
| 498 | c end do |
---|
| 499 | c end do |
---|
| 500 | c |
---|
| 501 | c b) traceur a une bande en latitudeOK |
---|
| 502 | c |
---|
| 503 | c a 65km |
---|
| 504 | c |
---|
| 505 | c do i=1,klon |
---|
| 506 | c tr_seri(i,:,1)=0. |
---|
| 507 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 508 | c tr_seri(i,20,1)=1. |
---|
| 509 | c endif |
---|
| 510 | c end do |
---|
| 511 | c |
---|
| 512 | c do i=1,klon |
---|
| 513 | c tr_seri(i,:,2)=0. |
---|
| 514 | c if ((xlat(i)>=40.).and.(xlat(i)<=60.)) then |
---|
| 515 | c tr_seri(i,20,2)=1. |
---|
| 516 | c endif |
---|
| 517 | c end do |
---|
| 518 | c |
---|
| 519 | c do i=1,klon |
---|
| 520 | c tr_seri(i,:,3)=0. |
---|
| 521 | c if ((xlat(i)>=20.).and.(xlat(i)<=40.)) then |
---|
| 522 | c tr_seri(i,20,3)=1. |
---|
| 523 | c endif |
---|
| 524 | c end do |
---|
| 525 | c |
---|
| 526 | c do i=1,klon |
---|
| 527 | c tr_seri(i,:,4)=0. |
---|
| 528 | c if ((xlat(i)>=0.).and.(xlat(i)<=20.)) then |
---|
| 529 | c tr_seri(i,20,4)=1. |
---|
| 530 | c endif |
---|
| 531 | c end do |
---|
| 532 | c |
---|
| 533 | c do i=1,klon |
---|
| 534 | c tr_seri(i,:,5)=0. |
---|
| 535 | c if ((xlat(i)>=-20.).and.(xlat(i)<=0.)) then |
---|
| 536 | c tr_seri(i,20,5)=1. |
---|
| 537 | c endif |
---|
| 538 | c end do |
---|
| 539 | c |
---|
| 540 | c do i=1,klon |
---|
| 541 | c tr_seri(i,:,6)=0. |
---|
| 542 | c if ((xlat(i)>=-40.).and.(xlat(i)<=-20.)) then |
---|
| 543 | c tr_seri(i,20,6)=1. |
---|
| 544 | c endif |
---|
| 545 | c end do |
---|
| 546 | c |
---|
| 547 | c do i=1,klon |
---|
| 548 | c tr_seri(i,:,7)=0. |
---|
| 549 | c if ((xlat(i)>=-60.).and.(xlat(i)<=-40.)) then |
---|
| 550 | c tr_seri(i,20,7)=1. |
---|
| 551 | c endif |
---|
| 552 | c end do |
---|
| 553 | c |
---|
| 554 | c do i=1,klon |
---|
| 555 | c tr_seri(i,:,8)=0. |
---|
| 556 | c if ((xlat(i)>=-80.).and.(xlat(i)<=-60.)) then |
---|
| 557 | c tr_seri(i,20,8)=1. |
---|
| 558 | c endif |
---|
| 559 | c end do |
---|
| 560 | c |
---|
| 561 | c a 50km |
---|
| 562 | c |
---|
| 563 | c do i=1,klon |
---|
| 564 | c tr_seri(i,:,1)=0. |
---|
| 565 | c if ((xlat(i)>=40.).and.(xlat(i)<=60.)) then |
---|
| 566 | c tr_seri(i,27,1)=1. |
---|
| 567 | c endif |
---|
| 568 | c end do |
---|
| 569 | c |
---|
| 570 | c do i=1,klon |
---|
| 571 | c tr_seri(i,:,2)=0. |
---|
| 572 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 573 | c tr_seri(i,27,2)=1. |
---|
| 574 | c endif |
---|
| 575 | c end do |
---|
| 576 | c |
---|
| 577 | c do i=1,klon |
---|
| 578 | c tr_seri(i,:,3)=0. |
---|
| 579 | c if ((xlat(i)>=20.).and.(xlat(i)<=40.)) then |
---|
| 580 | c tr_seri(i,27,3)=1. |
---|
| 581 | c endif |
---|
| 582 | c end do |
---|
| 583 | c |
---|
| 584 | c do i=1,klon |
---|
| 585 | c tr_seri(i,:4)=0. |
---|
| 586 | c if ((xlat(i)>=0.).and.(xlat(i)<=20.)) then |
---|
| 587 | c tr_seri(i,27,4)=1. |
---|
| 588 | c endif |
---|
| 589 | c end do |
---|
| 590 | c |
---|
| 591 | c do i=1,klon |
---|
| 592 | c tr_seri(i,:,5)=0. |
---|
| 593 | c if ((xlat(i)>=-20.).and.(xlat(i)<=0.)) then |
---|
| 594 | c tr_seri(i,27,5)=1. |
---|
| 595 | c endif |
---|
| 596 | c end do |
---|
| 597 | c |
---|
| 598 | c do i=1,klon |
---|
| 599 | c tr_seri(i,:,6)=0. |
---|
| 600 | c if ((xlat(i)>=-40.).and.(xlat(i)<=-20.)) then |
---|
| 601 | c tr_seri(i,27,6)=1. |
---|
| 602 | c endif |
---|
| 603 | c end do |
---|
| 604 | c |
---|
| 605 | c do i=1,klon |
---|
| 606 | c tr_seri(i,:,7)=0. |
---|
| 607 | c if ((xlat(i)>=-60.).and.(xlat(i)<=-40.)) then |
---|
| 608 | c tr_seri(i,27,7)=1. |
---|
| 609 | c endif |
---|
| 610 | c end do |
---|
| 611 | c |
---|
| 612 | c do i=1,klon |
---|
| 613 | c tr_seri(i,:,8)=0. |
---|
| 614 | c if ((xlat(i)>=-80.).and.(xlat(i)<=-60.)) then |
---|
| 615 | c tr_seri(i,27,8)=1. |
---|
| 616 | c endif |
---|
| 617 | c end do |
---|
| 618 | c |
---|
| 619 | c c) traceur a plusieurs bandes en latitude OK |
---|
| 620 | c |
---|
| 621 | c do i=1,klon |
---|
| 622 | c tr_seri(i,:,2)=0. |
---|
| 623 | c if ((xlat(i)>=50.).and.(xlat(i)<=70.)) then |
---|
| 624 | c tr_seri(i,10,2)=1. |
---|
| 625 | c endif |
---|
| 626 | c if ((xlat(i)>=-10.).and.(xlat(i)<=10.)) then |
---|
| 627 | c tr_seri(i,10,2)=1. |
---|
| 628 | c endif |
---|
| 629 | c |
---|
| 630 | c if ((xlat(i)>=-70.).and.(xlat(i)<=-50.)) then |
---|
| 631 | c tr_seri(i,10,2)=1. |
---|
| 632 | c endif |
---|
| 633 | c end do |
---|
| 634 | c |
---|
| 635 | c d) traceur a une bande en altitude OK |
---|
| 636 | c |
---|
| 637 | c do k=1,klev+1 |
---|
| 638 | c tr_seri(:,k,1)=0. |
---|
| 639 | c if ((pplay(klon/2,k)>=1.e5).and.(pplay(klon/2,k)<=1.e6)) then |
---|
| 640 | c tr_seri(:,k,1)=1. |
---|
| 641 | c endif |
---|
| 642 | c end do |
---|
| 643 | c |
---|
| 644 | c dbis) plusieurs traceurs a une bande en altitude OK |
---|
| 645 | c |
---|
| 646 | c bande tres basse tropo |
---|
| 647 | c do k=1,klev |
---|
| 648 | c tr_seri(:,k,1)=0. |
---|
| 649 | c if ((pplay(klon/2,k)>=5.e5).and.(pplay(klon/2,k)<=5.e6)) then |
---|
| 650 | c tr_seri(:,k,1)=1. |
---|
| 651 | c endif |
---|
| 652 | c end do |
---|
| 653 | c bande dans les nuages et un peu en-dessous |
---|
| 654 | c do k=1,klev |
---|
| 655 | c tr_seri(:,k,2)=0. |
---|
| 656 | c if ((pplay(klon/2,k)>=5.e4).and.(pplay(klon/2,k)<=5.e5)) then |
---|
| 657 | c tr_seri(:,k,2)=1. |
---|
| 658 | c endif |
---|
| 659 | c end do |
---|
| 660 | cune grosse epaisseur: inclue toute la circulation meridienne |
---|
| 661 | c do k=1,klev |
---|
| 662 | c tr_seri(:,k,1)=0. |
---|
| 663 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=1.e6)) then |
---|
| 664 | c tr_seri(:,k,1)=1. |
---|
| 665 | c endif |
---|
| 666 | c end do |
---|
| 667 | cune grosse epaisseur: inclue la mesosphere |
---|
| 668 | c do k=1,klev |
---|
| 669 | c tr_seri(:,k,2)=0. |
---|
| 670 | c if ((pplay(klon/2,k)>=2.e2).and.(pplay(klon/2,k)<=1.e4)) then |
---|
| 671 | c tr_seri(:,k,2)=1. |
---|
| 672 | c endif |
---|
| 673 | c end do |
---|
| 674 | c |
---|
| 675 | c do k=1,klev |
---|
| 676 | c tr_seri(:,k,3)=0. |
---|
| 677 | c if ((pplay(klon/2,k)>=5.e1).and.(pplay(klon/2,k)<=5.e2)) then |
---|
| 678 | c tr_seri(:,k,3)=1. |
---|
| 679 | c endif |
---|
| 680 | c end do |
---|
| 681 | c |
---|
| 682 | c e) plusieurs couches verticales de traceurs, a plusieurs bandes en latitude??? |
---|
| 683 | c |
---|
| 684 | c au sol |
---|
| 685 | c do i=1,klon |
---|
| 686 | c tr_seri(i,:,1)=0. |
---|
| 687 | c if ((xlat(i)>=50.).and.(xlat(i)<=70.)) then |
---|
| 688 | c tr_seri(i,5,1)=1. |
---|
| 689 | c endif |
---|
| 690 | c if ((xlat(i)>=-10.).and.(xlat(i)<=10.)) then |
---|
| 691 | c tr_seri(i,5,1)=1. |
---|
| 692 | c endif |
---|
| 693 | c |
---|
| 694 | c if ((xlat(i)>=-70.).and.(xlat(i)<=-50.)) then |
---|
| 695 | c tr_seri(i,5,1)=1. |
---|
| 696 | c endif |
---|
| 697 | c end do |
---|
| 698 | c |
---|
| 699 | c do i=1,klon |
---|
| 700 | c tr_seri(i,:,2)=0. |
---|
| 701 | c if ((xlat(i)>=50.).and.(xlat(i)<=70.)) then |
---|
| 702 | c tr_seri(i,10,2)=1. |
---|
| 703 | c endif |
---|
| 704 | c if ((xlat(i)>=-10.).and.(xlat(i)<=10.)) then |
---|
| 705 | c tr_seri(i,10,2)=1. |
---|
| 706 | c endif |
---|
| 707 | c |
---|
| 708 | c if ((xlat(i)>=-70.).and.(xlat(i)<=-50.)) then |
---|
| 709 | c tr_seri(i,10,2)=1. |
---|
| 710 | c endif |
---|
| 711 | c end do |
---|
| 712 | c |
---|
| 713 | c do i=1,klon |
---|
| 714 | c tr_seri(i,:,3)=0. |
---|
| 715 | c if ((xlat(i)>=50.).and.(xlat(i)<=70.)) then |
---|
| 716 | c tr_seri(i,30,3)=1. |
---|
| 717 | c endif |
---|
| 718 | c if ((xlat(i)>=-10.).and.(xlat(i)<=10.)) then |
---|
| 719 | c tr_seri(i,30,3)=1. |
---|
| 720 | c endif |
---|
| 721 | c |
---|
| 722 | c if ((xlat(i)>=-70.).and.(xlat(i)<=-50.)) then |
---|
| 723 | c tr_seri(i,30,3)=1. |
---|
| 724 | c endif |
---|
| 725 | c end do |
---|
| 726 | c |
---|
| 727 | c do i=1,klon |
---|
| 728 | c tr_seri(i,:,4)=0. |
---|
| 729 | c if ((xlat(i)>=50.).and.(xlat(i)<=70.)) then |
---|
| 730 | c tr_seri(i,45,4)=1. |
---|
| 731 | c endif |
---|
| 732 | c if ((xlat(i)>=-10.).and.(xlat(i)<=10.)) then |
---|
| 733 | c tr_seri(i,45,4)=1. |
---|
| 734 | c endif |
---|
| 735 | c |
---|
| 736 | c if ((xlat(i)>=-70.).and.(xlat(i)<=-50.)) then |
---|
| 737 | c tr_seri(i,45,4)=1. |
---|
| 738 | c endif |
---|
| 739 | c end do |
---|
| 740 | c |
---|
| 741 | |
---|
| 742 | c II) Declaration d'un profil vertical de traceur OK |
---|
| 743 | c |
---|
| 744 | c tr_seri = profil initial |
---|
| 745 | c zprof = profil de rappel |
---|
| 746 | c (identiques a l'initialisation) |
---|
| 747 | c |
---|
| 748 | c 1 -> CO ; 2 -> OCS |
---|
| 749 | c def des profils en log(a) = a * log(P) + b par morceaux, cf. pollack et al |
---|
| 750 | c tr_seri en ppm |
---|
| 751 | |
---|
| 752 | c Constantes de rappel: |
---|
| 753 | |
---|
| 754 | do k=1,klev |
---|
| 755 | tau(k,1)=1.e6 |
---|
| 756 | tau(k,2)=1.e7 |
---|
| 757 | tau(k,3)=1.e8 |
---|
| 758 | tau(k,4)=1.e6 |
---|
| 759 | tau(k,5)=1.e7 |
---|
| 760 | tau(k,6)=1.e8 |
---|
| 761 | enddo |
---|
| 762 | |
---|
| 763 | c CO |
---|
| 764 | |
---|
| 765 | do it=1,3 |
---|
| 766 | do k=1,klev |
---|
| 767 | tr_seri(:,k,it)=0. |
---|
| 768 | c pour l'instant, tau fixe, mais possibilite de le faire varier avec z |
---|
| 769 | if (pplay(klon/2,k) >= 1.9e6) then |
---|
| 770 | tr_seri(:,k,it)=20. |
---|
| 771 | endif |
---|
| 772 | if ((pplay(klon/2,k)<=1.9e6).and.(pplay(klon/2,k)>=2.73e5)) then |
---|
| 773 | alpha=(log(pplay(klon/2,k))-log(2.73e5))/ |
---|
| 774 | . (log(1.9e6)-log(2.73e5)) |
---|
| 775 | tr_seri(:,k,it)=30.*(20./30.)**alpha |
---|
| 776 | endif |
---|
| 777 | if ((pplay(klon/2,k)<=2.73e5).and.(pplay(klon/2,k)>=1.1e4)) then |
---|
| 778 | alpha=(log(pplay(klon/2,k))-log(1.1e4))/ |
---|
| 779 | . (log(2.73e5)-log(1.1e4)) |
---|
| 780 | tr_seri(:,k,it)=50.*(30./50.)**alpha |
---|
| 781 | endif |
---|
| 782 | if ((pplay(klon/2,k)<=1.1e4).and.(pplay(klon/2,k)>=1.3e3)) then |
---|
| 783 | alpha=(log(pplay(klon/2,k))-log(1.3e3))/ |
---|
| 784 | . (log(1.1e4)-log(1.3e3)) |
---|
| 785 | tr_seri(:,k,it)=2.*(50./2.)**alpha |
---|
| 786 | endif |
---|
| 787 | if ((pplay(klon/2,k)<=1.3e3).and.(pplay(klon/2,k)>=2.4)) then |
---|
| 788 | alpha=(log(pplay(klon/2,k))-log(2.4))/ |
---|
| 789 | . (log(1.3e3)-log(2.4)) |
---|
| 790 | tr_seri(:,k,it)=1000.*(2./1000.)**alpha |
---|
| 791 | endif |
---|
| 792 | if (pplay(klon/2,k) <= 2.4) then |
---|
| 793 | tr_seri(:,k,it)=1000. |
---|
| 794 | endif |
---|
| 795 | enddo |
---|
| 796 | |
---|
| 797 | c OCS |
---|
| 798 | do k=1,klev |
---|
| 799 | tr_seri(:,k,it+3)=0. |
---|
| 800 | if (pplay(klon/2,k) >= 9.45e5) then |
---|
| 801 | tr_seri(:,k,it+3)=16. |
---|
| 802 | endif |
---|
| 803 | if ((pplay(klon/2,k)<=9.45e5).and.(pplay(klon/2,k)>=4.724e5)) |
---|
| 804 | * then |
---|
| 805 | alpha=(log(pplay(klon/2,k))-log(4.724e5))/ |
---|
| 806 | * (log(9.45e5)-log(4.724e5)) |
---|
| 807 | tr_seri(:,k,it+3)=0.5*(16/0.5)**alpha |
---|
| 808 | endif |
---|
| 809 | if ((pplay(klon/2,k)<=4.724e5).and.(pplay(klon/2,k)>=1.1e4)) |
---|
| 810 | * then |
---|
| 811 | alpha=(log(pplay(klon/2,k))-log(1.1e4))/ |
---|
| 812 | * (log(4.724e5)-log(1.1e4)) |
---|
| 813 | tr_seri(:,k,it+3)=0.005*(0.5/0.005)**alpha |
---|
| 814 | endif |
---|
| 815 | if (pplay(klon/2,k)<=1.1e4) then |
---|
| 816 | tr_seri(:,k,it+3)=0. |
---|
| 817 | endif |
---|
| 818 | end do |
---|
| 819 | enddo |
---|
| 820 | |
---|
| 821 | do it=1,nqmax |
---|
| 822 | do k=1,klev |
---|
| 823 | do i=1,klon |
---|
| 824 | zprof(i,k,it) = tr_seri(i,k,it) |
---|
| 825 | enddo |
---|
| 826 | enddo |
---|
| 827 | enddo |
---|
| 828 | |
---|
| 829 | c------------- |
---|
| 830 | c fin debutphy |
---|
| 831 | c------------- |
---|
| 832 | ENDIF ! fin debutphy |
---|
| 833 | |
---|
| 834 | c====================================================================== |
---|
| 835 | c Rappel vers un profil |
---|
| 836 | c====================================================================== |
---|
| 837 | do it=1,nqmax |
---|
| 838 | do k=1,klev |
---|
| 839 | do i=1,klon |
---|
| 840 | c VERIF |
---|
| 841 | if (tr_seri(i,k,it).lt.0) then |
---|
| 842 | print*,"Traceur negatif AVANT rappel:",i,k,it |
---|
| 843 | stop |
---|
| 844 | endif |
---|
| 845 | c FIN VERIF |
---|
| 846 | |
---|
| 847 | deltatr(i,k,it) = (-tr_seri(i,k,it)+zprof(i,k,it))/tau(k,it) |
---|
| 848 | tr_seri(i,k,it) = tr_seri(i,k,it) + deltatr(i,k,it)*pdtphys |
---|
| 849 | |
---|
| 850 | c VERIF |
---|
| 851 | if (tr_seri(i,k,it).lt.0) then |
---|
| 852 | print*,"APRES rappel:",i,k,it, |
---|
| 853 | . deltatr(i,k,it),zprof(i,k,it),tr_seri(i,k,it),pdtphys/tau(k,it) |
---|
| 854 | stop |
---|
| 855 | endif |
---|
| 856 | c FIN VERIF |
---|
| 857 | enddo |
---|
| 858 | enddo |
---|
| 859 | enddo |
---|
| 860 | |
---|
| 861 | c====================================================================== |
---|
| 862 | c Calcul de l'effet de la couche limite remis directement dans physiq |
---|
| 863 | c====================================================================== |
---|
| 864 | |
---|
| 865 | |
---|
| 866 | RETURN |
---|
| 867 | END |
---|