Definition at line 33 of file MOM_TFreeze.F90.
|
subroutine | calculate_tfreeze_linear_scalar (S, pres, T_Fr, TFr_S0_P0, dTFr_dS, dTFr_dp) |
|
subroutine | calculate_tfreeze_linear_array (S, pres, T_Fr, start, npts, TFr_S0_P0, dTFr_dS, dTFr_dp) |
| This subroutine computes the freezing point potential temparature (in deg C) from salinity (in psu), and pressure (in Pa) using a simple linear expression, with coefficients passed in as arguments. More...
|
|
◆ calculate_tfreeze_linear_array()
subroutine mom_tfreeze::calculate_tfreeze_linear::calculate_tfreeze_linear_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, |
|
|
real, intent(in) |
TFr_S0_P0, |
|
|
real, intent(in) |
dTFr_dS, |
|
|
real, intent(in) |
dTFr_dp |
|
) |
| |
|
private |
This subroutine computes the freezing point potential temparature (in deg C) from salinity (in psu), and pressure (in Pa) using a simple linear expression, with coefficients passed in as arguments.
- 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. |
[in] | tfr_s0_p0 | The freezing point at S=0, p=0, in deg C. |
[in] | dtfr_ds | The derivative of freezing point with salinity, in deg C PSU-1. |
[in] | dtfr_dp | The derivative of freezing point with pressure, in deg C Pa-1. |
Definition at line 74 of file MOM_TFreeze.F90.
74 real,
dimension(:),
intent(in) :: s
75 real,
dimension(:),
intent(in) :: pres
76 real,
dimension(:),
intent(out) :: t_fr
77 integer,
intent(in) :: start
78 integer,
intent(in) :: npts
79 real,
intent(in) :: tfr_s0_p0
80 real,
intent(in) :: dtfr_ds
82 real,
intent(in) :: dtfr_dp
101 do j=start,start+npts-1
102 t_fr(j) = (tfr_s0_p0 + dtfr_ds*s(j)) + dtfr_dp*pres(j)
◆ calculate_tfreeze_linear_scalar()
subroutine mom_tfreeze::calculate_tfreeze_linear::calculate_tfreeze_linear_scalar |
( |
real, intent(in) |
S, |
|
|
real, intent(in) |
pres, |
|
|
real, intent(out) |
T_Fr, |
|
|
real, intent(in) |
TFr_S0_P0, |
|
|
real, intent(in) |
dTFr_dS, |
|
|
real, intent(in) |
dTFr_dp |
|
) |
| |
|
private |
Definition at line 49 of file MOM_TFreeze.F90.
49 real,
intent(in) :: s, pres
50 real,
intent(out) :: t_fr
51 real,
intent(in) :: tfr_s0_p0, dtfr_ds, dtfr_dp
65 t_fr = (tfr_s0_p0 + dtfr_ds*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