\hypertarget{namespacemom__unit__tests}{}\doxysection{mom\+\_\+unit\+\_\+tests Module Reference}
\label{namespacemom__unit__tests}\index{mom\_unit\_tests@{mom\_unit\_tests}}


\doxysubsection{Detailed Description}
Invokes unit tests in all modules that have them. \doxysubsection*{Functions/\+Subroutines}
\begin{DoxyCompactItemize}
\item 
subroutine, public \mbox{\hyperlink{namespacemom__unit__tests_a57645db02bc734c32de50d028ef906ac}{unit\+\_\+tests}} (verbosity)
\begin{DoxyCompactList}\small\item\em Calls unit tests for other modules. Note that if a unit test returns true, a F\+A\+T\+AL error is triggered. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Function/\+Subroutine Documentation}
\mbox{\Hypertarget{namespacemom__unit__tests_a57645db02bc734c32de50d028ef906ac}\label{namespacemom__unit__tests_a57645db02bc734c32de50d028ef906ac}} 
\index{mom\_unit\_tests@{mom\_unit\_tests}!unit\_tests@{unit\_tests}}
\index{unit\_tests@{unit\_tests}!mom\_unit\_tests@{mom\_unit\_tests}}
\doxysubsubsection{\texorpdfstring{unit\_tests()}{unit\_tests()}}
{\footnotesize\ttfamily subroutine, public mom\+\_\+unit\+\_\+tests\+::unit\+\_\+tests (\begin{DoxyParamCaption}\item[{integer, intent(in)}]{verbosity }\end{DoxyParamCaption})}



Calls unit tests for other modules. Note that if a unit test returns true, a F\+A\+T\+AL error is triggered. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em verbosity} & The verbosity level \\
\hline
\end{DoxyParams}


Definition at line 24 of file M\+O\+M\+\_\+unit\+\_\+tests.\+F90.


\begin{DoxyCode}{0}
\DoxyCodeLine{24   \textcolor{comment}{! Arguments}}
\DoxyCodeLine{25   \textcolor{keywordtype}{integer}, \textcolor{keywordtype}{intent(in)} :: verbosity\textcolor{comment}{ !< The verbosity level}}
\DoxyCodeLine{26   \textcolor{comment}{! Local variables}}
\DoxyCodeLine{27   \textcolor{keywordtype}{logical} :: verbose}
\DoxyCodeLine{28 }
\DoxyCodeLine{29   verbose = verbosity>=5}
\DoxyCodeLine{30 }
\DoxyCodeLine{31   \textcolor{keywordflow}{if} (is\_root\_pe()) \textcolor{keywordflow}{then} \textcolor{comment}{! The following need only be tested on 1 PE}}
\DoxyCodeLine{32     \textcolor{keywordflow}{if} (string\_functions\_unit\_tests(verbose)) \textcolor{keyword}{call }mom\_error(fatal, \&}
\DoxyCodeLine{33        \textcolor{stringliteral}{"MOM\_unit\_tests: string\_functions\_unit\_tests FAILED"})}
\DoxyCodeLine{34     \textcolor{keywordflow}{if} (remapping\_unit\_tests(verbose)) \textcolor{keyword}{call }mom\_error(fatal, \&}
\DoxyCodeLine{35        \textcolor{stringliteral}{"MOM\_unit\_tests: remapping\_unit\_tests FAILED"})}
\DoxyCodeLine{36     \textcolor{keywordflow}{if} (neutral\_diffusion\_unit\_tests(verbose)) \textcolor{keyword}{call }mom\_error(fatal, \&}
\DoxyCodeLine{37        \textcolor{stringliteral}{"MOM\_unit\_tests: neutralDiffusionUnitTests FAILED"})}
\DoxyCodeLine{38     \textcolor{keywordflow}{if} (diag\_vkernels\_unit\_tests(verbose)) \textcolor{keyword}{call }mom\_error(fatal, \&}
\DoxyCodeLine{39        \textcolor{stringliteral}{"MOM\_unit\_tests: diag\_vkernels\_unit\_tests FAILED"})}
\DoxyCodeLine{40     \textcolor{keywordflow}{if} (random\_unit\_tests(verbose)) \textcolor{keyword}{call }mom\_error(fatal, \&}
\DoxyCodeLine{41        \textcolor{stringliteral}{"MOM\_unit\_tests: random\_unit\_tests FAILED"})}
\DoxyCodeLine{42     \textcolor{keywordflow}{if} (near\_boundary\_unit\_tests(verbose)) \textcolor{keyword}{call }mom\_error(fatal, \&}
\DoxyCodeLine{43        \textcolor{stringliteral}{"MOM\_unit\_tests: near\_boundary\_unit\_tests FAILED"})}
\DoxyCodeLine{44 \textcolor{keywordflow}{  endif}}
\DoxyCodeLine{45 }

\end{DoxyCode}
