FV3 Bundle
gsw_gibbs_ice_pt0_pt0.f90
Go to the documentation of this file.
1 ! =========================================================================
2 elemental function gsw_gibbs_ice_pt0_pt0 (pt0)
3 ! =========================================================================
4 !
5 ! The second temperature derivative of Gibbs energy of ice at the
6 ! potential temperature with reference sea pressure of zero dbar. That is
7 ! the output is gibbs_ice(2,0,pt0,0).
8 !
9 ! pt0 = potential temperature with reference sea pressure of zero dbar
10 ! [ deg C ]
11 !
12 ! gsw_gibbs_ice_pt0_pt0 = temperature second derivative at pt0
13 !--------------------------------------------------------------------------
14 
16 
18 
19 use gsw_mod_kinds
20 
21 implicit none
22 
23 real (r8), intent(in) :: pt0
24 
25 real (r8) :: gsw_gibbs_ice_pt0_pt0
26 
27 real (r8) :: tau
28 complex (r8) :: g
29 
30 tau = (pt0 + gsw_t0)*rec_t3p
31 
32 g = r1*(1.0_r8/(t1 - tau) + 1.0_r8/(t1 + tau) - 2.0_r8/t1) &
33  + r20*(1.0_r8/(t2 - tau) + 1.0_r8/(t2 + tau) - 2.0_r8/t2)
34 
36 
37 return
38 end function
39 
40 !--------------------------------------------------------------------------
elemental real(r8) function gsw_gibbs_ice_pt0_pt0(pt0)
integer, parameter r8