FV3 Bundle
gsw_rho.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_rho (sa, ct, p)
3 !==========================================================================
4 !
5 ! Calculates in-situ density from Absolute Salinity and Conservative
6 ! Temperature, using the computationally-efficient expression for
7 ! specific volume in terms of SA, CT and p (Roquet et al., 2014).
8 !
9 ! Note that potential density with respect to reference pressure, pr, is
10 ! obtained by calling this function with the pressure argument being pr
11 ! (i.e. "gsw_rho(SA,CT,pr)").
12 !
13 ! SA = Absolute Salinity [ g/kg ]
14 ! CT = Conservative Temperature (ITS-90) [ deg C ]
15 ! p = sea pressure [ dbar ]
16 ! ( i.e. absolute pressure - 10.1325 dbar )
17 !
18 ! rho = in-situ density [ kg/m ]
19 !--------------------------------------------------------------------------
20 
21 use gsw_mod_toolbox, only : gsw_specvol
22 
23 use gsw_mod_kinds
24 
25 implicit none
26 
27 real (r8), intent(in) :: sa, ct, p
28 
29 real (r8) :: gsw_rho
30 
31 gsw_rho = 1.0_r8/gsw_specvol(sa,ct,p)
32 
33 return
34 end function
35 
36 !--------------------------------------------------------------------------
elemental real(r8) function gsw_rho(sa, ct, p)
Definition: gsw_rho.f90:3