FV3 Bundle
gsw_ct_from_t.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_ct_from_t (sa, t, p)
3 !==========================================================================
4 !
5 ! Calculates Conservative Temperature from in-situ temperature
6 !
7 ! sa : Absolute Salinity [g/kg]
8 ! t : in-situ temperature [deg C]
9 ! p : sea pressure [dbar]
10 !
11 ! gsw_ct_from_t : Conservative Temperature [deg C]
12 !--------------------------------------------------------------------------
13 
15 
16 use gsw_mod_kinds
17 
18 implicit none
19 
20 real (r8), intent(in) :: sa, t, p
21 
22 real (r8) :: gsw_ct_from_t
23 
24 real (r8) :: pt0
25 
26 pt0 = gsw_pt0_from_t(sa,t,p)
28 
29 return
30 end function
31 
32 !--------------------------------------------------------------------------
elemental real(r8) function gsw_ct_from_t(sa, t, p)