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

Diff of /trunk/Sources/phylmd/clqh.f

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

revision 98 by guez, Tue May 13 17:23:16 2014 UTC revision 101 by guez, Mon Jul 7 17:45:21 2014 UTC
# Line 5  module clqh_m Line 5  module clqh_m
5  contains  contains
6    
7    SUBROUTINE clqh(dtime, itime, jour, debut, rlat, knon, nisurf, knindex, &    SUBROUTINE clqh(dtime, itime, jour, debut, rlat, knon, nisurf, knindex, &
8         pctsrf, soil_model, tsoil, qsol, ok_veget, ocean, rmu0, co2_ppm, &         pctsrf, tsoil, qsol, rmu0, co2_ppm, rugos, rugoro, u1lay, &
9         rugos, rugoro, u1lay, v1lay, coef, t, q, ts, paprs, pplay, delp, &         v1lay, coef, t, q, ts, paprs, pplay, delp, radsol, albedo, alblw, &
10         radsol, albedo, alblw, snow, qsurf, precip_rain, precip_snow, fder, &         snow, qsurf, precip_rain, precip_snow, fder, swnet, fluxlat, &
11         swnet, fluxlat, pctsrf_new, agesno, d_t, d_q, d_ts, z0_new, flux_t, &         pctsrf_new, agesno, d_t, d_q, d_ts, z0_new, flux_t, flux_q, dflux_s, &
12         flux_q, dflux_s, dflux_l, fqcalving, ffonte, run_off_lic_0, flux_o, &         dflux_l, fqcalving, ffonte, run_off_lic_0, flux_o, flux_g)
        flux_g, tslab, seaice)  
13    
14      ! Author: Z. X. Li (LMD/CNRS)      ! Author: Z. X. Li (LMD/CNRS)
15      ! Date: 1993/08/18      ! Date: 1993/08/18
# Line 47  contains Line 46  contains
46      REAL alblw(klon)      REAL alblw(klon)
47      REAL snow(klon)         ! hauteur de neige      REAL snow(klon)         ! hauteur de neige
48      REAL qsurf(klon)         ! humidite de l'air au dessus de la surface      REAL qsurf(klon)         ! humidite de l'air au dessus de la surface
49      real precip_rain(klon), precip_snow(klon)  
50        real, intent(in):: precip_rain(klon)
51        ! liquid water mass flux (kg/m2/s), positive down
52    
53        real, intent(in):: precip_snow(klon)
54        ! solid water mass flux (kg/m2/s), positive down
55    
56      REAL agesno(klon)      REAL agesno(klon)
57      REAL rugoro(klon)      REAL rugoro(klon)
58      REAL run_off_lic_0(klon)! runof glacier au pas de temps precedent      REAL run_off_lic_0(klon)! runof glacier au pas de temps precedent
59      integer, intent(in):: jour            ! jour de l'annee en cours      integer, intent(in):: jour            ! jour de l'annee en cours
60      real, intent(in):: rmu0(klon)         ! cosinus de l'angle solaire zenithal      real, intent(in):: rmu0(klon)         ! cosinus de l'angle solaire zenithal
61      real rugos(klon)        ! rugosite      real rugos(klon)        ! rugosite
62      integer knindex(klon)      integer, intent(in):: knindex(klon)
63      real, intent(in):: pctsrf(klon, nbsrf)      real, intent(in):: pctsrf(klon, nbsrf)
64      real, intent(in):: rlat(klon)      real, intent(in):: rlat(klon)
65      logical ok_veget      REAL, intent(in):: co2_ppm            ! taux CO2 atmosphere
     REAL co2_ppm            ! taux CO2 atmosphere  
     character(len=*), intent(in):: ocean  
66    
67      REAL d_t(klon, klev)     ! incrementation de "t"      REAL d_t(klon, klev)     ! incrementation de "t"
68      REAL d_q(klon, klev)     ! incrementation de "q"      REAL d_q(klon, klev)     ! incrementation de "q"
# Line 76  contains Line 79  contains
79      ! Flux d'eau "perdue" par la surface et nécessaire pour que limiter la      ! Flux d'eau "perdue" par la surface et nécessaire pour que limiter la
80      ! hauteur de neige, en kg/m2/s      ! hauteur de neige, en kg/m2/s
81      REAL fqcalving(klon)      REAL fqcalving(klon)
82    
83      !IM "slab" ocean      !IM "slab" ocean
84      REAL tslab(klon)  !temperature du slab ocean (K) (OCEAN='slab  ')  
85      REAL seaice(klon) ! glace de mer en kg/m2      REAL, intent(out):: flux_o(klon) ! flux entre l'ocean et l'atmosphere W/m2
86      REAL flux_o(klon) ! flux entre l'ocean et l'atmosphere W/m2  
87      REAL flux_g(klon) ! flux entre l'ocean et la glace de mer W/m2      REAL, intent(out):: flux_g(klon)
88        ! flux entre l'ocean et la glace de mer W/m2
89    
90      INTEGER i, k      INTEGER i, k
91      REAL zx_cq(klon, klev)      REAL zx_cq(klon, klev)
# Line 116  contains Line 121  contains
121      real swnet(klon), swdown(klon)      real swnet(klon), swdown(klon)
122      real p1lay(klon)      real p1lay(klon)
123      !$$$C PB ajout pour soil      !$$$C PB ajout pour soil
     LOGICAL, intent(in):: soil_model  
124      REAL tsoil(klon, nsoilmx)      REAL tsoil(klon, nsoilmx)
125      REAL qsol(klon)  
126        REAL, intent(inout):: qsol(klon)
127        ! column-density of water in soil, in kg m-2
128    
129      ! Parametres de sortie      ! Parametres de sortie
130      real fluxsens(klon), fluxlat(klon)      real fluxsens(klon), fluxlat(klon)
# Line 273  contains Line 279  contains
279      endif      endif
280      ccanopy = co2_ppm      ccanopy = co2_ppm
281    
282      CALL interfsurf_hq(itime, dtime, jour, rmu0, iim, jjm, &      CALL interfsurf_hq(itime, dtime, jour, rmu0, nisurf, knon, knindex, &
283           nisurf, knon, knindex, pctsrf, rlat, debut, &           pctsrf, rlat, debut, nsoilmx, tsoil, qsol, u1lay, v1lay, &
284           ok_veget, soil_model, nsoilmx, tsoil, qsol,  u1lay, v1lay, &           temp_air, spechum, tq_cdrag, petAcoef, peqAcoef, petBcoef, peqBcoef, &
285           temp_air, spechum, tq_cdrag, petAcoef, peqAcoef, &           precip_rain, precip_snow, fder, rugos, rugoro, snow, qsurf, ts, &
286           petBcoef, peqBcoef, precip_rain, precip_snow, &           p1lay, psref, radsol, evap, fluxsens, fluxlat, dflux_l, dflux_s, &
287           fder, rugos, rugoro, &           tsurf_new, alb_new, alblw, z0_new, pctsrf_new, agesno, fqcalving, &
288           snow, qsurf, ts, p1lay, psref, radsol, ocean, &           ffonte, run_off_lic_0, flux_o, flux_g)
          evap, fluxsens, fluxlat, dflux_l, dflux_s, tsurf_new, &  
          alb_new, alblw, z0_new, pctsrf_new, agesno, fqcalving, &  
          ffonte, run_off_lic_0, flux_o, flux_g, tslab, seaice)  
289    
290      do i = 1, knon      do i = 1, knon
291         flux_t(i, 1) = fluxsens(i)         flux_t(i, 1) = fluxsens(i)

Legend:
Removed from v.98  
changed lines
  Added in v.101

  ViewVC Help
Powered by ViewVC 1.1.21