source: LMDZ6/branches/Amaury_dev/libf/phylmd/Ocean_skin/esat_m.F90 @ 5113

Last change on this file since 5113 was 5113, checked in by abarral, 2 months ago

Rename modules in misc from *_mod > lmdz_*
Put cbrt.f90, ch*.f90, pch*.f90 in new lmdz_libmath_pch.f90

File size: 500 bytes
Line 
1module esat_m
2
3  IMPLICIT NONE
4
5contains
6
7  elemental real function esat(T, P)
8
9    ! Saturation vapor pressure of water in Pa. Buck, 1981,
10    ! J. Appl. Meteor. 20, 1527-1532, equation (8).
11
12    real, intent(in):: T ! temperature, in K
13    real, intent(in):: P ! air pressure, in Pa
14
15    !--------------------------------------------------------------------
16
17    esat = (1.0007 + 3.46e-8 * P) * 6.1121e2 &
18         * exp(17.502 * (T - 273.15) / (T - 32.18))
19
20  end function esat
21
22end module esat_m
Note: See TracBrowser for help on using the repository browser.