FV3 Bundle
gsw_entropy_part_zerop.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_entropy_part_zerop (sa, pt0)
3 !==========================================================================
4 !
5 ! entropy part evaluated at the sea surface
6 !
7 ! sa : Absolute Salinity [g/kg]
8 ! pt0 : insitu temperature [deg C]
9 !
10 ! gsw_entropy_part_zerop : entropy part at the sea surface
11 !--------------------------------------------------------------------------
12 
14 
15 use gsw_mod_kinds
16 
17 implicit none
18 
19 real (r8), intent(in) :: sa, pt0
20 
21 real (r8) :: gsw_entropy_part_zerop
22 
23 real (r8) :: x2, x, y, g03, g08
24 
25 x2 = gsw_sfac*sa
26 x = sqrt(x2)
27 y = pt0*0.025_r8
28 
29 g03 = y*(-24715.571866078_r8 + y*(2210.2236124548363_r8 + &
30  y*(-592.743745734632_r8 + y*(290.12956292128547_r8 + &
31  y*(-113.90630790850321_r8 + y*21.35571525415769_r8)))))
32 
33 g08 = x2*(x*(x*(y*(-137.1145018408982_r8 + y*(148.10030845687618_r8 + &
34  y*(-68.5590309679152_r8 + 12.4848504784754_r8*y)))) + &
35  y*(-86.1329351956084_r8 + y*(-30.0682112585625_r8 + y*3.50240264723578_r8))) + &
36  y*(1760.062705994408_r8 + y*(-675.802947790203_r8 + &
37  y*(365.7041791005036_r8 + y*(-108.30162043765552_r8 + 12.78101825083098_r8*y)))))
38 
39 gsw_entropy_part_zerop = -(g03 + g08)*0.025_r8
40 
41 return
42 end function
43 
44 !--------------------------------------------------------------------------
elemental real(r8) function gsw_entropy_part_zerop(sa, pt0)