\hypertarget{interfacemom__eos__teos10_1_1calculate__density__derivs__teos10}{}\doxysection{mom\+\_\+eos\+\_\+teos10\+::calculate\+\_\+density\+\_\+derivs\+\_\+teos10 Interface Reference}
\label{interfacemom__eos__teos10_1_1calculate__density__derivs__teos10}\index{mom\_eos\_teos10::calculate\_density\_derivs\_teos10@{mom\_eos\_teos10::calculate\_density\_derivs\_teos10}}


\doxysubsection{Detailed Description}
For a given thermodynamic state, return the derivatives of density with conservative temperature and absolute salinity, using the T\+E\+O\+S10 expressions. 

Definition at line 41 of file M\+O\+M\+\_\+\+E\+O\+S\+\_\+\+T\+E\+O\+S10.\+F90.

\doxysubsection*{Private functions}
\begin{DoxyCompactItemize}
\item 
subroutine \mbox{\hyperlink{interfacemom__eos__teos10_1_1calculate__density__derivs__teos10_a7c29dc36bba6771e54b996ba169285ce}{calculate\+\_\+density\+\_\+derivs\+\_\+scalar\+\_\+teos10}} (T, S, pressure, drho\+\_\+dT, drho\+\_\+dS)
\begin{DoxyCompactList}\small\item\em For a given thermodynamic state, calculate the derivatives of density with conservative temperature and absolute salinity, using the T\+E\+O\+S10 expressions. \end{DoxyCompactList}\item 
subroutine \mbox{\hyperlink{interfacemom__eos__teos10_1_1calculate__density__derivs__teos10_a8dfe96aab9ef95fcf4db07408b20b42f}{calculate\+\_\+density\+\_\+derivs\+\_\+array\+\_\+teos10}} (T, S, pressure, drho\+\_\+dT, drho\+\_\+dS, start, npts)
\begin{DoxyCompactList}\small\item\em For a given thermodynamic state, calculate the derivatives of density with conservative temperature and absolute salinity, using the T\+E\+O\+S10 expressions. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
For a given thermodynamic state, return the derivatives of density with conservative temperature and absolute salinity, using the T\+E\+O\+S10 expressions. 

Definition at line 41 of file M\+O\+M\+\_\+\+E\+O\+S\+\_\+\+T\+E\+O\+S10.\+F90.



\doxysubsection{Functions and subroutines}
\mbox{\Hypertarget{interfacemom__eos__teos10_1_1calculate__density__derivs__teos10_a8dfe96aab9ef95fcf4db07408b20b42f}\label{interfacemom__eos__teos10_1_1calculate__density__derivs__teos10_a8dfe96aab9ef95fcf4db07408b20b42f}} 
\index{mom\_eos\_teos10::calculate\_density\_derivs\_teos10@{mom\_eos\_teos10::calculate\_density\_derivs\_teos10}!calculate\_density\_derivs\_array\_teos10@{calculate\_density\_derivs\_array\_teos10}}
\index{calculate\_density\_derivs\_array\_teos10@{calculate\_density\_derivs\_array\_teos10}!mom\_eos\_teos10::calculate\_density\_derivs\_teos10@{mom\_eos\_teos10::calculate\_density\_derivs\_teos10}}
\doxysubsubsection{\texorpdfstring{calculate\_density\_derivs\_array\_teos10()}{calculate\_density\_derivs\_array\_teos10()}}
{\footnotesize\ttfamily subroutine mom\+\_\+eos\+\_\+teos10\+::calculate\+\_\+density\+\_\+derivs\+\_\+teos10\+::calculate\+\_\+density\+\_\+derivs\+\_\+array\+\_\+teos10 (\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\+\_\+dT,  }\item[{real, dimension(\+:), intent(out)}]{drho\+\_\+dS,  }\item[{integer, intent(in)}]{start,  }\item[{integer, intent(in)}]{npts }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}



For a given thermodynamic state, calculate the derivatives of density with conservative temperature and absolute salinity, using the T\+E\+O\+S10 expressions. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em t} & Conservative temperature \mbox{[}degC\mbox{]}. \\
\hline
\mbox{\texttt{ in}}  & {\em s} & Absolute salinity \mbox{[}g kg-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ in}}  & {\em pressure} & pressure \mbox{[}Pa\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+dt} & The partial derivative of density with conservative temperature \mbox{[}kg m-\/3 deg\+C-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+ds} & The partial derivative of density with absolute salinity, \mbox{[}kg m-\/3 (g/kg)-\/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 169 of file M\+O\+M\+\_\+\+E\+O\+S\+\_\+\+T\+E\+O\+S10.\+F90.


\begin{DoxyCode}{0}
\DoxyCodeLine{169 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)},  \textcolor{keywordtype}{dimension(:)} :: T\textcolor{comment}{        !< Conservative temperature [degC].}}
\DoxyCodeLine{170 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)},  \textcolor{keywordtype}{dimension(:)} :: S\textcolor{comment}{        !< Absolute salinity [g kg-\/1].}}
\DoxyCodeLine{171 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)},  \textcolor{keywordtype}{dimension(:)} :: pressure\textcolor{comment}{ !< pressure [Pa].}}
\DoxyCodeLine{172 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(out)}, \textcolor{keywordtype}{dimension(:)} :: drho\_dT\textcolor{comment}{  !< The partial derivative of density with conservative}}
\DoxyCodeLine{173 \textcolor{comment}{                                                 !! temperature [kg m-\/3 degC-\/1].}}
\DoxyCodeLine{174 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(out)}, \textcolor{keywordtype}{dimension(:)} :: drho\_dS\textcolor{comment}{  !< The partial derivative of density with absolute salinity,}}
\DoxyCodeLine{175 \textcolor{comment}{                                                 !! [kg m-\/3 (g/kg)-\/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 }
\DoxyCodeLine{179   \textcolor{comment}{! Local variables}}
\DoxyCodeLine{180 \textcolor{keywordtype}{  real} :: zs, zt, zp}
\DoxyCodeLine{181   \textcolor{keywordtype}{integer} :: j}
\DoxyCodeLine{182 }
\DoxyCodeLine{183   \textcolor{keywordflow}{do} j=start,start+npts-\/1}
\DoxyCodeLine{184     \textcolor{comment}{!Conversions}}
\DoxyCodeLine{185     zs = s(j) \textcolor{comment}{!gsw\_sr\_from\_sp(S(j))       !Convert practical salinity to absolute salinity}}
\DoxyCodeLine{186     zt = t(j) \textcolor{comment}{!gsw\_ct\_from\_pt(S(j),T(j))  !Convert potantial temp to conservative temp}}
\DoxyCodeLine{187     zp = pressure(j)* pa2db         \textcolor{comment}{!Convert pressure from Pascal to decibar}}
\DoxyCodeLine{188     \textcolor{keywordflow}{if} (s(j) < -\/1.0e-\/10) \textcolor{keywordflow}{then} ; \textcolor{comment}{!Can we assume safely that this is a missing value?}}
\DoxyCodeLine{189       drho\_dt(j) = 0.0 ; drho\_ds(j) = 0.0}
\DoxyCodeLine{190     \textcolor{keywordflow}{else}}
\DoxyCodeLine{191       \textcolor{keyword}{call }gsw\_rho\_first\_derivatives(zs, zt, zp, drho\_dsa=drho\_ds(j), drho\_dct=drho\_dt(j))}
\DoxyCodeLine{192 \textcolor{keywordflow}{    endif}}
\DoxyCodeLine{193 \textcolor{keywordflow}{  enddo}}
\DoxyCodeLine{194 }

\end{DoxyCode}
\mbox{\Hypertarget{interfacemom__eos__teos10_1_1calculate__density__derivs__teos10_a7c29dc36bba6771e54b996ba169285ce}\label{interfacemom__eos__teos10_1_1calculate__density__derivs__teos10_a7c29dc36bba6771e54b996ba169285ce}} 
\index{mom\_eos\_teos10::calculate\_density\_derivs\_teos10@{mom\_eos\_teos10::calculate\_density\_derivs\_teos10}!calculate\_density\_derivs\_scalar\_teos10@{calculate\_density\_derivs\_scalar\_teos10}}
\index{calculate\_density\_derivs\_scalar\_teos10@{calculate\_density\_derivs\_scalar\_teos10}!mom\_eos\_teos10::calculate\_density\_derivs\_teos10@{mom\_eos\_teos10::calculate\_density\_derivs\_teos10}}
\doxysubsubsection{\texorpdfstring{calculate\_density\_derivs\_scalar\_teos10()}{calculate\_density\_derivs\_scalar\_teos10()}}
{\footnotesize\ttfamily subroutine mom\+\_\+eos\+\_\+teos10\+::calculate\+\_\+density\+\_\+derivs\+\_\+teos10\+::calculate\+\_\+density\+\_\+derivs\+\_\+scalar\+\_\+teos10 (\begin{DoxyParamCaption}\item[{real, intent(in)}]{T,  }\item[{real, intent(in)}]{S,  }\item[{real, intent(in)}]{pressure,  }\item[{real, intent(out)}]{drho\+\_\+dT,  }\item[{real, intent(out)}]{drho\+\_\+dS }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}



For a given thermodynamic state, calculate the derivatives of density with conservative temperature and absolute salinity, using the T\+E\+O\+S10 expressions. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em t} & Conservative temperature \mbox{[}degC\mbox{]} \\
\hline
\mbox{\texttt{ in}}  & {\em s} & Absolute Salinity \mbox{[}g kg-\/1\mbox{]} \\
\hline
\mbox{\texttt{ in}}  & {\em pressure} & pressure \mbox{[}Pa\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+dt} & The partial derivative of density with conservative temperature \mbox{[}kg m-\/3 deg\+C-\/1\mbox{]}. \\
\hline
\mbox{\texttt{ out}}  & {\em drho\+\_\+ds} & The partial derivative of density with absolute salinity, \mbox{[}kg m-\/3 (g/kg)-\/1\mbox{]}. \\
\hline
\end{DoxyParams}


Definition at line 200 of file M\+O\+M\+\_\+\+E\+O\+S\+\_\+\+T\+E\+O\+S10.\+F90.


\begin{DoxyCode}{0}
\DoxyCodeLine{200 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)}  :: T\textcolor{comment}{        !< Conservative temperature [degC]}}
\DoxyCodeLine{201 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)}  :: S\textcolor{comment}{        !< Absolute Salinity [g kg-\/1]}}
\DoxyCodeLine{202 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(in)}  :: pressure\textcolor{comment}{ !< pressure [Pa].}}
\DoxyCodeLine{203 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(out)} :: drho\_dT\textcolor{comment}{  !< The partial derivative of density with conservative}}
\DoxyCodeLine{204 \textcolor{comment}{                                   !! temperature [kg m-\/3 degC-\/1].}}
\DoxyCodeLine{205 \textcolor{keywordtype}{  real},    \textcolor{keywordtype}{intent(out)} :: drho\_dS\textcolor{comment}{  !< The partial derivative of density with absolute salinity,}}
\DoxyCodeLine{206 \textcolor{comment}{                                   !! [kg m-\/3 (g/kg)-\/1].}}
\DoxyCodeLine{207 }
\DoxyCodeLine{208   \textcolor{comment}{! Local variables}}
\DoxyCodeLine{209 \textcolor{keywordtype}{  real} :: zs, zt, zp}
\DoxyCodeLine{210   \textcolor{comment}{!Conversions}}
\DoxyCodeLine{211   zs = s \textcolor{comment}{!gsw\_sr\_from\_sp(S)       !Convert practical salinity to absolute salinity}}
\DoxyCodeLine{212   zt = t \textcolor{comment}{!gsw\_ct\_from\_pt(S,T)  !Convert potantial temp to conservative temp}}
\DoxyCodeLine{213   zp = pressure* pa2db         \textcolor{comment}{!Convert pressure from Pascal to decibar}}
\DoxyCodeLine{214   \textcolor{keywordflow}{if} (s < -\/1.0e-\/10) \textcolor{keywordflow}{return} \textcolor{comment}{!Can we assume safely that this is a missing value?}}
\DoxyCodeLine{215   \textcolor{keyword}{call }gsw\_rho\_first\_derivatives(zs, zt, zp, drho\_dsa=drho\_ds, drho\_dct=drho\_dt)}

\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\+\_\+\+T\+E\+O\+S10.\+F90\end{DoxyCompactItemize}
