Changeset 3198 for LMDZ6/trunk/libf/phylmd/tend_to_tke.F90
- Timestamp:
- Feb 12, 2018, 1:24:03 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/tend_to_tke.F90
r3188 r3198 32 32 !************************************************************************************** 33 33 34 SUBROUTINE tend_to_tke(dt,plev,exner,temp,windu,windv,dt_a,du_a,dv_a, tke)34 SUBROUTINE tend_to_tke(dt,plev,exner,temp,windu,windv,dt_a,du_a,dv_a,pctsrf,tke) 35 35 36 36 USE dimphy, ONLY: klon, klev … … 53 53 REAL du_a(klon,klev) ! Zonal wind speed tendency [m/s], grid-cell average or for a one subsurface 54 54 REAL dv_a(klon,klev) ! Meridional wind speed tendency [m/s], grid-cell average or for a one subsurface 55 REAL pctsrf(klon,nbsrf+1) ! Turbulent Kinetic energy [m2/s2], grid-cell average or for a subsurface 55 56 56 57 ! Inputs/Outputs … … 119 120 120 121 121 DO isrf=1,n bsrf122 DO isrf=1,nsrf 122 123 DO k=1,klev 123 tke(:,k,isrf)= tke(:,k,isrf)+tendu(:,k)+tendv(:,k)+tendt(:,k) 124 tke(:,k,isrf)= max(tke(:,k,isrf),1.e-10) 124 DO i=1,klon 125 IF (pctsrf(i,isrf)>0.) THEN 126 tke(i,k,isrf)= tke(i,k,isrf)+tendu(i,k)+tendv(i,k)+tendt(i,k) 127 tke(i,k,isrf)= max(tke(i,k,isrf),1.e-10) 128 ENDIF 129 ENDDO 125 130 ENDDO 126 131 ENDDO 127 128 ! dtke_t(:,:)=tendt(:,:)129 ! dtke_u(:,:)=tendu(:,:)130 ! dtke_v(:,:)=tendv(:,:)131 132 132 133
Note: See TracChangeset
for help on using the changeset viewer.