Definition at line 39 of file MOM_EOS_linear.F90.
|
subroutine | calculate_density_scalar_linear (T, S, pressure, rho, Rho_T0_S0, dRho_dT, dRho_dS) |
| This subroutine computes the density of sea water with a trivial linear equation of state (in kg/m^3) from salinity (sal in psu), potential temperature (T in deg C), and pressure in Pa. More...
|
|
subroutine | calculate_density_array_linear (T, S, pressure, rho, start, npts, Rho_T0_S0, dRho_dT, dRho_dS) |
| This subroutine computes the density of sea water with a trivial linear equation of state (in kg/m^3) from salinity (sal in psu), potential temperature (T in deg C), and pressure in Pa. More...
|
|
◆ calculate_density_array_linear()
subroutine mom_eos_linear::calculate_density_linear::calculate_density_array_linear |
( |
real, dimension(:), intent(in) |
T, |
|
|
real, dimension(:), intent(in) |
S, |
|
|
real, dimension(:), intent(in) |
pressure, |
|
|
real, dimension(:), intent(out) |
rho, |
|
|
integer, intent(in) |
start, |
|
|
integer, intent(in) |
npts, |
|
|
real, intent(in) |
Rho_T0_S0, |
|
|
real, intent(in) |
dRho_dT, |
|
|
real, intent(in) |
dRho_dS |
|
) |
| |
|
private |
This subroutine computes the density of sea water with a trivial linear equation of state (in kg/m^3) from salinity (sal in psu), potential temperature (T in deg C), and pressure in Pa.
- Parameters
-
[in] | t | Potential temperature relative to the surface in C. |
[in] | s | Salinity in PSU. |
[in] | pressure | Pressure in Pa. |
[out] | rho | In situ density in kg m-3. |
[in] | start | The starting point in the arrays. |
[in] | npts | The number of values to calculate. |
[in] | rho_t0_s0 | The density at T=0, S=0, in kg m-3. |
[in] | drho_ds | The derivatives of density with temperature and salinity, in kg m-3 C-1 and kg m-3 psu-1. |
Definition at line 83 of file MOM_EOS_linear.F90.
83 real,
intent(in),
dimension(:) :: t
85 real,
intent(in),
dimension(:) :: s
86 real,
intent(in),
dimension(:) :: pressure
87 real,
intent(out),
dimension(:) :: rho
88 integer,
intent(in) :: start
89 integer,
intent(in) :: npts
90 real,
intent(in) :: rho_t0_s0
91 real,
intent(in) :: drho_dt, drho_ds
108 real :: al0, p0, lambda
111 do j=start,start+npts-1
112 rho(j) = rho_t0_s0 + drho_dt*t(j) + drho_ds*s(j)
◆ calculate_density_scalar_linear()
subroutine mom_eos_linear::calculate_density_linear::calculate_density_scalar_linear |
( |
real, intent(in) |
T, |
|
|
real, intent(in) |
S, |
|
|
real, intent(in) |
pressure, |
|
|
real, intent(out) |
rho, |
|
|
real, intent(in) |
Rho_T0_S0, |
|
|
real, intent(in) |
dRho_dT, |
|
|
real, intent(in) |
dRho_dS |
|
) |
| |
|
private |
This subroutine computes the density of sea water with a trivial linear equation of state (in kg/m^3) from salinity (sal in psu), potential temperature (T in deg C), and pressure in Pa.
- Parameters
-
[in] | t | Potential temperature relative to the surface in C. |
[in] | s | Salinity in PSU. |
[in] | pressure | Pressure in Pa. |
[out] | rho | In situ density in kg m-3. |
[in] | rho_t0_s0 | The density at T=0, S=0, in kg m-3. |
[in] | drho_dt | The derivatives of density with temperature and salinity, in kg m-3 C-1 and kg m-3 psu-1. |
[in] | drho_ds | The derivatives of density with temperature and salinity, in kg m-3 C-1 and kg m-3 psu-1. |
Definition at line 50 of file MOM_EOS_linear.F90.
52 real,
intent(in) :: pressure
53 real,
intent(out) :: rho
54 real,
intent(in) :: rho_t0_s0
55 real,
intent(in) :: drho_dt
57 real,
intent(in) :: drho_ds
74 rho = rho_t0_s0 + drho_dt*t + drho_ds*s
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_EOS_linear.F90