/[lmdze]/trunk/phylmd/calltherm.f
ViewVC logotype

Diff of /trunk/phylmd/calltherm.f

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 254 by guez, Mon Feb 5 10:39:38 2018 UTC revision 322 by guez, Thu Jan 24 16:17:39 2019 UTC
# Line 4  module calltherm_m Line 4  module calltherm_m
4    
5  contains  contains
6    
7    subroutine calltherm(dtime, pplay, paprs, pphi, u_seri, v_seri, t_seri, &    subroutine calltherm(pplay, paprs, pphi, u_seri, v_seri, t_seri, q_seri, &
8         q_seri, d_u_ajs, d_v_ajs, d_t_ajs, d_q_ajs, fm_therm, entr_therm)         d_u_ajs, d_v_ajs, d_t_ajs, d_q_ajs, fm_therm, entr_therm)
9    
10      ! From LMDZ4/libf/phylmd/calltherm.F, version 1.2 2004/12/10 11:27:46      ! From LMDZ4/libf/phylmd/calltherm.F, version 1.2 2004/12/10 11:27:46
     ! Thermiques  
11    
12      USE dimphy, ONLY: klev, klon      ! Thermiques.
13    
14        use comconst, only: dtphys
15      USE ctherm, ONLY: l_mix_thermals, nsplit_thermals, r_aspect_thermals, &      USE ctherm, ONLY: l_mix_thermals, nsplit_thermals, r_aspect_thermals, &
16           tho_thermals, w2di_thermals           tho_thermals, w2di_thermals
17        USE dimphy, ONLY: klev, klon
18      use thermcell_m, only: thermcell      use thermcell_m, only: thermcell
19    
     REAL, intent(in):: dtime  
20      REAL, intent(in):: pplay(klon, klev)      REAL, intent(in):: pplay(klon, klev)
21      REAL, intent(in):: paprs(klon, klev+1)      REAL, intent(in):: paprs(klon, klev+1)
22      REAL, intent(in):: pphi(klon, klev)      REAL, intent(in):: pphi(klon, klev)
# Line 57  contains Line 58  contains
58         enddo         enddo
59      enddo      enddo
60    
61      zdt=dtime/real(nsplit_thermals)      zdt=dtphys/real(nsplit_thermals)
62      do isplit = 1, nsplit_thermals      do isplit = 1, nsplit_thermals
63         CALL thermcell(klon, klev, zdt, pplay, paprs, pphi, u_seri, v_seri, &         CALL thermcell(klon, klev, zdt, pplay, paprs, pphi, u_seri, v_seri, &
64              t_seri, q_seri, d_u_the, d_v_the, d_t_the, d_q_the, zfm_therm, &              t_seri, q_seri, d_u_the, d_v_the, d_t_the, d_q_the, zfm_therm, &
# Line 65  contains Line 66  contains
66              tho_thermals)              tho_thermals)
67    
68         ! transformation de la derivee en tendance         ! transformation de la derivee en tendance
69         d_t_the=d_t_the*dtime/real(nsplit_thermals)         d_t_the=d_t_the*dtphys/real(nsplit_thermals)
70         d_u_the=d_u_the*dtime/real(nsplit_thermals)         d_u_the=d_u_the*dtphys/real(nsplit_thermals)
71         d_v_the=d_v_the*dtime/real(nsplit_thermals)         d_v_the=d_v_the*dtphys/real(nsplit_thermals)
72         d_q_the=d_q_the*dtime/real(nsplit_thermals)         d_q_the=d_q_the*dtphys/real(nsplit_thermals)
73         fm_therm=fm_therm +zfm_therm/real(nsplit_thermals)         fm_therm=fm_therm +zfm_therm/real(nsplit_thermals)
74         entr_therm=entr_therm +zentr_therm/real(nsplit_thermals)         entr_therm=entr_therm +zentr_therm/real(nsplit_thermals)
75         fm_therm(:, klev+1)=0.         fm_therm(:, klev+1)=0.

Legend:
Removed from v.254  
changed lines
  Added in v.322

  ViewVC Help
Powered by ViewVC 1.1.21