Ignore:
Timestamp:
Jul 29, 2024, 11:01:04 PM (5 months ago)
Author:
abarral
Message:

Put YOMCST.h into modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin/sens_heat_rain_m.F90

    r5119 r5144  
    2525
    2626#ifdef IN_LMDZ
    27     include "YOMCST.h"
    28     ! for eps_w
     27    USE lmdz_yomcst, ONLY: eps_w
    2928#endif
    3029
    31     REAL, INTENT(IN):: rain ! rain mass flux, in kg m-2 s-1
    32     REAL, INTENT(IN):: t ! air temperature at 10 m, in K
    33     REAL, INTENT(IN):: q ! specific humidity at 10 m
    34     REAL, INTENT(IN):: rhoa ! density of moist air  (kg / m3)
    35     REAL, INTENT(IN):: xlv ! latent heat of evaporation (J / kg)
    36     REAL, INTENT(IN):: t_int ! interface temperature, in K
    37     REAL, INTENT(IN):: p ! surface pressure, in Pa
     30    REAL, INTENT(IN) :: rain ! rain mass flux, in kg m-2 s-1
     31    REAL, INTENT(IN) :: t ! air temperature at 10 m, in K
     32    REAL, INTENT(IN) :: q ! specific humidity at 10 m
     33    REAL, INTENT(IN) :: rhoa ! density of moist air  (kg / m3)
     34    REAL, INTENT(IN) :: xlv ! latent heat of evaporation (J / kg)
     35    REAL, INTENT(IN) :: t_int ! interface temperature, in K
     36    REAL, INTENT(IN) :: p ! surface pressure, in Pa
    3837
    3938    ! Local:
    40    
     39
    4140    REAL es ! saturation pressure of wator vapor, in Pa
    4241    REAL alfac ! wet bulb factor
     
    5857    t_celsius = t - 273.15
    5958    dtmp = (1. + 3.309e-3 * t_celsius - 1.44e-6 * t_celsius**2) * 0.02411 &
    60          / (rhoa * cpa)
     59            / (rhoa * cpa)
    6160
    6261    ! Gosnell 1995 k0991, equation (11):
    63     alfac =  1. / (1. + (wetc * xlv * dwat) / (cpa * dtmp))
     62    alfac = 1. / (1. + (wetc * xlv * dwat) / (cpa * dtmp))
    6463
    6564    ! Gosnell 1995 k0991, equation (12):
    66     sens_heat_rain =  rain * alfac * cpw * (t_int - t + (q_int - q) * xlv / cpa)
     65    sens_heat_rain = rain * alfac * cpw * (t_int - t + (q_int - q) * xlv / cpa)
    6766
    6867  END FUNCTION sens_heat_rain
    69  
     68
    7069END MODULE sens_heat_rain_m
Note: See TracChangeset for help on using the changeset viewer.