\hypertarget{namespacemom__unit__tests}{}\section{mom\+\_\+unit\+\_\+tests Module Reference}
\label{namespacemom__unit__tests}\index{mom\+\_\+unit\+\_\+tests@{mom\+\_\+unit\+\_\+tests}}


\subsection{Detailed Description}
Invokes unit tests in all modules that have them. \subsection*{Functions/\+Subroutines}
\begin{DoxyCompactItemize}
\item 
subroutine, public \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}


\subsection{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}}
\subsubsection{\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{\tt in}  & {\em verbosity} & The verbosity level \\
\hline
\end{DoxyParams}


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


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