Changeset 619 for LMDZ4/trunk/libf/phylmd/physiq.F
- Timestamp:
- Apr 15, 2005, 2:36:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phylmd/physiq.F
r616 r619 212 212 REAL d_qx(klon,klev,nqmax) 213 213 REAL d_ps(klon) 214 real da(klon,klev),phi(klon,klev,klev),mp(klon,klev) 214 215 215 216 INTEGER klevp1, klevm1 … … 769 770 REAL zx_t, zx_qs, zdelta, zcor, zfra, zlvdcp, zlsdcp 770 771 real zqsat(klon,klev) 771 INTEGER i, k, iq, ig, j, nsrf, ll772 INTEGER i, k, iq, ig, j, iiq, nsrf, ll 772 773 REAL t_coup 773 774 PARAMETER (t_coup=234.0) … … 795 796 INTEGER iflagctrl(klon) ! flag fonctionnement de convect 796 797 c -- convect43: 797 INTEGER ntra ! nb traceurs pour convect4.3798 INTEGER ntra ! nb traceurs 798 799 REAL pori_con(klon) ! pressure at the origin level of lifted parcel 799 800 REAL plcl_con(klon),dtma_con(klon),dtlcl_con(klon) … … 1153 1154 1154 1155 WRITE(lunout,*)"*** Convection de Kerry Emanuel 4.3 " 1155 WRITE(lunout,*)1156 . "On va utiliser le melange convectif des traceurs qui"1157 WRITE(lunout,*)"est calcule dans convect4.3"1158 WRITE(lunout,*)" !!! penser aux logical flags de phytrac"1159 1156 1160 1157 DO i = 1, klon … … 1167 1164 DO i = 1, klon 1168 1165 ibas_con(i) = 1 1169 itop_con(i) = klev+11166 itop_con(i) = 1 1170 1167 ENDDO 1171 1168 cIM15/11/02 rajout initialisation ibas_con,itop_con cf. SB =>END … … 1733 1730 ELSE IF (iflag_con.GE.3) THEN 1734 1731 c nb of tracers for the KE convection: 1735 if (nqmax .GE. 4) then 1736 ntra = nbtr 1737 else 1738 ntra = 1 1739 endif 1740 c 1732 c MAF la partie traceurs est faite dans phytrac 1733 c on met ntra=1 pour limiter les appels mais on peut 1734 c supprimer les calculs / ftra. 1735 ntra = 1 1741 1736 c sb, oct02: 1742 1737 c Schema de convection modularise et vectorise: … … 1747 1742 CALL concvl (iflag_con, 1748 1743 . dtime,paprs,pplay,t_seri,q_seri, 1749 . u_seri,v_seri,tr_seri,n btr,1744 . u_seri,v_seri,tr_seri,ntra, 1750 1745 . ema_work1,ema_work2, 1751 1746 . d_t_con,d_q_con,d_u_con,d_v_con,d_tr, … … 1753 1748 . upwd,dnwd,dnwd0, 1754 1749 . Ma,cape,tvp,iflagctrl, 1755 . pbase,bbase,dtvpdt1,dtvpdq1,dplcldt,dplcldr,qcondc,wd) 1750 . pbase,bbase,dtvpdt1,dtvpdq1,dplcldt,dplcldr,qcondc,wd, 1751 . pmflxr,pmflxs, 1752 . da,phi,mp) 1753 1756 1754 cIM cf. FH 1757 1755 clwcon0=qcondc 1756 pmfu(:,:)=upwd(:,:)+dnwd(:,:) 1758 1757 1759 1758 ELSE ! ok_cvl 1760 1759 c MAF conema3 ne contient pas les traceurs 1761 1760 CALL conema3 (dtime, 1762 1761 . paprs,pplay,t_seri,q_seri, 1763 . u_seri,v_seri,tr_seri,n btr,1762 . u_seri,v_seri,tr_seri,ntra, 1764 1763 . ema_work1,ema_work2, 1765 1764 . d_t_con,d_q_con,d_u_con,d_v_con,d_tr, … … 1885 1884 zx_ajustq=.FALSE. 1886 1885 c 1887 IF (nqmax.GT.2) THEN !--melange convectif de traceurs1888 c1889 IF (iflag_con .NE. 2 .AND. debut) THEN1890 WRITE(lunout,*)'Pour l instant, seul conflx fonctionne ',1891 $ 'avec traceurs', iflag_con1892 WRITE(lunout,*)' Mettre iflag_con',1893 $ ' = 2 dans run.def et repasser'1894 c CALL abort1895 ENDIF1896 c1897 ENDIF !--nqmax.GT.21898 c1899 c Appeler l'ajustement sec1900 c1901 1886 c=================================================================== 1902 1887 c Convection seche (thermiques ou ajustement) … … 2644 2629 c Calcul des tendances traceurs 2645 2630 c==================================================================== 2646 C Pascale : il faut quand meme apeller phytrac car il gere les sorties2647 cKE43 des traceurs => il faut donc mettre des flags a .false.2648 IF (iflag_con.GE.3) THEN2649 c on ajoute les tendances calculees par KE432650 cXXX OM on onhibe la convection sur les traceurs2651 DO iq=1, nqmax-2 ! Sandrine a -3 ???2652 cXXX OM on inhibe la convection sur les traceur2653 cXXX DO k = 1, nlev2654 cXXX DO i = 1, klon2655 cXXX tr_seri(i,k,iq) = tr_seri(i,k,iq) + d_tr(i,k,iq)2656 cXXX ENDDO2657 cXXX ENDDO2658 WRITE(iqn,'(i2.2)') iq2659 CALL minmaxqfi(tr_seri(1,1,iq),0.,1.e33,'couche lim iq='//iqn)2660 ENDDO2661 CMAF modif pour garder info du nombre de traceurs auxquels2662 C la physique s'applique2663 ELSE2664 CMAF modif pour garder info du nombre de traceurs auxquels2665 C la physique s'applique2666 2631 C 2667 call phytrac ( rnpb,2632 call phytrac (iflag_con,rnpb, 2668 2633 I itap, julien, gmtime, 2669 2634 I debut,lafin, … … 2680 2645 I ibas_con, 2681 2646 I pmflxr,pmflxs,prfl,psfl, 2682 #ifdef INCA 2647 I da,phi,mp, 2648 I upwd,dnwd, 2649 #ifdef INCA_CH4 2683 2650 I flxmass_w, 2684 2651 #endif 2685 2652 O tr_seri) 2686 ENDIF2687 2653 2688 2654 IF (offline) THEN
Note: See TracChangeset
for help on using the changeset viewer.