FV3 Bundle
gsw_pt_from_pot_enthalpy_ice_poly_dh.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_pt_from_pot_enthalpy_ice_poly_dh (pot_enthalpy_ice)
3 !==========================================================================
4 !
5 ! Calculates the derivative of potential temperature of ice with respect
6 ! to potential enthalpy. This is based on the compuationally-efficient
7 ! polynomial fit to the potential enthalpy of ice.
8 !
9 ! pot_enthalpy_ice = potential enthalpy of ice [ J/kg ]
10 !
11 ! dpt0_ice_dh = derivative of potential temperature of ice
12 ! with respect to potential enthalpy [ deg C ]
13 !--------------------------------------------------------------------------
14 
15 use gsw_mod_kinds
16 
17 implicit none
18 
19 real (r8), intent(in) :: pot_enthalpy_ice
20 
22 
23 real (r8), parameter :: q1 = 2.594351081876611e-3_r8
24 real (r8), parameter :: p2 = 3.530155620427630e-8_r8
25 real (r8), parameter :: p3 = 2.330421169287162e-13_r8
26 real (r8), parameter :: p4 = 8.139369017110120e-19_r8
27 real (r8), parameter :: p5 = 1.610007265856420e-24_r8
28 real (r8), parameter :: p6 = 1.707103685781641e-30_r8
29 real (r8), parameter :: p7 = 7.658041152250651e-37_r8
30 
32  + pot_enthalpy_ice*(p2 + pot_enthalpy_ice*(p3 &
33  + pot_enthalpy_ice*(p4 + pot_enthalpy_ice*(p5 + pot_enthalpy_ice*(p6 &
34  + pot_enthalpy_ice*p7)))))
35 
36 return
37 end function
38 
39 !--------------------------------------------------------------------------
elemental real(r8) function gsw_pt_from_pot_enthalpy_ice_poly_dh(pot_enthalpy_ice)