MOM6
mom_tfreeze::calculate_tfreeze_linear Interface Reference

Detailed Description

Definition at line 33 of file MOM_TFreeze.F90.

Private functions

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...
 

Functions and subroutines

◆ 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]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.
[in]tfr_s0_p0The freezing point at S=0, p=0, in deg C.
[in]dtfr_dsThe derivative of freezing point with salinity, in deg C PSU-1.
[in]dtfr_dpThe 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 !< salinity in PSU.
75  real, dimension(:), intent(in) :: pres !< pressure in Pa.
76  real, dimension(:), intent(out) :: t_fr !< Freezing point potential temperature in deg C.
77  integer, intent(in) :: start !< the starting point in the arrays.
78  integer, intent(in) :: npts !< the number of values to calculate.
79  real, intent(in) :: tfr_s0_p0 !< The freezing point at S=0, p=0, in deg C.
80  real, intent(in) :: dtfr_ds !< The derivative of freezing point with salinity,
81  !! in deg C PSU-1.
82  real, intent(in) :: dtfr_dp !< The derivative of freezing point with pressure,
83  !! in deg C Pa-1.
84 
85 ! This subroutine computes the freezing point potential temparature
86 ! (in deg C) from salinity (in psu), and pressure (in Pa) using a simple
87 ! linear expression, with coefficients passed in as arguments.
88 !
89 ! Arguments: S - salinity in PSU.
90 ! (in) pres - pressure in Pa.
91 ! (out) T_Fr - Freezing point potential temperature in deg C.
92 ! (in) start - the starting point in the arrays.
93 ! (in) npts - the number of values to calculate.
94 ! (in) TFr_S0_P0 - The freezing point at S=0, p=0, in deg C.
95 ! (in) dTFr_dS - The derivative of freezing point with salinity, in
96 ! deg C PSU-1.
97 ! (in) dTFr_dp - The derivative of freezing point with pressure, in
98 ! deg C Pa-1.
99  integer :: j
100 
101  do j=start,start+npts-1
102  t_fr(j) = (tfr_s0_p0 + dtfr_ds*s(j)) + dtfr_dp*pres(j)
103  enddo
104 

◆ 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
52 ! This subroutine computes the freezing point potential temparature
53 ! (in deg C) from salinity (in psu), and pressure (in Pa) using a simple
54 ! linear expression, with coefficients passed in as arguments.
55 !
56 ! Arguments: S - salinity in PSU.
57 ! (in) pres - pressure in Pa.
58 ! (out) T_Fr - Freezing point potential temperature in deg C.
59 ! (in) TFr_S0_P0 - The freezing point at S=0, p=0, in deg C.
60 ! (in) dTFr_dS - The derivatives of freezing point with salinity, in
61 ! deg C PSU-1.
62 ! (in) dTFr_dp - The derivatives of freezing point with pressure, in
63 ! deg C Pa-1.
64 
65  t_fr = (tfr_s0_p0 + dtfr_ds*s) + dtfr_dp*pres
66 

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