FV3 Bundle
gsw_rho_ice.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_rho_ice (t, p)
3 !==========================================================================
4 !
5 ! Calculates in-situ density of ice from in-situ temperature and pressure.
6 ! Note that the output, rho_ice, is density, not density anomaly; that
7 ! is, 1000 kg/m^3 is not subracted from it.
8 !
9 ! t = in-situ temperature (ITS-90) [ deg C ]
10 ! p = sea pressure [ dbar ]
11 ! ( i.e. absolute pressure - 10.1325 dbar )
12 !
13 ! rho_ice = in-situ density of ice (not density anomaly) [ kg/m^3 ]
14 !--------------------------------------------------------------------------
15 
17 
18 use gsw_mod_kinds
19 
20 implicit none
21 
22 real (r8), intent(in) :: t, p
23 
24 real (r8) :: gsw_rho_ice
25 
26 gsw_rho_ice = 1.0_r8/gsw_gibbs_ice(0,1,t,p)
27 
28 return
29 end function
30 
31 !--------------------------------------------------------------------------
elemental real(r8) function gsw_rho_ice(t, p)
Definition: gsw_rho_ice.f90:3