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


\begin{DoxyCode}
238   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(in)}  :: T\textcolor{comment}{           !< Potential temperature relative to the surface [degC].}
239   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(in)}  :: S\textcolor{comment}{           !< Salinity [PSU].}
240   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(in)}  :: pressure\textcolor{comment}{    !< pressure [Pa].}
241   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(out)} :: drho\_dS\_dS\textcolor{comment}{  !< The second derivative of density with}
242 \textcolor{comment}{                                                 !! salinity [kg m-3 PSU-2].}
243   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(out)} :: drho\_dS\_dT\textcolor{comment}{  !< The second derivative of density with}
244 \textcolor{comment}{                                                 !! temperature and salinity [kg m-3 ppt-1 degC-1].}
245   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(out)} :: drho\_dT\_dT\textcolor{comment}{  !< The second derivative of density with}
246 \textcolor{comment}{                                                 !! temperature [kg m-3 degC-2].}
247   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(out)} :: drho\_dS\_dP\textcolor{comment}{  !< The second derivative of density with}
248 \textcolor{comment}{                                                 !! salinity and pressure [kg m-3 PSU-1 Pa-1].}
249   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{dimension(:)}, \textcolor{keywordtype}{intent(out)} :: drho\_dT\_dP\textcolor{comment}{  !< The second derivative of density with}
250 \textcolor{comment}{                                                 !! temperature and pressure [kg m-3 degC-1 Pa-1].}
251   \textcolor{keywordtype}{integer}, \textcolor{keywordtype}{intent(in)}  :: start\textcolor{comment}{       !< The starting point in the arrays.}
252   \textcolor{keywordtype}{integer}, \textcolor{keywordtype}{intent(in)}  :: npts\textcolor{comment}{        !< The number of values to calculate.}
253   \textcolor{comment}{! Local variables}
254   \textcolor{keywordtype}{integer} :: j
255   \textcolor{keywordflow}{do} j=start,start+npts-1
256     drho\_ds\_ds(j) = 0.
257     drho\_ds\_dt(j) = 0.
258     drho\_dt\_dt(j) = 0.
259     drho\_ds\_dp(j) = 0.
260     drho\_dt\_dp(j) = 0.
261 \textcolor{keywordflow}{  enddo}
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{\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\+\_\+ds\+\_\+ds} & The second derivative of density with salinity \mbox{[}kg m-\/3 P\+S\+U-\/2\mbox{]}.\\
\hline
\mbox{\tt 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{\tt out}  & {\em drho\+\_\+dt\+\_\+dt} & The second derivative of density with temperature \mbox{[}kg m-\/3 deg\+C-\/2\mbox{]}.\\
\hline
\mbox{\tt 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{\tt 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}
212   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{intent(in)}  :: T\textcolor{comment}{           !< Potential temperature relative to the surface [degC].}
213   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{intent(in)}  :: S\textcolor{comment}{           !< Salinity [PSU].}
214   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{intent(in)}  :: pressure\textcolor{comment}{    !< pressure [Pa].}
215   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{intent(out)} :: drho\_dS\_dS\textcolor{comment}{  !< The second derivative of density with}
216 \textcolor{comment}{                                   !! salinity [kg m-3 PSU-2].}
217   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{intent(out)} :: drho\_dS\_dT\textcolor{comment}{  !< The second derivative of density with}
218 \textcolor{comment}{                                   !! temperature and salinity [kg m-3 ppt-1 degC-1].}
219   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{intent(out)} :: drho\_dT\_dT\textcolor{comment}{  !< The second derivative of density with}
220 \textcolor{comment}{                                   !! temperature [kg m-3 degC-2].}
221   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{intent(out)} :: drho\_dS\_dP\textcolor{comment}{  !< The second derivative of density with}
222 \textcolor{comment}{                                   !! salinity and pressure [kg m-3 PSU-1 Pa-1].}
223   \textcolor{keywordtype}{real}, \textcolor{keywordtype}{intent(out)} :: drho\_dT\_dP\textcolor{comment}{  !< The second derivative of density with}
224 \textcolor{comment}{                                   !! temperature and pressure [kg m-3 degC-1 Pa-1].}
225 
226   drho\_ds\_ds = 0.
227   drho\_ds\_dt = 0.
228   drho\_dt\_dt = 0.
229   drho\_ds\_dp = 0.
230   drho\_dt\_dp = 0.
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}
