FV3 Bundle
gsw_latentheat_evap_ct.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_latentheat_evap_ct (sa, ct)
3 !==========================================================================
4 !
5 ! Calculates latent heat, or enthalpy, of evaporation.
6 !
7 ! sa : Absolute Salinity [g/kg]
8 ! ct : Conservative Temperature [deg C]
9 !
10 ! gsw_latentheat_evaporation : latent heat of evaporation [J/kg]
11 !--------------------------------------------------------------------------
12 
14 
15 use gsw_mod_kinds
16 
17 implicit none
18 
19 real (r8), intent(in) :: sa, ct
20 
21 real (r8) :: gsw_latentheat_evap_ct
22 
23 real (r8), parameter :: c0 = 2.499065844825125e6_r8
24 real (r8), parameter :: c1 = -1.544590633515099e-1_r8
25 real (r8), parameter :: c2 = -9.096800915831875e4_r8
26 real (r8), parameter :: c3 = 1.665513670736000e2_r8
27 real (r8), parameter :: c4 = 4.589984751248335e1_r8
28 real (r8), parameter :: c5 = 1.894281502222415e1_r8
29 real (r8), parameter :: c6 = 1.192559661490269e3_r8
30 real (r8), parameter :: c7 = -6.631757848479068e3_r8
31 real (r8), parameter :: c8 = -1.104989199195898e2_r8
32 real (r8), parameter :: c9 = -1.207006482532330e3_r8
33 real (r8), parameter :: c10 = -3.148710097513822e3_r8
34 real (r8), parameter :: c11 = 7.437431482069087e2_r8
35 real (r8), parameter :: c12 = 2.519335841663499e3_r8
36 real (r8), parameter :: c13 = 1.186568375570869e1_r8
37 real (r8), parameter :: c14 = 5.731307337366114e2_r8
38 real (r8), parameter :: c15 = 1.213387273240204e3_r8
39 real (r8), parameter :: c16 = 1.062383995581363e3_r8
40 real (r8), parameter :: c17 = -6.399956483223386e2_r8
41 real (r8), parameter :: c18 = -1.541083032068263e3_r8
42 real (r8), parameter :: c19 = 8.460780175632090e1_r8
43 real (r8), parameter :: c20 = -3.233571307223379e2_r8
44 real (r8), parameter :: c21 = -2.031538422351553e2_r8
45 real (r8), parameter :: c22 = 4.351585544019463e1_r8
46 real (r8), parameter :: c23 = -8.062279018001309e2_r8
47 real (r8), parameter :: c24 = 7.510134932437941e2_r8
48 real (r8), parameter :: c25 = 1.797443329095446e2_r8
49 real (r8), parameter :: c26 = -2.389853928747630e1_r8
50 real (r8), parameter :: c27 = 1.021046205356775e2_r8
51 
52 real (r8) :: x, y
53 
54 x = sqrt(gsw_sfac*sa)
55 y = ct/40.0_r8
56 
57 gsw_latentheat_evap_ct = c0 + x*(c1 + c4*y + x*(c3 &
58  + y*(c7 + c12*y) + x*(c6 + y*(c11 + y*(c17 + c24*y)) &
59  + x*(c10 + y*(c16 + c23*y) + x*(c15 + c22*y + c21*x))))) &
60  + y*(c2 + y*(c5 + c8*x + y*(c9 + x*(c13 + c18*x) &
61  + y*(c14 + x*(c19 + c25*x) + y*(c20 + c26*x + c27*y)))))
62 
63 return
64 end function
65 
66 !--------------------------------------------------------------------------
elemental real(r8) function gsw_latentheat_evap_ct(sa, ct)