\hypertarget{interfacemom__eos__linear_1_1calculate__density__second__derivs__linear}{}\section{mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+second\+\_\+derivs\+\_\+linear Interface Reference}
\label{interfacemom__eos__linear_1_1calculate__density__second__derivs__linear}\index{mom\_eos\_linear::calculate\_density\_second\_derivs\_linear@{mom\_eos\_linear::calculate\_density\_second\_derivs\_linear}}


\subsection{Detailed Description}
For a given thermodynamic state, return the second derivatives of density with various combinations of temperature, salinity, and pressure. Note that with a simple linear equation of state these second derivatives are all 0. 

Definition at line 47 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__second__derivs__linear_a86829db3ebbd03e8c69a8f6ef1625a45}{calculate\+\_\+density\+\_\+second\+\_\+derivs\+\_\+scalar\+\_\+linear}} (T, S, pressure, drho\+\_\+d\+S\+\_\+dS, drho\+\_\+d\+S\+\_\+dT, drho\+\_\+d\+T\+\_\+dT, drho\+\_\+d\+S\+\_\+dP, drho\+\_\+d\+T\+\_\+dP)
\begin{DoxyCompactList}\small\item\em This subroutine calculates the five, partial second derivatives of density w.\+r.\+t. potential temperature and salinity and pressure which for a linear equation of state should all be 0. \end{DoxyCompactList}\item 
subroutine \mbox{\hyperlink{interfacemom__eos__linear_1_1calculate__density__second__derivs__linear_abc2a8f322800ad9abb422cb31c98fcdd}{calculate\+\_\+density\+\_\+second\+\_\+derivs\+\_\+array\+\_\+linear}} (T, S, pressure, drho\+\_\+d\+S\+\_\+dS, drho\+\_\+d\+S\+\_\+dT, drho\+\_\+d\+T\+\_\+dT, drho\+\_\+d\+S\+\_\+dP, drho\+\_\+d\+T\+\_\+dP, start, npts)
\begin{DoxyCompactList}\small\item\em This subroutine calculates the five, partial second derivatives of density w.\+r.\+t. potential temperature and salinity and pressure which for a linear equation of state should all be 0. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
For a given thermodynamic state, return the second derivatives of density with various combinations of temperature, salinity, and pressure. Note that with a simple linear equation of state these second derivatives are all 0. 

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



\subsection{Functions and subroutines}
\mbox{\Hypertarget{interfacemom__eos__linear_1_1calculate__density__second__derivs__linear_abc2a8f322800ad9abb422cb31c98fcdd}\label{interfacemom__eos__linear_1_1calculate__density__second__derivs__linear_abc2a8f322800ad9abb422cb31c98fcdd}} 
\index{mom\_eos\_linear::calculate\_density\_second\_derivs\_linear@{mom\_eos\_linear::calculate\_density\_second\_derivs\_linear}!calculate\_density\_second\_derivs\_array\_linear@{calculate\_density\_second\_derivs\_array\_linear}}
\index{calculate\_density\_second\_derivs\_array\_linear@{calculate\_density\_second\_derivs\_array\_linear}!mom\_eos\_linear::calculate\_density\_second\_derivs\_linear@{mom\_eos\_linear::calculate\_density\_second\_derivs\_linear}}
\subsubsection{\texorpdfstring{calculate\_density\_second\_derivs\_array\_linear()}{calculate\_density\_second\_derivs\_array\_linear()}}
{\footnotesize\ttfamily subroutine mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+second\+\_\+derivs\+\_\+linear\+::calculate\+\_\+density\+\_\+second\+\_\+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\+S\+\_\+dS,  }\item[{real, dimension(\+:), intent(out)}]{drho\+\_\+d\+S\+\_\+dT,  }\item[{real, dimension(\+:), intent(out)}]{drho\+\_\+d\+T\+\_\+dT,  }\item[{real, dimension(\+:), intent(out)}]{drho\+\_\+d\+S\+\_\+dP,  }\item[{real, dimension(\+:), intent(out)}]{drho\+\_\+d\+T\+\_\+dP,  }\item[{integer, intent(in)}]{start,  }\item[{integer, intent(in)}]{npts }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}



This subroutine calculates the five, partial second derivatives of density w.\+r.\+t. potential temperature and salinity and pressure which for a linear equation of state should all be 0. 


\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\+\_\+ds\+\_\+ds} & The second derivative of density with salinity \mbox{[}kg m-\/3 P\+S\+U-\/2\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+ds\+\_\+dt} & The second derivative of density with temperature and salinity \mbox{[}kg m-\/3 ppt-\/1 deg\+C-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+dt\+\_\+dt} & The second derivative of density with temperature \mbox{[}kg m-\/3 deg\+C-\/2\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+ds\+\_\+dp} & The second derivative of density with salinity and pressure \mbox{[}kg m-\/3 P\+S\+U-\/1 Pa-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+dt\+\_\+dp} & The second derivative of density with temperature and pressure \mbox{[}kg m-\/3 deg\+C-\/1 Pa-\/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 238 of file M\+O\+M\+\_\+\+E\+O\+S\+\_\+linear.\+F90.


\begin{DoxyCode}{0}
\DoxyCodeLine{238 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(in)}  :: T\textcolor{comment}{           !< Potential temperature relative to the surface [degC].}}
\DoxyCodeLine{239 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(in)}  :: S\textcolor{comment}{           !< Salinity [PSU].}}
\DoxyCodeLine{240 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(in)}  :: pressure\textcolor{comment}{    !< pressure [Pa].}}
\DoxyCodeLine{241 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(out)} :: drho\_dS\_dS\textcolor{comment}{  !< The second derivative of density with}}
\DoxyCodeLine{242 \textcolor{comment}{                                                 !! salinity [kg m-3 PSU-2].}}
\DoxyCodeLine{243 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(out)} :: drho\_dS\_dT\textcolor{comment}{  !< The second derivative of density with}}
\DoxyCodeLine{244 \textcolor{comment}{                                                 !! temperature and salinity [kg m-3 ppt-1 degC-1].}}
\DoxyCodeLine{245 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(out)} :: drho\_dT\_dT\textcolor{comment}{  !< The second derivative of density with}}
\DoxyCodeLine{246 \textcolor{comment}{                                                 !! temperature [kg m-3 degC-2].}}
\DoxyCodeLine{247 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(out)} :: drho\_dS\_dP\textcolor{comment}{  !< The second derivative of density with}}
\DoxyCodeLine{248 \textcolor{comment}{                                                 !! salinity and pressure [kg m-3 PSU-1 Pa-1].}}
\DoxyCodeLine{249 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(out)} :: drho\_dT\_dP\textcolor{comment}{  !< The second derivative of density with}}
\DoxyCodeLine{250 \textcolor{comment}{                                                 !! temperature and pressure [kg m-3 degC-1 Pa-1].}}
\DoxyCodeLine{251   \textcolor{keywordtype}{integer}, \textcolor{keywordtype}{intent(in)}  :: start\textcolor{comment}{       !< The starting point in the arrays.}}
\DoxyCodeLine{252   \textcolor{keywordtype}{integer}, \textcolor{keywordtype}{intent(in)}  :: npts\textcolor{comment}{        !< The number of values to calculate.}}
\DoxyCodeLine{253   \textcolor{comment}{! Local variables}}
\DoxyCodeLine{254   \textcolor{keywordtype}{integer} :: j}
\DoxyCodeLine{255   \textcolor{keywordflow}{do} j=start,start+npts-1}
\DoxyCodeLine{256     drho\_ds\_ds(j) = 0.}
\DoxyCodeLine{257     drho\_ds\_dt(j) = 0.}
\DoxyCodeLine{258     drho\_dt\_dt(j) = 0.}
\DoxyCodeLine{259     drho\_ds\_dp(j) = 0.}
\DoxyCodeLine{260     drho\_dt\_dp(j) = 0.}
\DoxyCodeLine{261 \textcolor{keywordflow}{  enddo}}
\DoxyCodeLine{262 }

\end{DoxyCode}
\mbox{\Hypertarget{interfacemom__eos__linear_1_1calculate__density__second__derivs__linear_a86829db3ebbd03e8c69a8f6ef1625a45}\label{interfacemom__eos__linear_1_1calculate__density__second__derivs__linear_a86829db3ebbd03e8c69a8f6ef1625a45}} 
\index{mom\_eos\_linear::calculate\_density\_second\_derivs\_linear@{mom\_eos\_linear::calculate\_density\_second\_derivs\_linear}!calculate\_density\_second\_derivs\_scalar\_linear@{calculate\_density\_second\_derivs\_scalar\_linear}}
\index{calculate\_density\_second\_derivs\_scalar\_linear@{calculate\_density\_second\_derivs\_scalar\_linear}!mom\_eos\_linear::calculate\_density\_second\_derivs\_linear@{mom\_eos\_linear::calculate\_density\_second\_derivs\_linear}}
\subsubsection{\texorpdfstring{calculate\_density\_second\_derivs\_scalar\_linear()}{calculate\_density\_second\_derivs\_scalar\_linear()}}
{\footnotesize\ttfamily subroutine mom\+\_\+eos\+\_\+linear\+::calculate\+\_\+density\+\_\+second\+\_\+derivs\+\_\+linear\+::calculate\+\_\+density\+\_\+second\+\_\+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\+S\+\_\+dS,  }\item[{real, intent(out)}]{drho\+\_\+d\+S\+\_\+dT,  }\item[{real, intent(out)}]{drho\+\_\+d\+T\+\_\+dT,  }\item[{real, intent(out)}]{drho\+\_\+d\+S\+\_\+dP,  }\item[{real, intent(out)}]{drho\+\_\+d\+T\+\_\+dP }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}



This subroutine calculates the five, partial second derivatives of density w.\+r.\+t. potential temperature and salinity and pressure which for a linear equation of state should all be 0. 


\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\+\_\+ds\+\_\+ds} & The second derivative of density with salinity \mbox{[}kg m-\/3 P\+S\+U-\/2\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+ds\+\_\+dt} & The second derivative of density with temperature and salinity \mbox{[}kg m-\/3 ppt-\/1 deg\+C-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+dt\+\_\+dt} & The second derivative of density with temperature \mbox{[}kg m-\/3 deg\+C-\/2\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+ds\+\_\+dp} & The second derivative of density with salinity and pressure \mbox{[}kg m-\/3 P\+S\+U-\/1 Pa-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+dt\+\_\+dp} & The second derivative of density with temperature and pressure \mbox{[}kg m-\/3 deg\+C-\/1 Pa-\/1\mbox{]}. \\
\hline
\end{DoxyParams}


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


\begin{DoxyCode}{0}
\DoxyCodeLine{212 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{intent(in)}  :: T\textcolor{comment}{           !< Potential temperature relative to the surface [degC].}}
\DoxyCodeLine{213 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{intent(in)}  :: S\textcolor{comment}{           !< Salinity [PSU].}}
\DoxyCodeLine{214 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{intent(in)}  :: pressure\textcolor{comment}{    !< pressure [Pa].}}
\DoxyCodeLine{215 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{intent(out)} :: drho\_dS\_dS\textcolor{comment}{  !< The second derivative of density with}}
\DoxyCodeLine{216 \textcolor{comment}{                                   !! salinity [kg m-3 PSU-2].}}
\DoxyCodeLine{217 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{intent(out)} :: drho\_dS\_dT\textcolor{comment}{  !< The second derivative of density with}}
\DoxyCodeLine{218 \textcolor{comment}{                                   !! temperature and salinity [kg m-3 ppt-1 degC-1].}}
\DoxyCodeLine{219 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{intent(out)} :: drho\_dT\_dT\textcolor{comment}{  !< The second derivative of density with}}
\DoxyCodeLine{220 \textcolor{comment}{                                   !! temperature [kg m-3 degC-2].}}
\DoxyCodeLine{221 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{intent(out)} :: drho\_dS\_dP\textcolor{comment}{  !< The second derivative of density with}}
\DoxyCodeLine{222 \textcolor{comment}{                                   !! salinity and pressure [kg m-3 PSU-1 Pa-1].}}
\DoxyCodeLine{223 \textcolor{keywordtype}{  real}, \textcolor{keywordtype}{intent(out)} :: drho\_dT\_dP\textcolor{comment}{  !< The second derivative of density with}}
\DoxyCodeLine{224 \textcolor{comment}{                                   !! temperature and pressure [kg m-3 degC-1 Pa-1].}}
\DoxyCodeLine{225 }
\DoxyCodeLine{226   drho\_ds\_ds = 0.}
\DoxyCodeLine{227   drho\_ds\_dt = 0.}
\DoxyCodeLine{228   drho\_dt\_dt = 0.}
\DoxyCodeLine{229   drho\_ds\_dp = 0.}
\DoxyCodeLine{230   drho\_dt\_dp = 0.}
\DoxyCodeLine{231 }

\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}
