Changeset 5202 for LMDZ6/branches/cirrus/libf/phylmd/lmdz_call_atke.F90
- Timestamp:
- Sep 20, 2024, 12:32:04 PM (7 weeks ago)
- Location:
- LMDZ6/branches/cirrus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/cirrus
- Property svn:mergeinfo changed
-
LMDZ6/branches/cirrus/libf/phylmd/lmdz_call_atke.F90
r4881 r5202 8 8 contains 9 9 10 subroutine call_atke(dtime,ngrid,nlay, cdrag_uv,cdrag_t,u_surf,v_surf,temp_surf, &10 subroutine call_atke(dtime,ngrid,nlay,nsrf,ni,cdrag_uv,cdrag_t,u_surf,v_surf,temp_surf, & 11 11 wind_u,wind_v,temp,qvap,play,pinterf, & 12 12 tke,eps,Km_out,Kh_out) … … 16 16 17 17 USE lmdz_atke_turbulence_ini, ONLY : iflag_num_atke, rg, rd 18 USE phys_local_var_mod, ONLY: tke_shear, tke_buoy, tke_trans 18 19 19 20 implicit none … … 26 27 INTEGER, INTENT(IN) :: ngrid ! number of horizontal index (flat grid) 27 28 INTEGER, INTENT(IN) :: nlay ! number of vertical index 29 INTEGER, INTENT(IN) :: nsrf ! surface tile index 30 INTEGER, DIMENSION(ngrid), INTENT(IN) :: ni ! array of indices to move from knon to klon arrays 28 31 29 32 … … 50 53 51 54 55 REAL, DIMENSION(ngrid,nlay+1) :: tke_shear_term,tke_buoy_term,tke_trans_term 52 56 REAL, DIMENSION(ngrid,nlay) :: wind_u_predict, wind_v_predict 53 57 REAL, DIMENSION(ngrid) :: wind1 54 INTEGER i 58 INTEGER i,j,k 55 59 56 60 57 61 call atke_compute_km_kh(ngrid,nlay,dtime,& 58 62 wind_u,wind_v,temp,qvap,play,pinterf,cdrag_uv,& 59 tke,eps, Km_out,Kh_out)63 tke,eps,tke_shear_term,tke_buoy_term,tke_trans_term,Km_out,Kh_out) 60 64 61 65 … … 76 80 call atke_compute_km_kh(ngrid,nlay,dtime,& 77 81 wind_u_predict,wind_v_predict,temp,qvap,play,pinterf,cdrag_uv, & 78 tke,eps, Km_out,Kh_out)82 tke,eps,tke_shear_term,tke_buoy_term,tke_trans_term,Km_out,Kh_out) 79 83 80 84 end if 81 85 82 86 87 ! Diagnostics of tke loss/source terms 83 88 89 DO k=1,nlay+1 90 DO i=1,ngrid 91 j=ni(i) 92 tke_shear(j,k,nsrf)=tke_shear_term(i,k) 93 tke_buoy(j,k,nsrf)=tke_buoy_term(i,k) 94 tke_trans(j,k,nsrf)=tke_trans_term(i,k) 95 ENDDO 96 ENDDO 84 97 85 98
Note: See TracChangeset
for help on using the changeset viewer.