\hypertarget{MOM__MEKE_8F90}{}\section{/home/cermak/src/\+M\+O\+M6/src/parameterizations/lateral/\+M\+O\+M\+\_\+\+M\+E\+KE.F90 File Reference}
\label{MOM__MEKE_8F90}\index{/home/cermak/src/\+M\+O\+M6/src/parameterizations/lateral/\+M\+O\+M\+\_\+\+M\+E\+K\+E.\+F90@{/home/cermak/src/\+M\+O\+M6/src/parameterizations/lateral/\+M\+O\+M\+\_\+\+M\+E\+K\+E.\+F90}}
{\ttfamily \#include $<$M\+O\+M\+\_\+memory.\+h$>$}\newline
{\ttfamily \#include \char`\"{}version\+\_\+variable.\+h\char`\"{}}\newline
\subsection*{Data Types}
\begin{DoxyCompactItemize}
\item 
type \hyperlink{structmom__meke_1_1meke__cs}{mom\+\_\+meke\+::meke\+\_\+cs}
\begin{DoxyCompactList}\small\item\em Control structure that contains M\+E\+KE parameters and diagnostics handles. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Modules}
\begin{DoxyCompactItemize}
\item 
module \hyperlink{namespacemom__meke}{mom\+\_\+meke}
\begin{DoxyCompactList}\small\item\em Implements the Mesoscale Eddy Kinetic Energy framework with topographic beta effect included in computing beta in Rhines scale. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions/\+Subroutines}
\begin{DoxyCompactItemize}
\item 
subroutine, public \hyperlink{namespacemom__meke_a5f752f097ddeba7071e1703110e51bc2}{mom\+\_\+meke\+::step\+\_\+forward\+\_\+meke} (M\+E\+KE, h, S\+N\+\_\+u, S\+N\+\_\+v, visc, dt, G, GV, US, CS, hu, hv)
\begin{DoxyCompactList}\small\item\em Integrates forward-\/in-\/time the M\+E\+KE eddy energy equation. See \hyperlink{namespacemom__meke_section_MEKE_equations}{M\+E\+KE equations}. \end{DoxyCompactList}\item 
subroutine \hyperlink{namespacemom__meke_a0ef9a8bcdf705b544db9b8c28a5e6a56}{mom\+\_\+meke\+::meke\+\_\+equilibrium} (CS, M\+E\+KE, G, GV, US, S\+N\+\_\+u, S\+N\+\_\+v, drag\+\_\+rate\+\_\+visc, I\+\_\+mass)
\begin{DoxyCompactList}\small\item\em Calculates the equilibrium solutino where the source depends only on M\+E\+KE diffusivity and there is no lateral diffusion of M\+E\+KE. Results is in M\+E\+KEM\+E\+KE. \end{DoxyCompactList}\item 
subroutine \hyperlink{namespacemom__meke_a843244b0cc72a08489920dcda464b063}{mom\+\_\+meke\+::meke\+\_\+equilibrium\+\_\+restoring} (CS, G, US, S\+N\+\_\+u, S\+N\+\_\+v)
\item 
subroutine \hyperlink{namespacemom__meke_a8180d5d0cacf48bcbdffead9e6a06efd}{mom\+\_\+meke\+::meke\+\_\+lengthscales} (CS, M\+E\+KE, G, GV, US, S\+N\+\_\+u, S\+N\+\_\+v, E\+KE, bottom\+Fac2, barotr\+Fac2, Lmix\+Scale)
\begin{DoxyCompactList}\small\item\em Calculates the eddy mixing length scale and $\gamma_b$ and $\gamma_t$ functions that are ratios of either bottom or barotropic eddy energy to the column eddy energy, respectively. See \hyperlink{namespacemom__meke_section_MEKE_equations}{M\+E\+KE equations}. \end{DoxyCompactList}\item 
subroutine \hyperlink{namespacemom__meke_aed5885cde342caa59b2b9cde72a3e1e7}{mom\+\_\+meke\+::meke\+\_\+lengthscales\+\_\+0d} (CS, US, area, beta, depth, Rd\+\_\+dx, SN, E\+KE, bottom\+Fac2, barotr\+Fac2, Lmix\+Scale, Lrhines, Leady)
\begin{DoxyCompactList}\small\item\em Calculates the eddy mixing length scale and $\gamma_b$ and $\gamma_t$ functions that are ratios of either bottom or barotropic eddy energy to the column eddy energy, respectively. See \hyperlink{namespacemom__meke_section_MEKE_equations}{M\+E\+KE equations}. \end{DoxyCompactList}\item 
logical function, public \hyperlink{namespacemom__meke_a099f1cfad37430ef1bd60972a92b1be4}{mom\+\_\+meke\+::meke\+\_\+init} (Time, G, US, param\+\_\+file, diag, CS, M\+E\+KE, restart\+\_\+\+CS)
\begin{DoxyCompactList}\small\item\em Initializes the M\+O\+M\+\_\+\+M\+E\+KE module and reads parameters. Returns True if module is to be used, otherwise returns False. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemom__meke_a1900316331157e48f1a6029bac63fbd0}{mom\+\_\+meke\+::meke\+\_\+alloc\+\_\+register\+\_\+restart} (HI, param\+\_\+file, M\+E\+KE, restart\+\_\+\+CS)
\begin{DoxyCompactList}\small\item\em Allocates memory and register restart fields for the M\+O\+M\+\_\+\+M\+E\+KE module. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemom__meke_acc007bf1aa24263f699b059d3e9cc6eb}{mom\+\_\+meke\+::meke\+\_\+end} (M\+E\+KE, CS)
\begin{DoxyCompactList}\small\item\em Deallocates any variables allocated in M\+E\+K\+E\+\_\+init or M\+E\+K\+E\+\_\+alloc\+\_\+register\+\_\+restart. \end{DoxyCompactList}\end{DoxyCompactItemize}
