Definition at line 37 of file MOM_TFreeze.F90.
|
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...
|
|
◆ 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] | s | Salinity in PSU. |
[in] | pres | Pressure in Pa. |
[out] | t_fr | Freezing point potential temperature in deg C. |
[in] | start | The starting point in the arrays. |
[in] | npts | The number of values to calculate. |
Definition at line 142 of file MOM_TFreeze.F90.
142 real,
dimension(:),
intent(in) :: s
143 real,
dimension(:),
intent(in) :: pres
144 real,
dimension(:),
intent(out) :: t_fr
145 integer,
intent(in) :: start
146 integer,
intent(in) :: npts
159 real,
parameter :: cs1 = -0.0575, cs3_2 = 1.710523e-3, cs2 = -2.154996e-4
160 real,
parameter :: dtfr_dp = -7.75e-8
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))) + &
◆ 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] | s | Salinity in PSU. |
[in] | pres | Pressure in Pa. |
[out] | t_fr | Freezing point potential temperature in deg C. |
Definition at line 114 of file MOM_TFreeze.F90.
114 real,
intent(in) :: s
115 real,
intent(in) :: pres
116 real,
intent(out) :: t_fr
128 real,
parameter :: cs1 = -0.0575, cs3_2 = 1.710523e-3, cs2 = -2.154996e-4
129 real,
parameter :: dtfr_dp = -7.75e-8
131 t_fr = s*(cs1 + (cs3_2 * sqrt(max(s,0.0)) + cs2 * s)) + dtfr_dp*pres
The documentation for this interface was generated from the following file:
- /home/adcroft/GitHub/workspace/Gaea-stats-MOM6-examples/MOM6-examples/src/MOM6/src/equation_of_state/MOM_TFreeze.F90