\documentclass[titlepage]{jarticle}
\title{DCPAM Reference Manual}
\author{GFD Dennou Club}
\begin{document}
\maketitle
\tableofcontents
\clearpage
\section{\label{label:0} Module dycore\_dynamics\_mod}

\begin{itemize}
\item Developers: Morikawa Yasuhiro
\item Version: \$Id: dycore\_dynamics.f90,v 1.8 2005/01/20 12:07:07 morikawa Exp \$
\item Tag Name: \$Name:  \$
\item Change History: 
\end{itemize}
\subsection{\label{label:1} Overview}

Call  dynamics\_mod 

\subsection{\label{label:2} Error Handling}

\subsection{\label{label:3} Known Bugs}

\subsection{\label{label:4} Note}

\subsection{\label{label:5} Future Plans}

\subsection{\label{label:6} Dependency}

\begin{verbatim}
use type_mod,      only : STRING
\end{verbatim}
\subsection{\label{label:7} Public Interface}

\begin{verbatim}
private
public :: dycore_dynamics_init       ! subroutines
public :: dycore_dynamics_prediction ! subroutines
public :: dycore_dynamics_diagnostic ! subroutines
public :: dycore_dynamics_diffusion  ! subroutines
public :: dycore_dynamics_end        ! subroutines
\end{verbatim}
\subsection{\label{label:8} Procedure Interface}

\subsubsection{\label{label:9} Initialize module and}

 dynamics\_mod  を初期化し、Vars\_a 変数を allocate する。

\begin{verbatim}
subroutine dycore_dynamics_init( Dims, Vars_a )
\end{verbatim}
\paragraph{\label{label:10} Dependency} \

\begin{verbatim}
use dycore_type_mod, only: DYCORE_VARS, DYCORE_DIMS, &
     &                     STRING, DBKIND, INTKIND
use dycore_grid_mod, only: im, jm, km
use dynamics_mod,    only: dynamics_init
use spml_mod,        only: spml_init
use dc_trace,        only: BeginSub, EndSub, DbgMessage
\end{verbatim}
\paragraph{\label{label:11} Input} \

\begin{verbatim}
type(DYCORE_DIMS), intent(in) :: Dims   ! 次元データ全種
\end{verbatim}
\paragraph{\label{label:12} Output} \

\begin{verbatim}
type(DYCORE_VARS), intent(out):: Vars_a ! 格子点データ全種(t+Δt)
\end{verbatim}
\subsubsection{\label{label:13} Calculate Predictional Values}

予報変数を計算し、Vars\_a に返す。

\begin{verbatim}
subroutine dycore_dynamics_prediction( Dims, Vars_b, Vars_n, Vars_a )
\end{verbatim}
\paragraph{\label{label:14} Dependency} \

\begin{verbatim}
use dycore_type_mod, only: DYCORE_VARS, DYCORE_DIMS, &
     &                     STRING, DBKIND, INTKIND
use dynamics_mod,    only: dynamics_leapfrog
use dc_trace,        only: BeginSub, EndSub, DbgMessage
\end{verbatim}
\paragraph{\label{label:15} Input} \

\begin{verbatim}
type(DYCORE_DIMS), intent(in)   :: Dims   ! 次元データ全種
type(DYCORE_VARS), intent(in)   :: Vars_b ! 格子点データ全種
type(DYCORE_VARS), intent(in)   :: Vars_n ! 格子点データ全種
\end{verbatim}
\paragraph{\label{label:16} Output} \

\begin{verbatim}
type(DYCORE_VARS), intent(inout):: Vars_a ! 格子点データ全種(t+Δt)
\end{verbatim}
\subsubsection{\label{label:17} Calculate Diagnostic Values}

渦度発散から、風速 (経度成分、緯度成分) を得る。

\begin{verbatim}
subroutine dycore_dynamics_diagnostic( Dims, Vars_a )
\end{verbatim}
\paragraph{\label{label:18} Dependency} \

\begin{verbatim}
use dycore_type_mod, only: DYCORE_VARS, DYCORE_DIMS, &
     &                     STRING, DBKIND, INTKIND
use dynamics_mod,    only: dynamics_diagnostic
use dc_trace,        only: BeginSub, EndSub, DbgMessage
\end{verbatim}
\paragraph{\label{label:19} Input} \

\begin{verbatim}
type(DYCORE_DIMS), intent(in)   :: Dims   ! 次元データ全種
\end{verbatim}
\paragraph{\label{label:20} In/Out} \

\begin{verbatim}
type(DYCORE_VARS), intent(inout):: Vars_a ! 格子点データ全種(t+Δt)
\end{verbatim}
\subsubsection{\label{label:21} Calculate Diffusion Terms}

水平拡散項の計算。

\begin{verbatim}
subroutine dycore_dynamics_diffusion( Vars_b, Vars_a )
\end{verbatim}
\paragraph{\label{label:22} Dependency} \

\begin{verbatim}
use dycore_type_mod, only: DYCORE_VARS, DYCORE_DIMS, &
     &                     STRING, DBKIND, INTKIND
use dynamics_mod,    only: dynamics_diffusion
use dc_trace,        only: BeginSub, EndSub, DbgMessage
\end{verbatim}
\paragraph{\label{label:23} Input} \

\begin{verbatim}
type(DYCORE_VARS), intent(in)   :: Vars_b ! 格子点データ全種(t-Δt)
\end{verbatim}
\paragraph{\label{label:24} In/Out} \

\begin{verbatim}
type(DYCORE_VARS), intent(inout):: Vars_a ! 格子点データ全種(t+Δt)
\end{verbatim}
\subsubsection{\label{label:25} Terminate module}

 dynamics\_mod  の終了処理を行なう。

\begin{verbatim}
subroutine dycore_dynamics_end
\end{verbatim}
\paragraph{\label{label:26} Dependency} \

\begin{verbatim}
use dycore_type_mod, only: STRING, DBKIND, INTKIND
use dynamics_mod,    only: dynamics_end
use dc_trace,        only: BeginSub, EndSub, DbgMessage
\end{verbatim}

\end{document}
