\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 \mbox{\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 \mbox{\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{\texttt{ in}}  & {\em t} & Potential temperature relative to the surface \mbox{[}degC\mbox{]}. \\
\hline
\mbox{\texttt{ in}}  & {\em s} & Salinity \mbox{[}P\+SU\mbox{]}. \\
\hline
\mbox{\texttt{ in}}  & {\em pressure} & Pressure \mbox{[}Pa\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+dt\+\_\+out} & The partial derivative of density with potential temperature \mbox{[}kg m-\/3 deg\+C-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+ds\+\_\+out} & The partial derivative of density with salinity \mbox{[}kg m-\/3 ppt-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ in}}  & {\em rho\+\_\+t0\+\_\+s0} & The density at T=0, S=0 \mbox{[}kg m-\/3\mbox{]}. \\
\hline
\mbox{\texttt{ in}}  & {\em drho\+\_\+dt} & The derivative of density with temperature \mbox{[}kg m-\/3 deg\+C-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ in}}  & {\em drho\+\_\+ds} & The derivative of density with salinity \mbox{[}kg m-\/3 ppt-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ in}}  & {\em start} & The starting point in the arrays. \\
\hline
\mbox{\texttt{ 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}{0}
\DoxyCodeLine{165 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)},  \textcolor{keywordtype}{dimension(:)} :: T\textcolor{comment}{           !< Potential temperature relative to the surface}}
\DoxyCodeLine{166 \textcolor{comment}{                                                    !! [degC].}}
\DoxyCodeLine{167 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)},  \textcolor{keywordtype}{dimension(:)} :: S\textcolor{comment}{           !< Salinity [PSU].}}
\DoxyCodeLine{168 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)},  \textcolor{keywordtype}{dimension(:)} :: pressure\textcolor{comment}{    !< Pressure [Pa].}}
\DoxyCodeLine{169 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(out)}, \textcolor{keywordtype}{dimension(:)} :: drho\_dT\_out\textcolor{comment}{ !< The partial derivative of density with}}
\DoxyCodeLine{170 \textcolor{comment}{                                                    !! potential temperature [kg m-3 degC-1].}}
\DoxyCodeLine{171 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(out)}, \textcolor{keywordtype}{dimension(:)} :: drho\_dS\_out\textcolor{comment}{ !< The partial derivative of density with}}
\DoxyCodeLine{172 \textcolor{comment}{                                                    !! salinity [kg m-3 ppt-1].}}
\DoxyCodeLine{173 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)}                :: Rho\_T0\_S0\textcolor{comment}{   !< The density at T=0, S=0 [kg m-3].}}
\DoxyCodeLine{174 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)}                :: dRho\_dT\textcolor{comment}{     !< The derivative of density with temperature [kg m-3 degC-1].}}
\DoxyCodeLine{175 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)}                :: dRho\_dS\textcolor{comment}{     !< The derivative of density with salinity [kg m-3 ppt-1].}}
\DoxyCodeLine{176   \textcolor{keywordtype}{integer}, \textcolor{keywordtype}{intent(in)}                :: start\textcolor{comment}{       !< The starting point in the arrays.}}
\DoxyCodeLine{177   \textcolor{keywordtype}{integer}, \textcolor{keywordtype}{intent(in)}                :: npts\textcolor{comment}{        !< The number of values to calculate.}}
\DoxyCodeLine{178   \textcolor{comment}{! Local variables}}
\DoxyCodeLine{179   \textcolor{keywordtype}{integer} :: j}
\DoxyCodeLine{180 }
\DoxyCodeLine{181   \textcolor{keywordflow}{do} j=start,start+npts-1}
\DoxyCodeLine{182     drho\_dt\_out(j) = drho\_dt}
\DoxyCodeLine{183     drho\_ds\_out(j) = drho\_ds}
\DoxyCodeLine{184 \textcolor{keywordflow}{  enddo}}
\DoxyCodeLine{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{\texttt{ in}}  & {\em t} & Potential temperature relative to the surface \mbox{[}degC\mbox{]}. \\
\hline
\mbox{\texttt{ in}}  & {\em s} & Salinity \mbox{[}P\+SU\mbox{]}. \\
\hline
\mbox{\texttt{ in}}  & {\em pressure} & pressure \mbox{[}Pa\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+dt\+\_\+out} & The partial derivative of density with potential temperature \mbox{[}kg m-\/3 deg\+C-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+ds\+\_\+out} & The partial derivative of density with salinity \mbox{[}kg m-\/3 ppt-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ in}}  & {\em rho\+\_\+t0\+\_\+s0} & The density at T=0, S=0 \mbox{[}kg m-\/3\mbox{]}. \\
\hline
\mbox{\texttt{ in}}  & {\em drho\+\_\+dt} & The derivatives of density with temperature \mbox{[}kg m-\/3 deg\+C-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ 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}{0}
\DoxyCodeLine{192 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)}  :: T\textcolor{comment}{           !< Potential temperature relative to the surface}}
\DoxyCodeLine{193 \textcolor{comment}{                                      !! [degC].}}
\DoxyCodeLine{194 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)}  :: S\textcolor{comment}{           !< Salinity [PSU].}}
\DoxyCodeLine{195 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)}  :: pressure\textcolor{comment}{    !< pressure [Pa].}}
\DoxyCodeLine{196 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(out)} :: drho\_dT\_out\textcolor{comment}{ !< The partial derivative of density with}}
\DoxyCodeLine{197 \textcolor{comment}{                                      !! potential temperature [kg m-3 degC-1].}}
\DoxyCodeLine{198 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(out)} :: drho\_dS\_out\textcolor{comment}{ !< The partial derivative of density with}}
\DoxyCodeLine{199 \textcolor{comment}{                                      !! salinity [kg m-3 ppt-1].}}
\DoxyCodeLine{200 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)}  :: Rho\_T0\_S0\textcolor{comment}{   !< The density at T=0, S=0 [kg m-3].}}
\DoxyCodeLine{201 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)}  :: dRho\_dT\textcolor{comment}{     !< The derivatives of density with temperature [kg m-3 degC-1].}}
\DoxyCodeLine{202 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)}  :: dRho\_dS\textcolor{comment}{     !< The derivatives of density with salinity [kg m-3 ppt-1].}}
\DoxyCodeLine{203   drho\_dt\_out = drho\_dt}
\DoxyCodeLine{204   drho\_ds\_out = drho\_ds}
\DoxyCodeLine{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}
