FV3 Bundle
gsw_kappa_ice.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_kappa_ice (t, p)
3 !==========================================================================
4 !
5 ! Calculates the isentropic compressibility of ice.
6 !
7 ! t = in-situ temperature (ITS-90) [ deg C ]
8 ! p = sea pressure [ dbar ]
9 ! ( i.e. absolute pressure - 10.1325 dbar )
10 !
11 ! kappa_ice = isentropic compressibility [ 1/Pa ]
12 ! Note. The output units are 1/Pa not 1/dbar.
13 !--------------------------------------------------------------------------
14 
16 
17 use gsw_mod_kinds
18 
19 implicit none
20 
21 real (r8), intent(in) :: t, p
22 
23 real (r8) :: gsw_kappa_ice
24 
25 real (r8) :: gi_tp, gi_tt
26 
27 gi_tt = gsw_gibbs_ice(2,0,t,p)
28 gi_tp = gsw_gibbs_ice(1,1,t,p)
29 
30 gsw_kappa_ice = (gi_tp*gi_tp - gi_tt*gsw_gibbs_ice(0,2,t,p))/ &
31  (gsw_gibbs_ice(0,1,t,p)*gi_tt)
32 
33 return
34 end function
35 
36 !--------------------------------------------------------------------------
elemental real(r8) function gsw_kappa_ice(t, p)