Ignore:
Timestamp:
Jul 22, 2024, 9:29:09 PM (4 months ago)
Author:
abarral
Message:

Replace most uses of CPP_DUST by the corresponding logical defined in lmdz_cppkeys_wrapper.F90
Convert several files from .F to .f90 to allow Dust to compile w/o rrtm/ecrad
Create lmdz_yoerad.f90
(lint) Remove "!" on otherwise empty line

File:
1 edited

Legend:

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

    r5093 r5099  
    11!-------------------------------------------------------------------------------
    2 !
     2
    33!     ######################################
    44REAL      FUNCTION QSAT_SEAWATER(PT,PP)
    55!     ######################################
    6 !
     6
    77!!****  *QSATW * - function to compute saturation vapor humidity from
    88!!                 temperature
     
    1212!       The purpose of this function is to compute the saturation vapor
    1313!     pressure from temperature over saline seawater
    14 !     
    15 !
     14
     15
    1616!!**  METHOD
    1717!!    ------
     
    5959!!      Original    6/04/2005
    6060!-------------------------------------------------------------------------------
    61 !
     61
    6262!*       0.    DECLARATIONS
    6363!              ------------
    64 !
     64
    6565USE MODD_CSTS
    6666USE dimphy
    6767USE indice_sol_mod
    68 !
     68
    6969IMPLICIT NONE
    70 !
     70
    7171!*       0.1   Declarations of arguments and results
    72 !
    73 !
     72
    7473
    7574REAL, DIMENSION(klon), INTENT(IN)                :: PT     ! Temperature
     
    8281                                                        ! water (kg/kg)
    8382
    84 !
    8583!*       0.2   Declarations of local variables
    86 !
     84
    8785REAL, DIMENSION(SIZE(PT))                   :: ZFOES  ! saturation vapor
    8886                                                        ! pressure
    8987                                                        ! (Pascal)
    90 !
     88
    9189REAL, DIMENSION(SIZE(PT))                   :: ZWORK1
    9290REAL                                        :: ZWORK2
    9391!REAL(KIND=JPRB) :: ZHOOK_HANDLE
    9492!-------------------------------------------------------------------------------
    95 !
     93
    9694!IF (LHOOK) CALL DR_HOOK('MODE_THERMOS:QSATSEAW_1D',0,ZHOOK_HANDLE)
    97 !
     95
    9896!ZFOES  = 1 !PSAT(PT(:))
    9997!ZFOES  = 0.98*ZFOES
     
    103101! impact on the computation of surface latent heat flux under strong wind
    104102! conditions (Zeng et al, 1998).
    105 !
     103
    106104ZWORK1 = ZFOES/PP
    107105ZWORK2    = XRD/XRV
    108 !
     106
    109107!*       2.    COMPUTE SATURATION HUMIDITY
    110108!              ---------------------------
    111 !
     109
    112110PQSAT = ZWORK2*ZWORK1 / (1.+(ZWORK2-1.)*ZWORK1)
    113 !
     111
    114112!IF (LHOOK) CALL DR_HOOK('MODE_THERMOS:QSATSEAW_1D',1,ZHOOK_HANDLE)
    115113!-------------------------------------------------------------------------------
    116 !
     114
    117115END FUNCTION QSAT_SEAWATER
    118 !
     116
    119117!-------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.