FV3 Bundle
gsw_alpha_wrt_t_exact.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_alpha_wrt_t_exact (sa, t, p)
3 !==========================================================================
4 !
5 ! Calculates thermal expansion coefficient of seawater with respect to
6 ! in-situ temperature
7 !
8 ! sa : Absolute Salinity [g/kg]
9 ! t : insitu temperature [deg C]
10 ! p : sea pressure [dbar]
11 !
12 ! gsw_alpha_wrt_t_exact : thermal expansion coefficient [1/K]
13 ! wrt (in-situ) temperature
14 !--------------------------------------------------------------------------
15 
16 use gsw_mod_toolbox, only : gsw_gibbs
17 
18 use gsw_mod_kinds
19 
20 implicit none
21 
22 real (r8), intent(in) :: sa, t, p
23 
24 real (r8) :: gsw_alpha_wrt_t_exact
25 
26 integer, parameter :: n0=0, n1=1
27 
28 gsw_alpha_wrt_t_exact = gsw_gibbs(n0,n1,n1,sa,t,p)/gsw_gibbs(n0,n0,n1,sa,t,p)
29 
30 return
31 end function
elemental real(r8) function gsw_alpha_wrt_t_exact(sa, t, p)