MOM6
mom_tfreeze::calculate_tfreeze_millero Interface Reference

Detailed Description

Definition at line 37 of file MOM_TFreeze.F90.

Private functions

subroutine calculate_tfreeze_millero_scalar (S, pres, T_Fr)
 This subroutine computes the freezing point potential temparature (in deg C) from salinity (in psu), and pressure (in Pa) using the expression from Millero (1978) (and in appendix A of Gill 1982), but with the of the pressure dependence changed from 7.53e-8 to 7.75e-8 to make this an expression for potential temperature (not in situ temperature), using a value that is correct at the freezing point at 35 PSU and 5e6 Pa (500 dbar). More...
 
subroutine calculate_tfreeze_millero_array (S, pres, T_Fr, start, npts)
 This subroutine computes the freezing point potential temparature (in deg C) from salinity (in psu), and pressure (in Pa) using the expression from Millero (1978) (and in appendix A of Gill 1982), but with the of the pressure dependence changed from 7.53e-8 to 7.75e-8 to make this an expression for potential temperature (not in situ temperature), using a value that is correct at the freezing point at 35 PSU and 5e6 Pa (500 dbar). More...
 

Functions and subroutines

◆ calculate_tfreeze_millero_array()

subroutine mom_tfreeze::calculate_tfreeze_millero::calculate_tfreeze_millero_array ( real, dimension(:), intent(in)  S,
real, dimension(:), intent(in)  pres,
real, dimension(:), intent(out)  T_Fr,
integer, intent(in)  start,
integer, intent(in)  npts 
)
private

This subroutine computes the freezing point potential temparature (in deg C) from salinity (in psu), and pressure (in Pa) using the expression from Millero (1978) (and in appendix A of Gill 1982), but with the of the pressure dependence changed from 7.53e-8 to 7.75e-8 to make this an expression for potential temperature (not in situ temperature), using a value that is correct at the freezing point at 35 PSU and 5e6 Pa (500 dbar).

Parameters
[in]sSalinity in PSU.
[in]presPressure in Pa.
[out]t_frFreezing point potential temperature in deg C.
[in]startThe starting point in the arrays.
[in]nptsThe number of values to calculate.

Definition at line 142 of file MOM_TFreeze.F90.

142  real, dimension(:), intent(in) :: s !< Salinity in PSU.
143  real, dimension(:), intent(in) :: pres !< Pressure in Pa.
144  real, dimension(:), intent(out) :: t_fr !< Freezing point potential temperature in deg C.
145  integer, intent(in) :: start !< The starting point in the arrays.
146  integer, intent(in) :: npts !< The number of values to calculate.
147 ! This subroutine computes the freezing point potential temparature
148 ! (in deg C) from salinity (in psu), and pressure (in Pa) using the expression
149 ! from Millero (1978) (and in appendix A of Gill 1982), but with the of the
150 ! pressure dependence changed from 7.53e-8 to 7.75e-8 to make this an
151 ! expression for potential temperature (not in situ temperature), using a
152 ! value that is correct at the freezing point at 35 PSU and 5e6 Pa (500 dbar).
153 !
154 ! Arguments: S - salinity in PSU.
155 ! (in) pres - pressure in Pa.
156 ! (out) T_Fr - Freezing point potential temperature in deg C.
157 ! (in) start - the starting point in the arrays.
158 ! (in) npts - the number of values to calculate.
159  real, parameter :: cs1 = -0.0575, cs3_2 = 1.710523e-3, cs2 = -2.154996e-4
160  real, parameter :: dtfr_dp = -7.75e-8
161  integer :: j
162 
163  do j=start,start+npts-1
164  t_fr(j) = s(j)*(cs1 + (cs3_2 * sqrt(max(s(j),0.0)) + cs2 * s(j))) + &
165  dtfr_dp*pres(j)
166  enddo
167 

◆ calculate_tfreeze_millero_scalar()

subroutine mom_tfreeze::calculate_tfreeze_millero::calculate_tfreeze_millero_scalar ( real, intent(in)  S,
real, intent(in)  pres,
real, intent(out)  T_Fr 
)
private

This subroutine computes the freezing point potential temparature (in deg C) from salinity (in psu), and pressure (in Pa) using the expression from Millero (1978) (and in appendix A of Gill 1982), but with the of the pressure dependence changed from 7.53e-8 to 7.75e-8 to make this an expression for potential temperature (not in situ temperature), using a value that is correct at the freezing point at 35 PSU and 5e6 Pa (500 dbar).

Parameters
[in]sSalinity in PSU.
[in]presPressure in Pa.
[out]t_frFreezing point potential temperature in deg C.

Definition at line 114 of file MOM_TFreeze.F90.

114  real, intent(in) :: s !< Salinity in PSU.
115  real, intent(in) :: pres !< Pressure in Pa.
116  real, intent(out) :: t_fr !< Freezing point potential temperature in deg C.
117 
118 ! This subroutine computes the freezing point potential temparature
119 ! (in deg C) from salinity (in psu), and pressure (in Pa) using the expression
120 ! from Millero (1978) (and in appendix A of Gill 1982), but with the of the
121 ! pressure dependence changed from 7.53e-8 to 7.75e-8 to make this an
122 ! expression for potential temperature (not in situ temperature), using a
123 ! value that is correct at the freezing point at 35 PSU and 5e6 Pa (500 dbar).
124 !
125 ! Arguments: S - salinity in PSU.
126 ! (in) pres - pressure in Pa.
127 ! (out) T_Fr - Freezing point potential temperature in deg C.
128  real, parameter :: cs1 = -0.0575, cs3_2 = 1.710523e-3, cs2 = -2.154996e-4
129  real, parameter :: dtfr_dp = -7.75e-8
130 
131  t_fr = s*(cs1 + (cs3_2 * sqrt(max(s,0.0)) + cs2 * s)) + dtfr_dp*pres
132 

The documentation for this interface was generated from the following file: