Compute the freezing point conservative temperature [degC] from absolute salinity [g/kg] and pressure [Pa] using the TEOS10 package.
Definition at line 33 of file MOM_TFreeze.F90.
|
subroutine | calculate_tfreeze_teos10_scalar (S, pres, T_Fr) |
| This subroutine computes the freezing point conservative temperature [degC] from absolute salinity [g/kg], and pressure [Pa] using the TEOS10 package. More...
|
|
subroutine | calculate_tfreeze_teos10_array (S, pres, T_Fr, start, npts) |
| This subroutine computes the freezing point conservative temperature [degC] from absolute salinity [g/kg], and pressure [Pa] using the TEOS10 package. More...
|
|
◆ calculate_tfreeze_teos10_array()
subroutine mom_tfreeze::calculate_tfreeze_teos10::calculate_tfreeze_teos10_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 conservative temperature [degC] from absolute salinity [g/kg], and pressure [Pa] using the TEOS10 package.
- Parameters
-
[in] | s | absolute salinity [g/kg]. |
[in] | pres | pressure [Pa]. |
[out] | t_fr | Freezing point conservative temperature [degC]. |
[in] | start | the starting point in the arrays. |
[in] | npts | the number of values to calculate. |
Definition at line 148 of file MOM_TFreeze.F90.
148 real,
dimension(:),
intent(in) :: S
149 real,
dimension(:),
intent(in) :: pres
150 real,
dimension(:),
intent(out) :: T_Fr
151 integer,
intent(in) :: start
152 integer,
intent(in) :: npts
155 real,
parameter :: Pa2db = 1.e-4
159 real,
parameter :: saturation_fraction = 0.0
161 do j=start,start+npts-1
166 if (s(j) < -1.0e-10) cycle
167 t_fr(j) = gsw_ct_freezing_exact(zs,zp,saturation_fraction)
◆ calculate_tfreeze_teos10_scalar()
subroutine mom_tfreeze::calculate_tfreeze_teos10::calculate_tfreeze_teos10_scalar |
( |
real, intent(in) |
S, |
|
|
real, intent(in) |
pres, |
|
|
real, intent(out) |
T_Fr |
|
) |
| |
|
private |
This subroutine computes the freezing point conservative temperature [degC] from absolute salinity [g/kg], and pressure [Pa] using the TEOS10 package.
- Parameters
-
[in] | s | Absolute salinity [g/kg]. |
[in] | pres | Pressure [Pa]. |
[out] | t_fr | Freezing point conservative temperature [degC]. |
Definition at line 128 of file MOM_TFreeze.F90.
128 real,
intent(in) :: S
129 real,
intent(in) :: pres
130 real,
intent(out) :: T_Fr
133 real,
dimension(1) :: S0, pres0
134 real,
dimension(1) :: tfr0
139 call calculate_tfreeze_teos10_array(s0, pres0, tfr0, 1, 1)
The documentation for this interface was generated from the following file:
- /glade/work/altuntas/cesm.sandboxes/cesm2_2_alpha_X_mom/components/mom/MOM6/src/equation_of_state/MOM_TFreeze.F90