\hypertarget{interfacemom__eos__linear_1_1calculate__density__derivs__linear}{}\section{mom\+\_\+eos\+\_\+linear\+:\+:calculate\+\_\+density\+\_\+derivs\+\_\+linear Interface Reference}
\label{interfacemom__eos__linear_1_1calculate__density__derivs__linear}\index{mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+linear@{mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+linear}}


\subsection{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 M\+O\+M\+\_\+\+E\+O\+S\+\_\+linear.\+F90.

\subsection*{Private functions}
\begin{DoxyCompactItemize}
\item 
subroutine \hyperlink{interfacemom__eos__linear_1_1calculate__density__derivs__linear_ae0e388dcf3724a78cf81c5f08e420bfa}{calculate\+\_\+density\+\_\+derivs\+\_\+scalar\+\_\+linear} (T, S, pressure, drho\+\_\+d\+T\+\_\+out, drho\+\_\+d\+S\+\_\+out, Rho\+\_\+\+T0\+\_\+\+S0, d\+Rho\+\_\+dT, d\+Rho\+\_\+dS)
\begin{DoxyCompactList}\small\item\em This subroutine calculates the partial derivatives of density $\ast$ with potential temperature and salinity for a single point. \end{DoxyCompactList}\item 
subroutine \hyperlink{interfacemom__eos__linear_1_1calculate__density__derivs__linear_a006f0049f8c51618ca5ee954186f2f95}{calculate\+\_\+density\+\_\+derivs\+\_\+array\+\_\+linear} (T, S, pressure, drho\+\_\+d\+T\+\_\+out, drho\+\_\+d\+S\+\_\+out, Rho\+\_\+\+T0\+\_\+\+S0, d\+Rho\+\_\+dT, d\+Rho\+\_\+dS, start, npts)
\begin{DoxyCompactList}\small\item\em This subroutine calculates the partial derivatives of density $\ast$ with potential temperature and salinity. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{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 M\+O\+M\+\_\+\+E\+O\+S\+\_\+linear.\+F90.



\subsection{Functions and subroutines}
\mbox{\Hypertarget{interfacemom__eos__linear_1_1calculate__density__derivs__linear_a006f0049f8c51618ca5ee954186f2f95}\label{interfacemom__eos__linear_1_1calculate__density__derivs__linear_a006f0049f8c51618ca5ee954186f2f95}} 
\index{mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+linear@{mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+linear}!calculate\+\_\+density\+\_\+derivs\+\_\+array\+\_\+linear@{calculate\+\_\+density\+\_\+derivs\+\_\+array\+\_\+linear}}
\index{calculate\+\_\+density\+\_\+derivs\+\_\+array\+\_\+linear@{calculate\+\_\+density\+\_\+derivs\+\_\+array\+\_\+linear}!mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+linear@{mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+linear}}
\subsubsection{\texorpdfstring{calculate\+\_\+density\+\_\+derivs\+\_\+array\+\_\+linear()}{calculate\_density\_derivs\_array\_linear()}}
{\footnotesize\ttfamily subroutine mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+array\+\_\+linear (\begin{DoxyParamCaption}\item[{real, dimension(\+:), intent(in)}]{T,  }\item[{real, dimension(\+:), intent(in)}]{S,  }\item[{real, dimension(\+:), intent(in)}]{pressure,  }\item[{real, dimension(\+:), intent(out)}]{drho\+\_\+d\+T\+\_\+out,  }\item[{real, dimension(\+:), intent(out)}]{drho\+\_\+d\+S\+\_\+out,  }\item[{real, intent(in)}]{Rho\+\_\+\+T0\+\_\+\+S0,  }\item[{real, intent(in)}]{d\+Rho\+\_\+dT,  }\item[{real, intent(in)}]{d\+Rho\+\_\+dS,  }\item[{integer, intent(in)}]{start,  }\item[{integer, intent(in)}]{npts }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}



This subroutine calculates the partial derivatives of density $\ast$ with potential temperature and salinity. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em t} & Potential temperature relative to the surface \mbox{[}degC\mbox{]}.\\
\hline
\mbox{\tt in}  & {\em s} & Salinity \mbox{[}P\+SU\mbox{]}.\\
\hline
\mbox{\tt in}  & {\em pressure} & Pressure \mbox{[}Pa\mbox{]}.\\
\hline
\mbox{\tt out}  & {\em drho\+\_\+dt\+\_\+out} & The partial derivative of density with potential temperature \mbox{[}kg m-\/3 deg\+C-\/1\mbox{]}.\\
\hline
\mbox{\tt out}  & {\em drho\+\_\+ds\+\_\+out} & The partial derivative of density with salinity \mbox{[}kg m-\/3 ppt-\/1\mbox{]}.\\
\hline
\mbox{\tt in}  & {\em rho\+\_\+t0\+\_\+s0} & The density at T=0, S=0 \mbox{[}kg m-\/3\mbox{]}.\\
\hline
\mbox{\tt in}  & {\em drho\+\_\+dt} & The derivative of density with temperature \mbox{[}kg m-\/3 deg\+C-\/1\mbox{]}.\\
\hline
\mbox{\tt in}  & {\em drho\+\_\+ds} & The derivative of density with salinity \mbox{[}kg m-\/3 ppt-\/1\mbox{]}.\\
\hline
\mbox{\tt in}  & {\em start} & The starting point in the arrays.\\
\hline
\mbox{\tt in}  & {\em npts} & The number of values to calculate. \\
\hline
\end{DoxyParams}


Definition at line 165 of file M\+O\+M\+\_\+\+E\+O\+S\+\_\+linear.\+F90.


\begin{DoxyCode}
165   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(in)},  \textcolor{keywordtype}{dimension(:)} :: t\textcolor{comment}{           !< Potential temperature relative to the surface}
166 \textcolor{comment}{                                                    !! [degC].}
167   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(in)},  \textcolor{keywordtype}{dimension(:)} :: s\textcolor{comment}{           !< Salinity [PSU].}
168   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(in)},  \textcolor{keywordtype}{dimension(:)} :: pressure\textcolor{comment}{    !< Pressure [Pa].}
169   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(out)}, \textcolor{keywordtype}{dimension(:)} :: drho\_dt\_out\textcolor{comment}{ !< The partial derivative of density with}
170 \textcolor{comment}{                                                    !! potential temperature [kg m-3 degC-1].}
171   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(out)}, \textcolor{keywordtype}{dimension(:)} :: drho\_ds\_out\textcolor{comment}{ !< The partial derivative of density with}
172 \textcolor{comment}{                                                    !! salinity [kg m-3 ppt-1].}
173   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(in)}                :: rho\_t0\_s0\textcolor{comment}{   !< The density at T=0, S=0 [kg m-3].}
174   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(in)}                :: drho\_dt\textcolor{comment}{     !< The derivative of density with temperature [kg m-3
       degC-1].}
175   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(in)}                :: drho\_ds\textcolor{comment}{     !< The derivative of density with salinity [kg m-3
       ppt-1].}
176   \textcolor{keywordtype}{integer}, \textcolor{keywordtype}{intent(in)}                :: start\textcolor{comment}{       !< The starting point in the arrays.}
177   \textcolor{keywordtype}{integer}, \textcolor{keywordtype}{intent(in)}                :: npts\textcolor{comment}{        !< The number of values to calculate.}
178   \textcolor{comment}{! Local variables}
179   \textcolor{keywordtype}{integer} :: j
180 
181   \textcolor{keywordflow}{do} j=start,start+npts-1
182     drho\_dt\_out(j) = drho\_dt
183     drho\_ds\_out(j) = drho\_ds
184 \textcolor{keywordflow}{  enddo}
185 
\end{DoxyCode}
\mbox{\Hypertarget{interfacemom__eos__linear_1_1calculate__density__derivs__linear_ae0e388dcf3724a78cf81c5f08e420bfa}\label{interfacemom__eos__linear_1_1calculate__density__derivs__linear_ae0e388dcf3724a78cf81c5f08e420bfa}} 
\index{mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+linear@{mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+linear}!calculate\+\_\+density\+\_\+derivs\+\_\+scalar\+\_\+linear@{calculate\+\_\+density\+\_\+derivs\+\_\+scalar\+\_\+linear}}
\index{calculate\+\_\+density\+\_\+derivs\+\_\+scalar\+\_\+linear@{calculate\+\_\+density\+\_\+derivs\+\_\+scalar\+\_\+linear}!mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+linear@{mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+linear}}
\subsubsection{\texorpdfstring{calculate\+\_\+density\+\_\+derivs\+\_\+scalar\+\_\+linear()}{calculate\_density\_derivs\_scalar\_linear()}}
{\footnotesize\ttfamily subroutine mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+linear\+::calculate\+\_\+density\+\_\+derivs\+\_\+scalar\+\_\+linear (\begin{DoxyParamCaption}\item[{real, intent(in)}]{T,  }\item[{real, intent(in)}]{S,  }\item[{real, intent(in)}]{pressure,  }\item[{real, intent(out)}]{drho\+\_\+d\+T\+\_\+out,  }\item[{real, intent(out)}]{drho\+\_\+d\+S\+\_\+out,  }\item[{real, intent(in)}]{Rho\+\_\+\+T0\+\_\+\+S0,  }\item[{real, intent(in)}]{d\+Rho\+\_\+dT,  }\item[{real, intent(in)}]{d\+Rho\+\_\+dS }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}



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


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em t} & Potential temperature relative to the surface \mbox{[}degC\mbox{]}.\\
\hline
\mbox{\tt in}  & {\em s} & Salinity \mbox{[}P\+SU\mbox{]}.\\
\hline
\mbox{\tt in}  & {\em pressure} & pressure \mbox{[}Pa\mbox{]}.\\
\hline
\mbox{\tt out}  & {\em drho\+\_\+dt\+\_\+out} & The partial derivative of density with potential temperature \mbox{[}kg m-\/3 deg\+C-\/1\mbox{]}.\\
\hline
\mbox{\tt out}  & {\em drho\+\_\+ds\+\_\+out} & The partial derivative of density with salinity \mbox{[}kg m-\/3 ppt-\/1\mbox{]}.\\
\hline
\mbox{\tt in}  & {\em rho\+\_\+t0\+\_\+s0} & The density at T=0, S=0 \mbox{[}kg m-\/3\mbox{]}.\\
\hline
\mbox{\tt in}  & {\em drho\+\_\+dt} & The derivatives of density with temperature \mbox{[}kg m-\/3 deg\+C-\/1\mbox{]}.\\
\hline
\mbox{\tt in}  & {\em drho\+\_\+ds} & The derivatives of density with salinity \mbox{[}kg m-\/3 ppt-\/1\mbox{]}. \\
\hline
\end{DoxyParams}


Definition at line 192 of file M\+O\+M\+\_\+\+E\+O\+S\+\_\+linear.\+F90.


\begin{DoxyCode}
192   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(in)}  :: t\textcolor{comment}{           !< Potential temperature relative to the surface}
193 \textcolor{comment}{                                      !! [degC].}
194   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(in)}  :: s\textcolor{comment}{           !< Salinity [PSU].}
195   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(in)}  :: pressure\textcolor{comment}{    !< pressure [Pa].}
196   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(out)} :: drho\_dt\_out\textcolor{comment}{ !< The partial derivative of density with}
197 \textcolor{comment}{                                      !! potential temperature [kg m-3 degC-1].}
198   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(out)} :: drho\_ds\_out\textcolor{comment}{ !< The partial derivative of density with}
199 \textcolor{comment}{                                      !! salinity [kg m-3 ppt-1].}
200   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(in)}  :: rho\_t0\_s0\textcolor{comment}{   !< The density at T=0, S=0 [kg m-3].}
201   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(in)}  :: drho\_dt\textcolor{comment}{     !< The derivatives of density with temperature [kg m-3 degC-1].}
202   \textcolor{keywordtype}{real},    \textcolor{keywordtype}{intent(in)}  :: drho\_ds\textcolor{comment}{     !< The derivatives of density with salinity [kg m-3 ppt-1].}
203   drho\_dt\_out = drho\_dt
204   drho\_ds\_out = drho\_ds
205 
\end{DoxyCode}


The documentation for this interface was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/home/cermak/src/\+M\+O\+M6.\+devrob/src/equation\+\_\+of\+\_\+state/M\+O\+M\+\_\+\+E\+O\+S\+\_\+linear.\+F90\end{DoxyCompactItemize}
