Ignore:
Timestamp:
Jul 24, 2024, 2:54:37 PM (4 months ago)
Author:
abarral
Message:

rename modules properly lmdz_*
move ismin, ismax, minmax into new lmdz_libmath.f90
(lint) uppercase fortran keywords

Location:
LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin
Files:
10 edited

Legend:

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

    r5113 r5116  
    88       u, t_ocean_1, s1, rain, hf, hlb, rnl, tau, rhoa, xlv, rf, dtime, rns)
    99
    10     use config_ocean_skin_m, only: jwarm, jcool, rain_effect
    11     use Microlayer_m, only: Microlayer
    12     use mom_flux_rain_m, only: mom_flux_rain
    13     use Near_Surface_m, only: Near_Surface, depth
    14     use therm_expans_m, only: therm_expans
     10    use config_ocean_skin_m, ONLY: jwarm, jcool, rain_effect
     11    use Microlayer_m, ONLY: Microlayer
     12    use mom_flux_rain_m, ONLY: mom_flux_rain
     13    use Near_Surface_m, ONLY: Near_Surface, depth
     14    use therm_expans_m, ONLY: therm_expans
    1515
    1616    real, intent(out):: tkt(:)
     
    9797    !-------------------------------------------------------------------
    9898
    99     if (rain_effect) then
     99    if (rain_effect) THEN
    100100       taur = mom_flux_rain(u, rain)
    101101    else
     
    106106    if (jwarm .or. jcool) tau_with_min = tau + tau_0 * (1. - exp(- tau_0 / tau))
    107107
    108     if (Jwarm) then
    109        if (rain_effect) then
     108    if (Jwarm) THEN
     109       if (rain_effect) THEN
    110110          CALL Near_Surface(al, t_subskin, s_subskin, ds_ns, dt_ns, &
    111111               tau_with_min, taur, hlb, rhoa, xlv, dtime, t_ocean_1, s1, rain, &
     
    122122    end if
    123123
    124     if (Jcool) then
     124    if (Jcool) THEN
    125125       ! First guess:
    126126       tkt = 0.001
     
    131131          dels = rns * (0.065 + 11. * tkt - 6.6e-5 / tkt &
    132132               * (1. - exp(- tkt / 8e-4))) ! equation 16 Ohlmann
    133           if (rain_effect) then
     133          if (rain_effect) THEN
    134134             CALL Microlayer(dter, dser, tkt, tks, hlb, tau_with_min, &
    135135                  s_subskin, al, xlv, taur, rf, rain, &
  • LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin/config_ocean_skin_m.F90

    r5113 r5116  
    3030
    3131#ifdef IN_LMDZ
    32     use lmdz_ioipsl_getin_p, only: getin_p
    33     use lmdz_assert, only: assert
     32    use lmdz_ioipsl_getin_p, ONLY: getin_p
     33    use lmdz_assert, ONLY: assert
    3434#endif
    3535
     
    4545    CALL assert(activate_ocean_skin >= 0 .and. activate_ocean_skin <= 2, &
    4646         "config_ocean_skin bad value of activate_ocean_skin")
    47     if (activate_ocean_skin >= 1) then
     47    if (activate_ocean_skin >= 1) THEN
    4848       CALL getin_p("flag_ocean_skin", flag_ocean_skin)
    4949       CALL getin_p("depth_1", depth_1)
    5050    end if
    5151#else
    52     write(unit = *, nml = config_ocean_skin_nml)
     52    WRITE(unit = *, nml = config_ocean_skin_nml)
    5353    print *, "Enter namelist config_ocean_skin_nml."
    5454    read(unit = *, nml = config_ocean_skin_nml)
    55     write(unit = *, nml = config_ocean_skin_nml)
     55    WRITE(unit = *, nml = config_ocean_skin_nml)
    5656#endif
    5757
  • LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin/esat_m.F90

    r5113 r5116  
    1818         * exp(17.502 * (T - 273.15) / (T - 32.18))
    1919
    20   end function esat
     20  END FUNCTION esat
    2121
    2222end module esat_m
  • LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin/fv_m.F90

    r5113 r5116  
    3030    !---------------------------------------------------------------------
    3131
    32     if (rain > 0.) then
     32    if (rain > 0.) THEN
    3333       rc = 0.4 ! mm
    3434       z_mm = z * 1000. ! mm and <0
     
    4242    endif
    4343
    44   end function fV
     44  END FUNCTION fV
    4545
    4646end module fv_m
  • LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin/microlayer_m.F90

    r5103 r5116  
    1010    ! H. Bellenger 2016
    1111
    12     use const, only: beta, cpw, grav, rhow
    13     use fv_m, only: fv
     12    use const, ONLY: beta, cpw, grav, rhow
     13    use fv_m, ONLY: fv
    1414
    1515    real, intent(out):: dter(:)
  • LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin/mom_flux_rain_m.F90

    r5113 r5116  
    2020    ! as in paragraph 3.a, maybe adequate if u is the wind at 10 m)
    2121
    22   end function mom_flux_rain
     22  END FUNCTION mom_flux_rain
    2323 
    2424end module mom_flux_rain_m
  • LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin/near_surface_m.F90

    r5103 r5116  
    1313    ! Hugo Bellenger, 2016
    1414
    15     use config_ocean_skin_m, only: depth_1
    16     use const, only: beta, cpw, grav, rhow, von
    17     use Phiw_m, only: Phiw
    18     use therm_expans_m, only: therm_expans
     15    use config_ocean_skin_m, ONLY: depth_1
     16    use const, ONLY: beta, cpw, grav, rhow, von
     17    use Phiw_m, ONLY: Phiw
     18    use therm_expans_m, ONLY: therm_expans
    1919
    2020    real, intent(out):: al(:) ! water thermal expansion coefficient (in K-1)
     
    9393    end where
    9494
    95     if (depth_1 < depth) then
     95    if (depth_1 < depth) THEN
    9696       correction = 1. - (depth_1 / depth)**eta
    9797       ! (neglecting microlayer thickness compared to depth_1 and depth)
  • LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin/phiw_m.F90

    r5113 r5116  
    1313    !----------------------------------------------
    1414
    15     if (zL < 0.) then
     15    if (zL < 0.) THEN
    1616       Phiw = (1. - 16. * zL)**(- 0.5)
    1717    else
     
    2020    end if
    2121
    22   end function Phiw
     22  END FUNCTION Phiw
    2323
    2424end module Phiw_m
  • LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin/sens_heat_rain_m.F90

    r5113 r5116  
    1818    ! OpenMP 5.0.
    1919
    20     use const, only: cpa, cpw, rgas
     20    use const, ONLY: cpa, cpw, rgas
    2121#ifndef IN_LMDZ
    22     use const, only: eps_w
     22    use const, ONLY: eps_w
    2323#endif
    24     use esat_m, only: esat
     24    use esat_m, ONLY: esat
    2525
    2626#ifdef IN_LMDZ
     
    6666    sens_heat_rain =  rain * alfac * cpw * (t_int - t + (q_int - q) * xlv / cpa)
    6767
    68   end function sens_heat_rain
     68  END FUNCTION sens_heat_rain
    6969 
    7070end module sens_heat_rain_m
  • LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin/therm_expans_m.F90

    r5113 r5116  
    1515    therm_expans = 2.1e-5 * (t - 269.95)**0.79
    1616
    17   end function therm_expans
     17  END FUNCTION therm_expans
    1818
    1919end module therm_expans_m
Note: See TracChangeset for help on using the changeset viewer.