\hypertarget{interfacemom__file__parser_1_1log__version}{}\doxysection{mom\+\_\+file\+\_\+parser\+::log\+\_\+version Interface Reference}
\label{interfacemom__file__parser_1_1log__version}\index{mom\_file\_parser::log\_version@{mom\_file\_parser::log\_version}}


\doxysubsection{Detailed Description}
An overloaded interface to log version information about modules. 

Definition at line 109 of file M\+O\+M\+\_\+file\+\_\+parser.\+F90.

\doxysubsection*{Private functions}
\begin{DoxyCompactItemize}
\item 
subroutine \mbox{\hyperlink{interfacemom__file__parser_1_1log__version_aad77fc3fc9c543215f95c376da89d898}{log\+\_\+version\+\_\+cs}} (CS, modulename, version, desc, log\+\_\+to\+\_\+all, all\+\_\+default, layout, debugging)
\begin{DoxyCompactList}\small\item\em Log the version of a module to a log file and/or stdout, and/or to the parameter documentation file. \end{DoxyCompactList}\item 
subroutine \mbox{\hyperlink{interfacemom__file__parser_1_1log__version_a04c361672ee019843e8f95f13c35d054}{log\+\_\+version\+\_\+plain}} (modulename, version)
\begin{DoxyCompactList}\small\item\em Log the version of a module to a log file and/or stdout. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
An overloaded interface to log version information about modules. 

Definition at line 109 of file M\+O\+M\+\_\+file\+\_\+parser.\+F90.



\doxysubsection{Functions and subroutines}
\mbox{\Hypertarget{interfacemom__file__parser_1_1log__version_aad77fc3fc9c543215f95c376da89d898}\label{interfacemom__file__parser_1_1log__version_aad77fc3fc9c543215f95c376da89d898}} 
\index{mom\_file\_parser::log\_version@{mom\_file\_parser::log\_version}!log\_version\_cs@{log\_version\_cs}}
\index{log\_version\_cs@{log\_version\_cs}!mom\_file\_parser::log\_version@{mom\_file\_parser::log\_version}}
\doxysubsubsection{\texorpdfstring{log\_version\_cs()}{log\_version\_cs()}}
{\footnotesize\ttfamily subroutine mom\+\_\+file\+\_\+parser\+::log\+\_\+version\+::log\+\_\+version\+\_\+cs (\begin{DoxyParamCaption}\item[{type(\mbox{\hyperlink{structmom__file__parser_1_1param__file__type}{param\+\_\+file\+\_\+type}}), intent(in)}]{CS,  }\item[{character(len=$\ast$), intent(in)}]{modulename,  }\item[{character(len=$\ast$), intent(in)}]{version,  }\item[{character(len=$\ast$), intent(in), optional}]{desc,  }\item[{logical, intent(in), optional}]{log\+\_\+to\+\_\+all,  }\item[{logical, intent(in), optional}]{all\+\_\+default,  }\item[{logical, intent(in), optional}]{layout,  }\item[{logical, intent(in), optional}]{debugging }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}



Log the version of a module to a log file and/or stdout, and/or to the parameter documentation file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em cs} & File parser type \\
\hline
\mbox{\texttt{ in}}  & {\em modulename} & Name of calling module \\
\hline
\mbox{\texttt{ in}}  & {\em version} & Version string of module \\
\hline
\mbox{\texttt{ in}}  & {\em desc} & Module description \\
\hline
\mbox{\texttt{ in}}  & {\em log\+\_\+to\+\_\+all} & If present and true, log this parameter to the ...\+\_\+doc.\+all files, even if this module also has layout or debugging parameters. \\
\hline
\mbox{\texttt{ in}}  & {\em all\+\_\+default} & If true, all parameters take their default values. \\
\hline
\mbox{\texttt{ in}}  & {\em layout} & If present and true, this module has layout parameters. \\
\hline
\mbox{\texttt{ in}}  & {\em debugging} & If present and true, this module has debugging parameters. \\
\hline
\end{DoxyParams}


Definition at line 1252 of file M\+O\+M\+\_\+file\+\_\+parser.\+F90.


\begin{DoxyCode}{0}
\DoxyCodeLine{1253   \textcolor{keywordtype}{type}(param\_file\_type),      \textcolor{keywordtype}{intent(in)} :: CS\textcolor{comment}{         !< File parser type}}
\DoxyCodeLine{1254   \textcolor{keywordtype}{character(len=*)},           \textcolor{keywordtype}{intent(in)} :: modulename\textcolor{comment}{ !< Name of calling module}}
\DoxyCodeLine{1255   \textcolor{keywordtype}{character(len=*)},           \textcolor{keywordtype}{intent(in)} :: version\textcolor{comment}{    !< Version string of module}}
\DoxyCodeLine{1256   \textcolor{keywordtype}{character(len=*)}, \textcolor{keywordtype}{optional}, \textcolor{keywordtype}{intent(in)} :: desc\textcolor{comment}{       !< Module description}}
\DoxyCodeLine{1257   \textcolor{keywordtype}{logical},          \textcolor{keywordtype}{optional}, \textcolor{keywordtype}{intent(in)} :: log\_to\_all\textcolor{comment}{ !< If present and true, log this parameter to the}}
\DoxyCodeLine{1258 \textcolor{comment}{                                                       !! ...\_doc.all files, even if this module also has layout}}
\DoxyCodeLine{1259 \textcolor{comment}{                                                       !! or debugging parameters.}}
\DoxyCodeLine{1260   \textcolor{keywordtype}{logical},          \textcolor{keywordtype}{optional}, \textcolor{keywordtype}{intent(in)} :: all\_default\textcolor{comment}{ !< If true, all parameters take their default values.}}
\DoxyCodeLine{1261   \textcolor{keywordtype}{logical},          \textcolor{keywordtype}{optional}, \textcolor{keywordtype}{intent(in)} :: layout\textcolor{comment}{     !< If present and true, this module has layout parameters.}}
\DoxyCodeLine{1262   \textcolor{keywordtype}{logical},          \textcolor{keywordtype}{optional}, \textcolor{keywordtype}{intent(in)} :: debugging\textcolor{comment}{  !< If present and true, this module has debugging parameters.}}
\DoxyCodeLine{1263   \textcolor{comment}{! Local variables}}
\DoxyCodeLine{1264   \textcolor{keywordtype}{character(len=240)} :: mesg}
\DoxyCodeLine{1265 }
\DoxyCodeLine{1266   mesg = trim(modulename)//\textcolor{stringliteral}{"{}: "{}}//trim(version)}
\DoxyCodeLine{1267   \textcolor{keywordflow}{if} (is\_root\_pe()) \textcolor{keywordflow}{then}}
\DoxyCodeLine{1268     \textcolor{keywordflow}{if} (cs\%log\_open) \textcolor{keyword}{write}(cs\%stdlog,\textcolor{stringliteral}{'(a)'}) trim(mesg)}
\DoxyCodeLine{1269     \textcolor{keywordflow}{if} (cs\%log\_to\_stdout) \textcolor{keyword}{write}(cs\%stdout,\textcolor{stringliteral}{'(a)'}) trim(mesg)}
\DoxyCodeLine{1270 \textcolor{keywordflow}{  endif}}
\DoxyCodeLine{1271 }
\DoxyCodeLine{1272   \textcolor{keywordflow}{if} (\textcolor{keyword}{present}(desc)) \textcolor{keyword}{call }doc\_module(cs\%doc, modulename, desc, log\_to\_all, all\_default, layout, debugging)}
\DoxyCodeLine{1273 }

\end{DoxyCode}
\mbox{\Hypertarget{interfacemom__file__parser_1_1log__version_a04c361672ee019843e8f95f13c35d054}\label{interfacemom__file__parser_1_1log__version_a04c361672ee019843e8f95f13c35d054}} 
\index{mom\_file\_parser::log\_version@{mom\_file\_parser::log\_version}!log\_version\_plain@{log\_version\_plain}}
\index{log\_version\_plain@{log\_version\_plain}!mom\_file\_parser::log\_version@{mom\_file\_parser::log\_version}}
\doxysubsubsection{\texorpdfstring{log\_version\_plain()}{log\_version\_plain()}}
{\footnotesize\ttfamily subroutine mom\+\_\+file\+\_\+parser\+::log\+\_\+version\+::log\+\_\+version\+\_\+plain (\begin{DoxyParamCaption}\item[{character(len=$\ast$), intent(in)}]{modulename,  }\item[{character(len=$\ast$), intent(in)}]{version }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}



Log the version of a module to a log file and/or stdout. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em modulename} & Name of calling module \\
\hline
\mbox{\texttt{ in}}  & {\em version} & Version string of module \\
\hline
\end{DoxyParams}


Definition at line 1277 of file M\+O\+M\+\_\+file\+\_\+parser.\+F90.


\begin{DoxyCode}{0}
\DoxyCodeLine{1278   \textcolor{keywordtype}{character(len=*)},           \textcolor{keywordtype}{intent(in)} :: modulename\textcolor{comment}{ !< Name of calling module}}
\DoxyCodeLine{1279   \textcolor{keywordtype}{character(len=*)},           \textcolor{keywordtype}{intent(in)} :: version\textcolor{comment}{    !< Version string of module}}
\DoxyCodeLine{1280   \textcolor{comment}{! Local variables}}
\DoxyCodeLine{1281   \textcolor{keywordtype}{character(len=240)} :: mesg}
\DoxyCodeLine{1282 }
\DoxyCodeLine{1283   mesg = trim(modulename)//\textcolor{stringliteral}{"{}: "{}}//trim(version)}
\DoxyCodeLine{1284   \textcolor{keywordflow}{if} (is\_root\_pe()) \textcolor{keywordflow}{then}}
\DoxyCodeLine{1285     \textcolor{keyword}{write}(stdlog(),\textcolor{stringliteral}{'(a)'}) trim(mesg)}
\DoxyCodeLine{1286 \textcolor{keywordflow}{  endif}}
\DoxyCodeLine{1287 }

\end{DoxyCode}


The documentation for this interface was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/home/cermak/src/\+M\+O\+M6.\+devrob/src/framework/M\+O\+M\+\_\+file\+\_\+parser.\+F90\end{DoxyCompactItemize}
