Calculates density of sea water from T, S and P.
Definition at line 60 of file MOM_EOS.F90.
|
subroutine | calculate_density_scalar (T, S, pressure, rho, EOS, rho_ref) |
| Calls the appropriate subroutine to calculate density of sea water for scalar inputs. If rho_ref is present, the anomaly with respect to rho_ref is returned. More...
|
|
subroutine | calculate_density_array (T, S, pressure, rho, start, npts, EOS, rho_ref) |
| Calls the appropriate subroutine to calculate the density of sea water for 1-D array inputs. If rho_ref is present, the anomaly with respect to rho_ref is returned. More...
|
|
◆ calculate_density_array()
subroutine mom_eos::calculate_density::calculate_density_array |
( |
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, |
|
|
type(eos_type), pointer |
EOS, |
|
|
real, intent(in), optional |
rho_ref |
|
) |
| |
|
private |
Calls the appropriate subroutine to calculate the density of sea water for 1-D array inputs. If rho_ref is present, the anomaly with respect to rho_ref is returned.
- Parameters
-
[in] | t | Potential temperature referenced to the surface [degC] |
[in] | s | Salinity [ppt] |
[in] | pressure | Pressure [Pa] |
[out] | rho | Density (in-situ if pressure is local) [kg m-3] |
[in] | start | Start index for computation |
[in] | npts | Number of point to compute |
| eos | Equation of state structure |
[in] | rho_ref | A reference density [kg m-3]. |
Definition at line 166 of file MOM_EOS.F90.
166 real,
dimension(:),
intent(in) :: T
167 real,
dimension(:),
intent(in) :: S
168 real,
dimension(:),
intent(in) :: pressure
169 real,
dimension(:),
intent(out) :: rho
170 integer,
intent(in) :: start
171 integer,
intent(in) :: npts
172 type(EOS_type),
pointer :: EOS
173 real,
optional,
intent(in) :: rho_ref
175 if (.not.
associated(eos))
call mom_error(fatal, &
176 "calculate_density_array called with an unassociated EOS_type EOS.")
178 select case (eos%form_of_EOS)
180 call calculate_density_linear(t, s, pressure, rho, start, npts, &
181 eos%Rho_T0_S0, eos%dRho_dT, eos%dRho_dS, rho_ref)
183 call calculate_density_unesco(t, s, pressure, rho, start, npts, rho_ref)
185 call calculate_density_wright(t, s, pressure, rho, start, npts, rho_ref)
187 call calculate_density_teos10(t, s, pressure, rho, start, npts, rho_ref)
189 call calculate_density_nemo (t, s, pressure, rho, start, npts, rho_ref)
191 call mom_error(fatal, &
192 "calculate_density_array: EOS%form_of_EOS is not valid.")
◆ calculate_density_scalar()
subroutine mom_eos::calculate_density::calculate_density_scalar |
( |
real, intent(in) |
T, |
|
|
real, intent(in) |
S, |
|
|
real, intent(in) |
pressure, |
|
|
real, intent(out) |
rho, |
|
|
type(eos_type), pointer |
EOS, |
|
|
real, intent(in), optional |
rho_ref |
|
) |
| |
|
private |
Calls the appropriate subroutine to calculate density of sea water for scalar inputs. If rho_ref is present, the anomaly with respect to rho_ref is returned.
- Parameters
-
[in] | t | Potential temperature referenced to the surface [degC] |
[in] | s | Salinity [ppt] |
[in] | pressure | Pressure [Pa] |
[out] | rho | Density (in-situ if pressure is local) [kg m-3] |
| eos | Equation of state structure |
[in] | rho_ref | A reference density [kg m-3]. |
Definition at line 134 of file MOM_EOS.F90.
134 real,
intent(in) :: T
135 real,
intent(in) :: S
136 real,
intent(in) :: pressure
137 real,
intent(out) :: rho
138 type(EOS_type),
pointer :: EOS
139 real,
optional,
intent(in) :: rho_ref
141 if (.not.
associated(eos))
call mom_error(fatal, &
142 "calculate_density_scalar called with an unassociated EOS_type EOS.")
144 select case (eos%form_of_EOS)
146 call calculate_density_linear(t, s, pressure, rho, &
147 eos%Rho_T0_S0, eos%dRho_dT, eos%dRho_dS, rho_ref)
149 call calculate_density_unesco(t, s, pressure, rho, rho_ref)
151 call calculate_density_wright(t, s, pressure, rho, rho_ref)
153 call calculate_density_teos10(t, s, pressure, rho, rho_ref)
155 call calculate_density_nemo(t, s, pressure, rho, rho_ref)
157 call mom_error(fatal, &
158 "calculate_density_scalar: EOS is not valid.")
The documentation for this interface was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/mom6-doctesting/checkouts/brokenbreathe/src/equation_of_state/MOM_EOS.F90