MOM6
mom_eos_linear::calculate_density_derivs_linear Interface Reference

Detailed Description

For a given thermodynamic state, return the derivatives of density with temperature and salinity using the simple linear equation of state.

Definition at line 40 of file MOM_EOS_linear.F90.

Private functions

subroutine calculate_density_derivs_scalar_linear (T, S, pressure, drho_dT_out, drho_dS_out, Rho_T0_S0, dRho_dT, dRho_dS)
 This subroutine calculates the partial derivatives of density * with potential temperature and salinity for a single point. More...
 
subroutine calculate_density_derivs_array_linear (T, S, pressure, drho_dT_out, drho_dS_out, Rho_T0_S0, dRho_dT, dRho_dS, start, npts)
 This subroutine calculates the partial derivatives of density * with potential temperature and salinity. More...
 

Functions and subroutines

◆ calculate_density_derivs_array_linear()

subroutine mom_eos_linear::calculate_density_derivs_linear::calculate_density_derivs_array_linear ( real, dimension(:), intent(in)  T,
real, dimension(:), intent(in)  S,
real, dimension(:), intent(in)  pressure,
real, dimension(:), intent(out)  drho_dT_out,
real, dimension(:), intent(out)  drho_dS_out,
real, intent(in)  Rho_T0_S0,
real, intent(in)  dRho_dT,
real, intent(in)  dRho_dS,
integer, intent(in)  start,
integer, intent(in)  npts 
)
private

This subroutine calculates the partial derivatives of density * with potential temperature and salinity.

Parameters
[in]tPotential temperature relative to the surface [degC].
[in]sSalinity [PSU].
[in]pressurePressure [Pa].
[out]drho_dt_outThe partial derivative of density with potential temperature [kg m-3 degC-1].
[out]drho_ds_outThe partial derivative of density with salinity [kg m-3 ppt-1].
[in]rho_t0_s0The density at T=0, S=0 [kg m-3].
[in]drho_dtThe derivative of density with temperature [kg m-3 degC-1].
[in]drho_dsThe derivative of density with salinity [kg m-3 ppt-1].
[in]startThe starting point in the arrays.
[in]nptsThe number of values to calculate.

Definition at line 165 of file MOM_EOS_linear.F90.

165  real, intent(in), dimension(:) :: T !< Potential temperature relative to the surface
166  !! [degC].
167  real, intent(in), dimension(:) :: S !< Salinity [PSU].
168  real, intent(in), dimension(:) :: pressure !< Pressure [Pa].
169  real, intent(out), dimension(:) :: drho_dT_out !< The partial derivative of density with
170  !! potential temperature [kg m-3 degC-1].
171  real, intent(out), dimension(:) :: drho_dS_out !< The partial derivative of density with
172  !! salinity [kg m-3 ppt-1].
173  real, intent(in) :: Rho_T0_S0 !< The density at T=0, S=0 [kg m-3].
174  real, intent(in) :: dRho_dT !< The derivative of density with temperature [kg m-3 degC-1].
175  real, intent(in) :: dRho_dS !< The derivative of density with salinity [kg m-3 ppt-1].
176  integer, intent(in) :: start !< The starting point in the arrays.
177  integer, intent(in) :: npts !< The number of values to calculate.
178  ! Local variables
179  integer :: j
180 
181  do j=start,start+npts-1
182  drho_dt_out(j) = drho_dt
183  drho_ds_out(j) = drho_ds
184  enddo
185 

◆ calculate_density_derivs_scalar_linear()

subroutine mom_eos_linear::calculate_density_derivs_linear::calculate_density_derivs_scalar_linear ( real, intent(in)  T,
real, intent(in)  S,
real, intent(in)  pressure,
real, intent(out)  drho_dT_out,
real, intent(out)  drho_dS_out,
real, intent(in)  Rho_T0_S0,
real, intent(in)  dRho_dT,
real, intent(in)  dRho_dS 
)
private

This subroutine calculates the partial derivatives of density * with potential temperature and salinity for a single point.

Parameters
[in]tPotential temperature relative to the surface [degC].
[in]sSalinity [PSU].
[in]pressurepressure [Pa].
[out]drho_dt_outThe partial derivative of density with potential temperature [kg m-3 degC-1].
[out]drho_ds_outThe partial derivative of density with salinity [kg m-3 ppt-1].
[in]rho_t0_s0The density at T=0, S=0 [kg m-3].
[in]drho_dtThe derivatives of density with temperature [kg m-3 degC-1].
[in]drho_dsThe derivatives of density with salinity [kg m-3 ppt-1].

Definition at line 192 of file MOM_EOS_linear.F90.

192  real, intent(in) :: T !< Potential temperature relative to the surface
193  !! [degC].
194  real, intent(in) :: S !< Salinity [PSU].
195  real, intent(in) :: pressure !< pressure [Pa].
196  real, intent(out) :: drho_dT_out !< The partial derivative of density with
197  !! potential temperature [kg m-3 degC-1].
198  real, intent(out) :: drho_dS_out !< The partial derivative of density with
199  !! salinity [kg m-3 ppt-1].
200  real, intent(in) :: Rho_T0_S0 !< The density at T=0, S=0 [kg m-3].
201  real, intent(in) :: dRho_dT !< The derivatives of density with temperature [kg m-3 degC-1].
202  real, intent(in) :: dRho_dS !< The derivatives of density with salinity [kg m-3 ppt-1].
203  drho_dt_out = drho_dt
204  drho_ds_out = drho_ds
205 

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