\hypertarget{namespacecu__gf__sh}{}\doxysubsection{cu\+\_\+gf\+\_\+sh Module Reference}
\label{namespacecu__gf__sh}\index{cu\_gf\_sh@{cu\_gf\_sh}}
\doxysubsubsection*{Functions/\+Subroutines}
\begin{DoxyCompactItemize}
\item 
subroutine \mbox{\hyperlink{group__cu__gf__sh__group_gac3f853aacccfdee63bf9a5e64611683f_gac3f853aacccfdee63bf9a5e64611683f}{cu\+\_\+gf\+\_\+sh\+\_\+run}} (us, vs, zo, t, q, z1, tn, qo, po, psur, dhdt, kpbl, rho, hfx, qfx, xland, ichoice, tcrit, dtime, zuo, xmb\+\_\+out, kbcon, ktop, k22, ierr, ierrc, outt, outq, outqc, outu, outv, cnvwt, pre, cupclw, itf, ktf, its, ite, kts, kte, ipr, tropics)
\end{DoxyCompactItemize}
\doxysubsubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
real(kind=kind\+\_\+phys), parameter \mbox{\hyperlink{namespacecu__gf__sh_a7be1219544972eb1b082639e1df5b23f_a7be1219544972eb1b082639e1df5b23f}{c1\+\_\+shal}} =0.
\item 
real(kind=kind\+\_\+phys), parameter \mbox{\hyperlink{namespacecu__gf__sh_a65e7beeb3dfdd6e7e602d9fc771719cf_a65e7beeb3dfdd6e7e602d9fc771719cf}{g}} =9.\+81
\item 
real(kind=kind\+\_\+phys), parameter \mbox{\hyperlink{namespacecu__gf__sh_a50ae58db7adceb267eac5b93c35e70c1_a50ae58db7adceb267eac5b93c35e70c1}{cp}} =1004.
\item 
real(kind=kind\+\_\+phys), parameter \mbox{\hyperlink{namespacecu__gf__sh_a140be8c92e31b1e895d3623dd8907c01_a140be8c92e31b1e895d3623dd8907c01}{xlv}} =2.\+5e6
\item 
real(kind=kind\+\_\+phys), parameter \mbox{\hyperlink{namespacecu__gf__sh_ac3c6e1c88e9e13436b0c24fdbe929b4b_ac3c6e1c88e9e13436b0c24fdbe929b4b}{r\+\_\+v}} =461.
\item 
real(kind=kind\+\_\+phys), parameter \mbox{\hyperlink{namespacecu__gf__sh_aaf28f3699048a76238eed400355fc846_aaf28f3699048a76238eed400355fc846}{c0\+\_\+shal}} =.\+001
\item 
real(kind=kind\+\_\+phys), parameter \mbox{\hyperlink{namespacecu__gf__sh_a13da4c6f2c4b14eafe23ac42f9819731_a13da4c6f2c4b14eafe23ac42f9819731}{fluxtune}} =1.\+5
\end{DoxyCompactItemize}


\doxysubsubsection{Function/\+Subroutine Documentation}
\mbox{\Hypertarget{group__cu__gf__sh__group_gac3f853aacccfdee63bf9a5e64611683f_gac3f853aacccfdee63bf9a5e64611683f}\label{group__cu__gf__sh__group_gac3f853aacccfdee63bf9a5e64611683f_gac3f853aacccfdee63bf9a5e64611683f}} 
\index{cu\_gf\_sh@{cu\_gf\_sh}!cu\_gf\_sh\_run@{cu\_gf\_sh\_run}}
\index{cu\_gf\_sh\_run@{cu\_gf\_sh\_run}!cu\_gf\_sh@{cu\_gf\_sh}}
\doxyparagraph{\texorpdfstring{cu\_gf\_sh\_run()}{cu\_gf\_sh\_run()}}
{\footnotesize\ttfamily subroutine cu\+\_\+gf\+\_\+sh\+::cu\+\_\+gf\+\_\+sh\+\_\+run (\begin{DoxyParamCaption}\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(in)}]{us,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(in)}]{vs,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte)}]{zo,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(in)}]{t,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(inout)}]{q,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite), intent(in)}]{z1,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(in)}]{tn,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(inout)}]{qo,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(in)}]{po,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite), intent(in)}]{psur,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(in)}]{dhdt,  }\item[{integer, dimension (its\+:ite), intent(in)}]{kpbl,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(in)}]{rho,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite), intent(in)}]{hfx,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite), intent(in)}]{qfx,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite), intent(in)}]{xland,  }\item[{integer, intent(in)}]{ichoice,  }\item[{real(kind=kind\+\_\+phys), intent(in)}]{tcrit,  }\item[{real(kind=kind\+\_\+phys), intent(in)}]{dtime,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(inout)}]{zuo,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite), intent(out)}]{xmb\+\_\+out,  }\item[{integer, dimension (its\+:ite), intent(out)}]{kbcon,  }\item[{integer, dimension (its\+:ite), intent(out)}]{ktop,  }\item[{integer, dimension (its\+:ite), intent(out)}]{k22,  }\item[{integer, dimension (its\+:ite), intent(inout)}]{ierr,  }\item[{character$\ast$50, dimension(its\+:ite)}]{ierrc,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(inout)}]{outt,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(inout)}]{outq,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(inout)}]{outqc,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(inout)}]{outu,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(inout)}]{outv,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(inout)}]{cnvwt,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite)}]{pre,  }\item[{real(kind=kind\+\_\+phys), dimension (its\+:ite,kts\+:kte), intent(inout)}]{cupclw,  }\item[{integer, intent(in)}]{itf,  }\item[{integer, intent(in)}]{ktf,  }\item[{integer, intent(in)}]{its,  }\item[{integer, intent(in)}]{ite,  }\item[{integer, intent(in)}]{kts,  }\item[{integer, intent(in)}]{kte,  }\item[{integer, intent(in)}]{ipr,  }\item[{integer, dimension (its\+:ite), intent(in)}]{tropics }\end{DoxyParamCaption})}


\begin{DoxyItemize}
\item Initial detrainmentrates
\item Calculate zws for shallow convection closure (grant 2001)
\item Determin max height(m) above ground where updraft air can originate
\item Call \mbox{\hyperlink{group__cu__gf__deep__group_gabf84026a03bf21d4ba4eaa77efa11d93_gabf84026a03bf21d4ba4eaa77efa11d93}{cup\+\_\+env()}} to calculate moist static energy, heights, qes
\item Call \mbox{\hyperlink{group__cu__gf__deep__group_ga56111f64554b06083c77b1bec308b6ea_ga56111f64554b06083c77b1bec308b6ea}{cup\+\_\+env\+\_\+clev()}} to calculate environmental values on cloud levels
\item Determine level with highest moist static energy content ({\ttfamily k22})
\item Call \mbox{\hyperlink{group__cu__gf__deep__group_ga1c93354ade8bedf132cb748238d59ff1_ga1c93354ade8bedf132cb748238d59ff1}{get\+\_\+cloud\+\_\+bc()}} and \mbox{\hyperlink{group__cu__gf__deep__group_ga0a1b26105b052b8c66d7eb99a64c032e_ga0a1b26105b052b8c66d7eb99a64c032e}{cup\+\_\+kbcon()}} to determine the level of convective cloud base ({\ttfamily kbcon})
\item Call \mbox{\hyperlink{group__cu__gf__deep__group_gadce84bec635baa56686cb533dbc1e456_gadce84bec635baa56686cb533dbc1e456}{cup\+\_\+minimi()}} and \mbox{\hyperlink{group__cu__gf__deep__group_ga05c3c7ba138f383b801c11f6022521fc_ga05c3c7ba138f383b801c11f6022521fc}{get\+\_\+inversion\+\_\+layers()}} to get inversion layers for cloud tops
\item Call \mbox{\hyperlink{group__cu__gf__deep__group_ga7ab8f34f0c857d59f7c9b44e7126e83b_ga7ab8f34f0c857d59f7c9b44e7126e83b}{rates\+\_\+up\+\_\+pdf()}} to get normalized mass flux profile
\item Call \mbox{\hyperlink{group__cu__gf__deep__group_ga3e83c3a033d897332227dcf1820cce9c_ga3e83c3a033d897332227dcf1820cce9c}{get\+\_\+lateral\+\_\+massflux()}} to calculate mass entrainment and detrainment
\end{DoxyItemize}

References \mbox{\hyperlink{group__cu__gf__deep__group_gabf84026a03bf21d4ba4eaa77efa11d93_gabf84026a03bf21d4ba4eaa77efa11d93}{cu\+\_\+gf\+\_\+deep\+::cup\+\_\+env()}}, \mbox{\hyperlink{group__cu__gf__deep__group_ga56111f64554b06083c77b1bec308b6ea_ga56111f64554b06083c77b1bec308b6ea}{cu\+\_\+gf\+\_\+deep\+::cup\+\_\+env\+\_\+clev()}}, \mbox{\hyperlink{group__cu__gf__deep__group_ga0a1b26105b052b8c66d7eb99a64c032e_ga0a1b26105b052b8c66d7eb99a64c032e}{cu\+\_\+gf\+\_\+deep\+::cup\+\_\+kbcon()}}, \mbox{\hyperlink{group__cu__gf__deep__group_gadce84bec635baa56686cb533dbc1e456_gadce84bec635baa56686cb533dbc1e456}{cu\+\_\+gf\+\_\+deep\+::cup\+\_\+minimi()}}, \mbox{\hyperlink{group__cu__gf__deep__group_ga5b68f3b33a94b5a23df8c21759ffb320_ga5b68f3b33a94b5a23df8c21759ffb320}{cu\+\_\+gf\+\_\+deep\+::cup\+\_\+up\+\_\+aa0()}}, \mbox{\hyperlink{group__cu__gf__deep__group_ga1c93354ade8bedf132cb748238d59ff1_ga1c93354ade8bedf132cb748238d59ff1}{cu\+\_\+gf\+\_\+deep\+::get\+\_\+cloud\+\_\+bc()}}, \mbox{\hyperlink{group__cu__gf__deep__group_ga05c3c7ba138f383b801c11f6022521fc_ga05c3c7ba138f383b801c11f6022521fc}{cu\+\_\+gf\+\_\+deep\+::get\+\_\+inversion\+\_\+layers()}}, \mbox{\hyperlink{group__cu__gf__deep__group_ga3e83c3a033d897332227dcf1820cce9c_ga3e83c3a033d897332227dcf1820cce9c}{cu\+\_\+gf\+\_\+deep\+::get\+\_\+lateral\+\_\+massflux()}}, and \mbox{\hyperlink{group__cu__gf__deep__group_ga7ab8f34f0c857d59f7c9b44e7126e83b_ga7ab8f34f0c857d59f7c9b44e7126e83b}{cu\+\_\+gf\+\_\+deep\+::rates\+\_\+up\+\_\+pdf()}}.



Referenced by \mbox{\hyperlink{group__cu__gf__group_ga82b33c577edc03cec7b21b2771a2ef4d_ga82b33c577edc03cec7b21b2771a2ef4d}{cu\+\_\+gf\+\_\+driver\+::cu\+\_\+gf\+\_\+driver\+\_\+run()}}.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{group__cu__gf__sh__group_gac3f853aacccfdee63bf9a5e64611683f_gac3f853aacccfdee63bf9a5e64611683f_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=336pt]{group__cu__gf__sh__group_gac3f853aacccfdee63bf9a5e64611683f_gac3f853aacccfdee63bf9a5e64611683f_icgraph}
\end{center}
\end{figure}


\doxysubsubsection{Variable Documentation}
\mbox{\Hypertarget{namespacecu__gf__sh_a7be1219544972eb1b082639e1df5b23f_a7be1219544972eb1b082639e1df5b23f}\label{namespacecu__gf__sh_a7be1219544972eb1b082639e1df5b23f_a7be1219544972eb1b082639e1df5b23f}} 
\index{cu\_gf\_sh@{cu\_gf\_sh}!c1\_shal@{c1\_shal}}
\index{c1\_shal@{c1\_shal}!cu\_gf\_sh@{cu\_gf\_sh}}
\doxyparagraph{\texorpdfstring{c1\_shal}{c1\_shal}}
{\footnotesize\ttfamily real(kind=kind\+\_\+phys), parameter cu\+\_\+gf\+\_\+sh\+::c1\+\_\+shal =0.}

\mbox{\Hypertarget{namespacecu__gf__sh_a65e7beeb3dfdd6e7e602d9fc771719cf_a65e7beeb3dfdd6e7e602d9fc771719cf}\label{namespacecu__gf__sh_a65e7beeb3dfdd6e7e602d9fc771719cf_a65e7beeb3dfdd6e7e602d9fc771719cf}} 
\index{cu\_gf\_sh@{cu\_gf\_sh}!g@{g}}
\index{g@{g}!cu\_gf\_sh@{cu\_gf\_sh}}
\doxyparagraph{\texorpdfstring{g}{g}}
{\footnotesize\ttfamily real(kind=kind\+\_\+phys), parameter cu\+\_\+gf\+\_\+sh\+::g =9.\+81}

\mbox{\Hypertarget{namespacecu__gf__sh_a50ae58db7adceb267eac5b93c35e70c1_a50ae58db7adceb267eac5b93c35e70c1}\label{namespacecu__gf__sh_a50ae58db7adceb267eac5b93c35e70c1_a50ae58db7adceb267eac5b93c35e70c1}} 
\index{cu\_gf\_sh@{cu\_gf\_sh}!cp@{cp}}
\index{cp@{cp}!cu\_gf\_sh@{cu\_gf\_sh}}
\doxyparagraph{\texorpdfstring{cp}{cp}}
{\footnotesize\ttfamily real(kind=kind\+\_\+phys), parameter cu\+\_\+gf\+\_\+sh\+::cp =1004.}

\mbox{\Hypertarget{namespacecu__gf__sh_a140be8c92e31b1e895d3623dd8907c01_a140be8c92e31b1e895d3623dd8907c01}\label{namespacecu__gf__sh_a140be8c92e31b1e895d3623dd8907c01_a140be8c92e31b1e895d3623dd8907c01}} 
\index{cu\_gf\_sh@{cu\_gf\_sh}!xlv@{xlv}}
\index{xlv@{xlv}!cu\_gf\_sh@{cu\_gf\_sh}}
\doxyparagraph{\texorpdfstring{xlv}{xlv}}
{\footnotesize\ttfamily real(kind=kind\+\_\+phys), parameter cu\+\_\+gf\+\_\+sh\+::xlv =2.\+5e6}

\mbox{\Hypertarget{namespacecu__gf__sh_ac3c6e1c88e9e13436b0c24fdbe929b4b_ac3c6e1c88e9e13436b0c24fdbe929b4b}\label{namespacecu__gf__sh_ac3c6e1c88e9e13436b0c24fdbe929b4b_ac3c6e1c88e9e13436b0c24fdbe929b4b}} 
\index{cu\_gf\_sh@{cu\_gf\_sh}!r\_v@{r\_v}}
\index{r\_v@{r\_v}!cu\_gf\_sh@{cu\_gf\_sh}}
\doxyparagraph{\texorpdfstring{r\_v}{r\_v}}
{\footnotesize\ttfamily real(kind=kind\+\_\+phys), parameter cu\+\_\+gf\+\_\+sh\+::r\+\_\+v =461.}

\mbox{\Hypertarget{namespacecu__gf__sh_aaf28f3699048a76238eed400355fc846_aaf28f3699048a76238eed400355fc846}\label{namespacecu__gf__sh_aaf28f3699048a76238eed400355fc846_aaf28f3699048a76238eed400355fc846}} 
\index{cu\_gf\_sh@{cu\_gf\_sh}!c0\_shal@{c0\_shal}}
\index{c0\_shal@{c0\_shal}!cu\_gf\_sh@{cu\_gf\_sh}}
\doxyparagraph{\texorpdfstring{c0\_shal}{c0\_shal}}
{\footnotesize\ttfamily real(kind=kind\+\_\+phys), parameter cu\+\_\+gf\+\_\+sh\+::c0\+\_\+shal =.\+001}

\mbox{\Hypertarget{namespacecu__gf__sh_a13da4c6f2c4b14eafe23ac42f9819731_a13da4c6f2c4b14eafe23ac42f9819731}\label{namespacecu__gf__sh_a13da4c6f2c4b14eafe23ac42f9819731_a13da4c6f2c4b14eafe23ac42f9819731}} 
\index{cu\_gf\_sh@{cu\_gf\_sh}!fluxtune@{fluxtune}}
\index{fluxtune@{fluxtune}!cu\_gf\_sh@{cu\_gf\_sh}}
\doxyparagraph{\texorpdfstring{fluxtune}{fluxtune}}
{\footnotesize\ttfamily real(kind=kind\+\_\+phys), parameter cu\+\_\+gf\+\_\+sh\+::fluxtune =1.\+5}

