Ignore:
Timestamp:
Jul 24, 2024, 4:23:34 PM (4 months ago)
Author:
abarral
Message:

rename modules properly lmdz_*
move some unused files to obsolete/
(lint) uppercase fortran keywords

File:
1 edited

Legend:

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

    r5116 r5117  
    1818    USE dimphy, ONLY: klon
    1919    USE indice_sol_mod
    20     use sens_heat_rain_m, ONLY: sens_heat_rain
     20    USE sens_heat_rain_m, ONLY: sens_heat_rain
    2121
    2222    INCLUDE "clesphys.h"
     
    7777    REAL,                  INTENT(IN)    :: fqsat ! correction factor on qsat (generally 0.98 over salty water, 1 everywhere else)
    7878
    79     real, intent(in), optional:: rhoa(:) ! (knon)
     79    REAL, INTENT(IN), optional:: rhoa(:) ! (knon)
    8080    ! density of moist air  (kg / m3)
    8181
     
    8989    REAL, DIMENSION(klon), INTENT(OUT)   :: tsurf_new, evap, fluxsens, fluxlat
    9090    REAL, DIMENSION(klon), INTENT(OUT)   :: dflux_s, dflux_l
    91     REAL, intent(out), OPTIONAL:: sens_prec_liq(:), sens_prec_sol(:) ! (knon)
     91    REAL, INTENT(OUT), OPTIONAL:: sens_prec_liq(:), sens_prec_sol(:) ! (knon)
    9292    REAL, DIMENSION(klon), OPTIONAL      :: lat_prec_liq, lat_prec_sol
    9393
     
    142142    dflux_s = 0.
    143143    dflux_l = 0.
    144     if (PRESENT(lat_prec_liq)) lat_prec_liq = 0.
    145     if (PRESENT(lat_prec_sol)) lat_prec_sol = 0.
     144    IF (PRESENT(lat_prec_liq)) lat_prec_liq = 0.
     145    IF (PRESENT(lat_prec_sol)) lat_prec_sol = 0.
    146146
    147147! zx_qs = qsat en kg/kg
     
    258258
    259259! calcul de l'enthalpie des precipitations liquides et solides
    260        if (PRESENT(sens_prec_liq)) sens_prec_liq(i) &
     260       IF (PRESENT(sens_prec_liq)) sens_prec_liq(i) &
    261261            = - sens_heat_rain(precip_rain(i) + precip_snow(i), t1lay(i), &
    262262            q1lay(i), rhoa(i), rlvtt, tsurf_new(i), ps(i))
    263        if (PRESENT(sens_prec_sol)) sens_prec_sol(i) = 0.
     263       IF (PRESENT(sens_prec_sol)) sens_prec_sol(i) = 0.
    264264       ! On calcule par rapport a T=0
    265265       !! sens_prec_liq(i) = rcw * (t1lay(i) - RTT) * precip_rain(i)
    266266       !! sens_prec_sol(i) = rcs * (t1lay(i) - RTT) * precip_snow(i)
    267267
    268        if (PRESENT(lat_prec_liq))                    &
     268       IF (PRESENT(lat_prec_liq))                    &
    269269         lat_prec_liq(i) =  precip_rain(i) * (RLVTT - RLVTT)
    270        if (PRESENT(lat_prec_sol))                    &
     270       IF (PRESENT(lat_prec_sol))                    &
    271271         lat_prec_sol(i) = precip_snow(i) * (RLSTT - RLVTT)
    272272    ENDDO
Note: See TracChangeset for help on using the changeset viewer.