FV3 Bundle
gsw_sound_speed_ice.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_sound_speed_ice (t, p)
3 !==========================================================================
4 !
5 ! Calculates the compression speed of sound in 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 ! sound_speed_ice = compression speed of sound in ice [ m/s ]
12 !--------------------------------------------------------------------------
13 
15 
16 use gsw_mod_kinds
17 
18 implicit none
19 
20 real (r8), intent(in) :: t, p
21 
22 real (r8) :: gsw_sound_speed_ice
23 
24 real (r8) :: gi_tp, gi_tt
25 
26 gi_tt = gsw_gibbs_ice(2,0,t,p)
27 gi_tp = gsw_gibbs_ice(1,1,t,p)
28 
30  sqrt(gi_tt/(gi_tp*gi_tp - gi_tt*gsw_gibbs_ice(0,2,t,p)))
31 
32 return
33 end function
34 
35 !--------------------------------------------------------------------------
elemental real(r8) function gsw_sound_speed_ice(t, p)