22 real (r8),
intent(in) :: pt0_ice
27 real (r8) :: df_dt, f, pot_enthalpy_ice
28 real (r8) :: pot_enthalpy_ice_mid, pot_enthalpy_ice_old
30 real (r8),
parameter :: p0 = -3.333601570157700e5_r8
31 real (r8),
parameter :: p1 = 2.096693916810367e3_r8
32 real (r8),
parameter :: p2 = 3.687110754043292_r8
33 real (r8),
parameter :: p3 = 4.559401565980682e-4_r8
34 real (r8),
parameter :: p4 = -2.516011957758120e-6_r8
35 real (r8),
parameter :: p5 = -1.040364574632784e-8_r8
36 real (r8),
parameter :: p6 = -1.701786588412454e-10_r8
37 real (r8),
parameter :: p7 = -7.667191301635057e-13_r8
40 pot_enthalpy_ice = p0 + pt0_ice*(p1 + pt0_ice*(p2 + pt0_ice*(p3 &
41 + pt0_ice*(p4 + pt0_ice*(p5 + pt0_ice*(p6 &
47 pot_enthalpy_ice_old = pot_enthalpy_ice
49 pot_enthalpy_ice = pot_enthalpy_ice_old - f/df_dt
50 pot_enthalpy_ice_mid = 0.5_r8*(pot_enthalpy_ice + pot_enthalpy_ice_old)
52 pot_enthalpy_ice = pot_enthalpy_ice_old - f/df_dt
elemental real(r8) function gsw_pot_enthalpy_from_pt_ice_poly(pt0_ice)