For a given thermodynamic state, return the derivatives of density with conservative temperature and absolute salinity, using the TEOS10 expressions.
Definition at line 41 of file MOM_EOS_TEOS10.F90.
|
subroutine | calculate_density_derivs_scalar_teos10 (T, S, pressure, drho_dT, drho_dS) |
| For a given thermodynamic state, calculate the derivatives of density with conservative temperature and absolute salinity, using the TEOS10 expressions. More...
|
|
subroutine | calculate_density_derivs_array_teos10 (T, S, pressure, drho_dT, drho_dS, start, npts) |
| For a given thermodynamic state, calculate the derivatives of density with conservative temperature and absolute salinity, using the TEOS10 expressions. More...
|
|
◆ calculate_density_derivs_array_teos10()
subroutine mom_eos_teos10::calculate_density_derivs_teos10::calculate_density_derivs_array_teos10 |
( |
real, dimension(:), intent(in) |
T, |
|
|
real, dimension(:), intent(in) |
S, |
|
|
real, dimension(:), intent(in) |
pressure, |
|
|
real, dimension(:), intent(out) |
drho_dT, |
|
|
real, dimension(:), intent(out) |
drho_dS, |
|
|
integer, intent(in) |
start, |
|
|
integer, intent(in) |
npts |
|
) |
| |
|
private |
For a given thermodynamic state, calculate the derivatives of density with conservative temperature and absolute salinity, using the TEOS10 expressions.
- Parameters
-
[in] | t | Conservative temperature [degC]. |
[in] | s | Absolute salinity [g kg-1]. |
[in] | pressure | pressure [Pa]. |
[out] | drho_dt | The partial derivative of density with conservative temperature [kg m-3 degC-1]. |
[out] | drho_ds | The partial derivative of density with absolute salinity, [kg m-3 (g/kg)-1]. |
[in] | start | The starting point in the arrays. |
[in] | npts | The number of values to calculate. |
Definition at line 169 of file MOM_EOS_TEOS10.F90.
169 real,
intent(in),
dimension(:) :: T
170 real,
intent(in),
dimension(:) :: S
171 real,
intent(in),
dimension(:) :: pressure
172 real,
intent(out),
dimension(:) :: drho_dT
174 real,
intent(out),
dimension(:) :: drho_dS
176 integer,
intent(in) :: start
177 integer,
intent(in) :: npts
183 do j=start,start+npts-1
187 zp = pressure(j)* pa2db
188 if (s(j) < -1.0e-10)
then ;
189 drho_dt(j) = 0.0 ; drho_ds(j) = 0.0
191 call gsw_rho_first_derivatives(zs, zt, zp, drho_dsa=drho_ds(j), drho_dct=drho_dt(j))
◆ calculate_density_derivs_scalar_teos10()
subroutine mom_eos_teos10::calculate_density_derivs_teos10::calculate_density_derivs_scalar_teos10 |
( |
real, intent(in) |
T, |
|
|
real, intent(in) |
S, |
|
|
real, intent(in) |
pressure, |
|
|
real, intent(out) |
drho_dT, |
|
|
real, intent(out) |
drho_dS |
|
) |
| |
|
private |
For a given thermodynamic state, calculate the derivatives of density with conservative temperature and absolute salinity, using the TEOS10 expressions.
- Parameters
-
[in] | t | Conservative temperature [degC] |
[in] | s | Absolute Salinity [g kg-1] |
[in] | pressure | pressure [Pa]. |
[out] | drho_dt | The partial derivative of density with conservative temperature [kg m-3 degC-1]. |
[out] | drho_ds | The partial derivative of density with absolute salinity, [kg m-3 (g/kg)-1]. |
Definition at line 200 of file MOM_EOS_TEOS10.F90.
200 real,
intent(in) :: T
201 real,
intent(in) :: S
202 real,
intent(in) :: pressure
203 real,
intent(out) :: drho_dT
205 real,
intent(out) :: drho_dS
214 if (s < -1.0e-10)
return
215 call gsw_rho_first_derivatives(zs, zt, zp, drho_dsa=drho_ds, drho_dct=drho_dt)
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_EOS_TEOS10.F90