Changeset 1496 for LMDZ5/trunk/libf/phylmd/thermcell_main.F90
- Timestamp:
- Mar 11, 2011, 10:44:05 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/thermcell_main.F90
r1494 r1496 8 8 & ,fm0,entr0,detr0,zqta,zqla,lmax & 9 9 & ,ratqscth,ratqsdiff,zqsatth & 10 & ,r_aspect,l_mix,tau_thermals,iflag_thermals_ed &11 10 & ,Ale_bl,Alp_bl,lalim_conv,wght_th & 12 11 & ,zmax0, f0,zw2,fraca,ztv & … … 47 46 #include "FCTTRE.h" 48 47 #include "iniprint.h" 48 #include "thermcell.h" 49 49 50 50 ! arguments: … … 54 54 INTEGER itap 55 55 56 INTEGER ngrid,nlay,w2di 57 real tau_thermals 58 integer iflag_thermals_ed 59 real ptimestep,l_mix,r_aspect 56 INTEGER ngrid,nlay 57 real ptimestep 60 58 REAL pt(ngrid,nlay),pdtadj(ngrid,nlay) 61 59 REAL pu(ngrid,nlay),pduadj(ngrid,nlay) … … 162 160 real Ale_bl(klon) 163 161 real Alp_bl(klon) 164 real alp_int(klon) 162 real alp_int(klon),dp_int(klon),zdp 165 163 real ale_int(klon) 166 164 integer n_int(klon) … … 474 472 475 473 ! Appel avec la version seche 476 CALL thermcell_closure(ngrid,nlay,r_aspect ,ptimestep,rho, &474 CALL thermcell_closure(ngrid,nlay,r_aspect_thermals,ptimestep,rho, & 477 475 & zlev,lalim,alim_star_clos,f_star,zmax_sec,wmax_sec,f,lev_out) 478 476 … … 480 478 ! Appel avec les zmax et wmax tenant compte de la condensation 481 479 ! Semble moins bien marcher 482 ! CALL thermcell_closure(ngrid,nlay,r_aspect ,ptimestep,rho, &480 ! CALL thermcell_closure(ngrid,nlay,r_aspect_thermals,ptimestep,rho, & 483 481 ! & zlev,lalim,alim_star,f_star,zmax,wmax,f,lev_out) 484 482 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 702 700 enddo 703 701 704 ! print*,'AAAAAAA ',Alp_bl,Ale_bl,lmix705 706 707 ! TEST. IL FAUT REECRIRE LES ALE et ALP708 ! Ale_bl(:)=0.5*wmax(:)*wmax(:)709 ! Alp_bl(:)=0.1*wmax(:)*wmax(:)*wmax(:)710 711 702 !test:calcul de la ponderation des couches pour KE 712 703 !initialisations 713 ! print*,'ponderation'714 704 715 705 fm_tot(:)=0. … … 743 733 endif 744 734 enddo 735 736 !------------------------------------------------------------------------ 737 ! Modif CR/FH 20110310 : Alp integree sur la verticale. 738 ! Integrale verticale de ALP. 739 ! wth3 etant aux niveaux inter-couches, on utilise d play comme masse des 740 ! couches 741 !------------------------------------------------------------------------ 742 743 alp_int(:)=0. 744 dp_int(:)=0. 745 do l=2,nlay 746 do ig=1,ngrid 747 if(l.LE.lmax(ig)) THEN 748 zdp=pplay(ig,l-1)-pplay(ig,l) 749 alp_int(ig)=alp_int(ig)+0.5*rhobarz(ig,l)*wth3(ig,l)*zdp 750 dp_int(ig)=dp_int(ig)+zdp 751 endif 752 enddo 753 enddo 754 755 if (iflag_coupl==3 .or. iflag_coupl==4) then 756 do ig=1,ngrid 757 !valeur integree de alp_bl * 0.5: 758 if (dp_int(ig)>0.) then 759 Alp_bl(ig)=alp_int(ig)/dp_int(ig) 760 endif 761 enddo! 762 endif 763 764 765 ! Facteur multiplicatif sur Alp_bl 766 Alp_bl(:)=alp_bl_k*Alp_bl(:) 767 768 !------------------------------------------------------------------------ 745 769 746 770
Note: See TracChangeset
for help on using the changeset viewer.