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

Diff of /trunk/phylmd/clqh.f

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

trunk/Sources/phylmd/clqh.f revision 222 by guez, Tue Apr 25 15:31:48 2017 UTC trunk/phylmd/clqh.f revision 266 by guez, Thu Apr 19 17:54:55 2018 UTC
# Line 5  module clqh_m Line 5  module clqh_m
5  contains  contains
6    
7    SUBROUTINE clqh(dtime, julien, debut, nisurf, knindex, tsoil, qsol, rmu0, &    SUBROUTINE clqh(dtime, julien, debut, nisurf, knindex, tsoil, qsol, rmu0, &
8         rugos, rugoro, u1lay, v1lay, coef, t, q, ts, paprs, pplay, delp, &         rugos, rugoro, u1lay, v1lay, coef, tq_cdrag, t, q, ts, paprs, pplay, &
9         radsol, albedo, snow, qsurf, precip_rain, precip_snow, fder, fluxlat, &         delp, radsol, albedo, snow, qsurf, precip_rain, precip_snow, fluxlat, &
10         pctsrf_new_sic, agesno, d_t, d_q, d_ts, z0_new, flux_t, flux_q, &         pctsrf_new_sic, agesno, d_t, d_q, d_ts, z0_new, flux_t, flux_q, &
11         dflux_s, dflux_l, fqcalving, ffonte, run_off_lic_0)         dflux_s, dflux_l, fqcalving, ffonte, run_off_lic_0)
12    
# Line 26  contains Line 26  contains
26      integer, intent(in):: knindex(:) ! (knon)      integer, intent(in):: knindex(:) ! (knon)
27      REAL, intent(inout):: tsoil(:, :) ! (knon, nsoilmx)      REAL, intent(inout):: tsoil(:, :) ! (knon, nsoilmx)
28    
29      REAL, intent(inout):: qsol(klon)      REAL, intent(inout):: qsol(:) ! (knon)
30      ! column-density of water in soil, in kg m-2      ! column-density of water in soil, in kg m-2
31    
32      real, intent(in):: rmu0(klon) ! cosinus de l'angle solaire zenithal      real, intent(in):: rmu0(klon) ! cosinus de l'angle solaire zenithal
33      real rugos(klon) ! rugosite      real rugos(klon) ! rugosite
34      REAL rugoro(klon)      REAL rugoro(klon)
     REAL u1lay(klon) ! vitesse u de la 1ere couche (m / s)  
     REAL v1lay(klon) ! vitesse v de la 1ere couche (m / s)  
35    
36      REAL, intent(in):: coef(:, :) ! (knon, klev)      REAL, intent(in):: u1lay(:), v1lay(:) ! (knon)
37        ! vitesse de la 1ere couche (m / s)
38    
39        REAL, intent(in):: coef(:, 2:) ! (knon, 2:klev)
40      ! Le coefficient d'echange (m**2 / s) multiplie par le cisaillement      ! Le coefficient d'echange (m**2 / s) multiplie par le cisaillement
41      ! du vent (dV / dz). La premiere valeur indique la valeur de Cdrag      ! du vent (dV / dz)
42      ! (sans unite).  
43        REAL, intent(in):: tq_cdrag(:) ! (knon) sans unite
44    
45      REAL t(klon, klev) ! temperature (K)      REAL t(klon, klev) ! temperature (K)
46      REAL q(klon, klev) ! humidite specifique (kg / kg)      REAL q(klon, klev) ! humidite specifique (kg / kg)
# Line 60  contains Line 62  contains
62      real, intent(in):: precip_snow(klon)      real, intent(in):: precip_snow(klon)
63      ! solid water mass flux (kg / m2 / s), positive down      ! solid water mass flux (kg / m2 / s), positive down
64    
     real, intent(inout):: fder(:) ! (knon)  
65      real, intent(out):: fluxlat(:) ! (knon)      real, intent(out):: fluxlat(:) ! (knon)
66      real, intent(in):: pctsrf_new_sic(:) ! (klon)      real, intent(in):: pctsrf_new_sic(:) ! (klon)
67      REAL, intent(inout):: agesno(:) ! (knon)      REAL, intent(inout):: agesno(:) ! (knon)
# Line 114  contains Line 115  contains
115      REAL zdelz      REAL zdelz
116    
117      real temp_air(klon), spechum(klon)      real temp_air(klon), spechum(klon)
118      real tq_cdrag(klon), petAcoef(klon), peqAcoef(klon)      real petAcoef(klon), peqAcoef(klon)
119      real petBcoef(klon), peqBcoef(klon)      real petBcoef(klon), peqBcoef(klon)
120      real p1lay(klon)      real p1lay(klon)
121    
# Line 237  contains Line 238  contains
238      peqAcoef(1:knon) = zx_cq(1:knon, 1)      peqAcoef(1:knon) = zx_cq(1:knon, 1)
239      petBcoef(1:knon) = zx_dh(1:knon, 1)      petBcoef(1:knon) = zx_dh(1:knon, 1)
240      peqBcoef(1:knon) = zx_dq(1:knon, 1)      peqBcoef(1:knon) = zx_dq(1:knon, 1)
     tq_cdrag(1:knon) =coef(:knon, 1)  
241      temp_air(1:knon) =t(1:knon, 1)      temp_air(1:knon) =t(1:knon, 1)
242      spechum(1:knon)=q(1:knon, 1)      spechum(1:knon)=q(1:knon, 1)
243      p1lay(1:knon) = pplay(1:knon, 1)      p1lay(1:knon) = pplay(1:knon, 1)
244    
245      CALL interfsurf_hq(dtime, julien, rmu0, nisurf, knindex, debut, tsoil, &      CALL interfsurf_hq(dtime, julien, rmu0, nisurf, knindex, debut, tsoil, &
246           qsol, u1lay, v1lay, temp_air, spechum, tq_cdrag, petAcoef, peqAcoef, &           qsol, u1lay, v1lay, temp_air, spechum, tq_cdrag(:knon), petAcoef, &
247           petBcoef, peqBcoef, precip_rain, precip_snow, fder, rugos, rugoro, &           peqAcoef, petBcoef, peqBcoef, precip_rain, precip_snow, rugos, &
248           snow, qsurf, ts, p1lay, psref, radsol, evap, flux_t, fluxlat, &           rugoro, snow, qsurf, ts, p1lay, psref, radsol, evap, flux_t, fluxlat, &
249           dflux_l, dflux_s, tsurf_new, albedo, z0_new, pctsrf_new_sic, agesno, &           dflux_l, dflux_s, tsurf_new, albedo, z0_new, pctsrf_new_sic, agesno, &
250           fqcalving, ffonte, run_off_lic_0)           fqcalving, ffonte, run_off_lic_0)
251    

Legend:
Removed from v.222  
changed lines
  Added in v.266

  ViewVC Help
Powered by ViewVC 1.1.21