Changeset 544 for trunk/LMDZ.MARS/libf/phymars/thermcell_main_mars.F90
- Timestamp:
- Feb 27, 2012, 10:44:32 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/thermcell_main_mars.F90
r532 r544 113 113 REAL zdz,zbuoy(ngridmx,nlayermx),zw2m 114 114 LOGICAL activecell(ngridmx),activetmp(ngridmx) 115 REAL a1,b1,ae,be,ad,bd,fdfu,b1inv,a1inv,omega 115 REAL a1,b1,ae,be,ad,bd,fdfu,b1inv,a1inv,omega,adalim 116 116 INTEGER tic 117 117 … … 381 381 b1inv=b1 382 382 omega=0. 383 adalim=0. 383 384 384 385 ! One good config for 34/35 levels … … 389 390 ! Best configuration for 222 levels: 390 391 391 omega=0.06 392 b1=0. 393 a1=1. 394 a1inv=0.25*a1 395 b1inv=0.0002 392 ! omega=0.06 393 ! b1=0. 394 ! a1=1. 395 ! a1inv=0.25*a1 396 ! b1inv=0.0002 397 !! 398 !! 399 !! ae=0.9*ae 396 400 397 401 ! Best config for norad 222 levels: 398 399 ! omega=0.06 400 ! a1=1. 401 ! b1=0. 402 ! a1inv=a1 403 ! be=1.1*be 404 ! ad = 0.0004 405 ! b1inv=0.00035 402 ! with yamada4 and alim at sqrt(zlev) 403 404 omega=0.06 405 a1=1. 406 b1=0. 407 a1inv=a1 408 be=1.1*be 409 ad = 0.0004 410 b1inv=0.00035 411 adalim=0. 412 413 b1inv=0.00025 406 414 407 415 ! Trying stuff : 416 417 ! omega=0.04 418 !! b1=0. 419 ! a1=1. 420 ! a1inv=a1 421 ! b1inv=0.0005689 422 !! be=1.1*be 423 !! ae=0.96*ae 424 408 425 409 426 ! omega=0.06 … … 431 448 if (ztv(ig,1)>=(ztv(ig,2))) then 432 449 alim_star(ig,1)=MAX((ztv(ig,1)-ztv(ig,2)),0.) & 433 & *sqrt(zlev(ig,2))450 ! & *sqrt(zlev(ig,2)) 434 451 ! & /sqrt(zlev(ig,2)) 435 !& *zlev(ig,2)452 & *zlev(ig,2) 436 453 lalim(ig)=2 437 454 alim_star_tot(ig)=alim_star_tot(ig)+alim_star(ig,1) … … 444 461 if (ztv(ig,l)>(ztv(ig,l+1)+0.) .and. ztv(ig,1)>=ztv(ig,l) .and. (alim_star(ig,l-1) .ne. 0.)) then ! .and. (zlev(ig,l+1) .lt. 1000.)) then 445 462 alim_star(ig,l)=MAX((ztv(ig,l)-ztv(ig,l+1)),0.) & 446 & *sqrt(zlev(ig,l+1)) 447 ! & *zlev(ig,2) 463 ! & *sqrt(zlev(ig,l+1)) 464 ! & /sqrt(zlev(ig,l+1)) 465 & *zlev(ig,l+1) 448 466 lalim(ig)=l+1 449 467 alim_star_tot(ig)=alim_star_tot(ig)+alim_star(ig,l) … … 562 580 if(zbuoy(ig,l) .gt. 0.) then 563 581 if(l .lt. lalim(ig)) then 564 detr_star(ig,l)=0. 582 583 ! detr_star(ig,l)=0. 584 detr_star(ig,l) = f_star(ig,l)*zdz* & 585 & adalim 565 586 else 566 587 … … 628 649 !--------------------------------------------------------------------------- 629 650 630 DO tic=0, 0! internal convergence loop651 DO tic=0,5 ! internal convergence loop 631 652 activetmp(:)=activecell(:) .and. f_star(:,l+1)>1.e-10 632 653 do ig=1,ngridmx … … 674 695 if(zbuoy(ig,l) .gt. 0.) then 675 696 if(l .lt. lalim(ig)) then 676 detr_star(ig,l)=0. 697 698 ! detr_star(ig,l)=0. 699 detr_star(ig,l) = f_star(ig,l)*zdz* & 700 & adalim 701 677 702 else 678 703 detr_star(ig,l) = f_star(ig,l)*zdz* &
Note: See TracChangeset
for help on using the changeset viewer.