| 1 |
molod |
1.41 |
% $eader: /u/gcmpack/manual/part6/part6.tex,v 1.40 2006/06/27 22:34:09 edhill Exp $ |
| 2 |
adcroft |
1.2 |
% $Name: $ |
| 3 |
adcroft |
1.1 |
|
| 4 |
molod |
1.33 |
\chapter{Physical Parameterizations - Packages I} |
| 5 |
edhill |
1.37 |
\label{chap:packagesI} |
| 6 |
|
|
|
| 7 |
edhill |
1.30 |
\begin{rawhtml} |
| 8 |
|
|
<!-- CMIREDIR:packages: --> |
| 9 |
|
|
\end{rawhtml} |
| 10 |
cnh |
1.4 |
|
| 11 |
cnh |
1.34 |
In this chapter and in the following chapter, the MITgcm ``packages'' are |
| 12 |
|
|
described. While you can carry out many experiments with MITgcm by starting |
| 13 |
|
|
from case studies in section \ref{sect:tutorials}, configuring |
| 14 |
|
|
a brand new experiment or making major changes to an experimental configuration |
| 15 |
|
|
requires some knowledge of the {\it packages} |
| 16 |
|
|
that make up the full MITgcm code. Packages are used in MITgcm to |
| 17 |
|
|
help organize and layer various code building blocks that are assembled |
| 18 |
|
|
and selected to perform a specific experiment. Each of the specific experiments |
| 19 |
|
|
described in section \ref{sect:tutorials} uses a particular combination |
| 20 |
|
|
of packages. |
| 21 |
|
|
Figure \ref{fig:package_organigramme} shows the full set of packages that |
| 22 |
|
|
are available. As shown in the figure packages are classified into different |
| 23 |
|
|
groupings that layer on top of each other. The top layer packages are |
| 24 |
|
|
generally specialized to specific simulation types. In this layer there are |
| 25 |
|
|
packages that deal with biogeochemical processes, ocean interior |
| 26 |
|
|
and boundary layer processes, atmospheric processes, sea-ice, coupled |
| 27 |
|
|
simulations and state estimation. |
| 28 |
|
|
Below this layer are a set of general purpose |
| 29 |
|
|
numerical and computational packages. The general purpose numerical packages |
| 30 |
|
|
provide code for kernel numerical alogorithms |
| 31 |
|
|
that apply to |
| 32 |
|
|
many different simulation types. Similarly, the general purpose computational |
| 33 |
|
|
packages implement non-numerical alogorithms that provide parallelism, |
| 34 |
|
|
I/O and time-keeping functions that are used in many different scenarios. |
| 35 |
|
|
|
| 36 |
|
|
|
| 37 |
|
|
\begin{figure} |
| 38 |
edhill |
1.38 |
%%\begin{minipage}{12cm} |
| 39 |
|
|
%%\marginsize{0cm}{0cm}{0cm}{0cm} |
| 40 |
cnh |
1.34 |
%% \scalefig{0.6} |
| 41 |
|
|
%% \epsfbox{part6/organigramme_mitgcm_pkg.eps} |
| 42 |
edhill |
1.38 |
%%\epsfig{file=part6/organigramme_mitgcm_pkg.eps, angle=-90, scale=0.85, width=17cm} |
| 43 |
|
|
%%\end{minipage} |
| 44 |
|
|
\resizebox{5.5in}{!}{\includegraphics{part6/organigramme_mitgcm_pkg2.eps}} |
| 45 |
cnh |
1.34 |
\label{fig:package_organigramme} |
| 46 |
|
|
\caption{ Hierarchy of code layers that are assembled to make up an MITgcm |
| 47 |
|
|
simulation. Conceptually (and in terms of code organization) MITgcm consists |
| 48 |
|
|
of several layers. At the base is a layer of core software that provides a |
| 49 |
|
|
basic numerical and computational foundation for MITgcm simulations. This |
| 50 |
|
|
layer is shown marked {\bf Foundation Code} at the bottom of the figure |
| 51 |
|
|
and corresponds to code in the italicised subdirectories on the figure. |
| 52 |
|
|
This layer is not organized into packages. All code above the foundation layer |
| 53 |
|
|
is organized as packages. Much of the code in MITgcm is contained in packages |
| 54 |
|
|
which serve as a useful way of organizing and layering the different levels of |
| 55 |
|
|
functionality that make up the full MITgcm software distribution. |
| 56 |
|
|
The figure shows the different packages in MITgcm as boxes containing bold |
| 57 |
|
|
face upper case names. Directly above the foundation layer are two layers of |
| 58 |
|
|
general purpose infrastructure software that consist of computational and |
| 59 |
|
|
numerical packages. These general purpose packages can be applied to both |
| 60 |
|
|
online and offline simulations and are used in many different physical |
| 61 |
|
|
simulation types. Above these layers are more specialized packages. } |
| 62 |
|
|
\end{figure} |
| 63 |
|
|
|
| 64 |
|
|
The following sections describe the packages shown in |
| 65 |
cnh |
1.35 |
figure \ref{fig:package_organiigramme}. Section \ref{sec:pkg:using} |
| 66 |
|
|
describes the general procedure for using any package in MITgcm. |
| 67 |
|
|
Following that sections \ref{}-\ref{} |
| 68 |
|
|
layout the algorithms implemented in specific packages |
| 69 |
|
|
and describe how to use the individual packages. A brief synopsis of the |
| 70 |
|
|
function of each package is given in table \ref{tab:package_summary_tab}. |
| 71 |
cnh |
1.34 |
Organizationally package code is assigned a |
| 72 |
|
|
separate subdirectory in the MITgcm code distribution |
| 73 |
|
|
(within the source code directory \texttt{pkg}). |
| 74 |
|
|
The name of this subdirectory is used as the package name in |
| 75 |
|
|
table \ref{tab:package_summary_tab}. |
| 76 |
edhill |
1.25 |
|
| 77 |
|
|
%% In this chapter the schemes for parameterizing processes that are not |
| 78 |
|
|
%% represented explicitly in MITgcm are described. Some of these |
| 79 |
|
|
%% processes are sub-grid scale (SGS) phenomena, other processes, such as |
| 80 |
|
|
%% open-boundaries, are external to the simulation. |
| 81 |
|
|
|
| 82 |
molod |
1.33 |
% Overview |
| 83 |
edhill |
1.25 |
\newpage |
| 84 |
|
|
\input{part6/packages.tex} |
| 85 |
cnh |
1.4 |
|
| 86 |
molod |
1.33 |
% Packages Related to Hydrodynamical Kernel |
| 87 |
edhill |
1.19 |
\newpage |
| 88 |
molod |
1.33 |
\section{Packages Related to Hydrodynamical Kernel} |
| 89 |
|
|
\input{part6/generic_advdiff.tex} |
| 90 |
edhill |
1.27 |
|
| 91 |
|
|
\newpage |
| 92 |
molod |
1.33 |
\input{part6/zonal_filt.tex} |
| 93 |
edhill |
1.19 |
|
| 94 |
|
|
\newpage |
| 95 |
molod |
1.33 |
\input{part6/exch2.tex} |
| 96 |
edhill |
1.19 |
|
| 97 |
|
|
\newpage |
| 98 |
molod |
1.33 |
\input{part6/gridalt.tex} |
| 99 |
|
|
|
| 100 |
|
|
% Some Mention of Packages that are part of the main model document |
| 101 |
edhill |
1.19 |
|
| 102 |
stephd |
1.42 |
\section{General purpose numerical infrastructure packages} |
| 103 |
|
|
|
| 104 |
|
|
\newpage |
| 105 |
|
|
\input{part6/obcs.tex} |
| 106 |
|
|
|
| 107 |
|
|
\newpage |
| 108 |
stephd |
1.43 |
\input{part6/rbcs.tex} |
| 109 |
|
|
|
| 110 |
|
|
\newpage |
| 111 |
stephd |
1.42 |
\input{part6/ptracers.tex} |
| 112 |
|
|
|
| 113 |
molod |
1.33 |
% Ocean Packages |
| 114 |
edhill |
1.19 |
\newpage |
| 115 |
molod |
1.33 |
\section{Ocean Packages} |
| 116 |
|
|
\input{part6/gmredi.tex} |
| 117 |
edhill |
1.29 |
|
| 118 |
|
|
\newpage |
| 119 |
molod |
1.33 |
\input{part6/kpp.tex} |
| 120 |
edhill |
1.24 |
|
| 121 |
|
|
\newpage |
| 122 |
molod |
1.33 |
\input{part6/bulk_force.tex} |
| 123 |
heimbach |
1.32 |
|
| 124 |
|
|
\newpage |
| 125 |
|
|
\input{part6/exf.tex} |
| 126 |
|
|
|
| 127 |
|
|
\newpage |
| 128 |
molod |
1.33 |
\input{part6/cal.tex} |
| 129 |
jmc |
1.20 |
|
| 130 |
molod |
1.33 |
\section{Atmosphere Packages} |
| 131 |
jmc |
1.20 |
\newpage |
| 132 |
|
|
\input{part6/aim.tex} |
| 133 |
edhill |
1.19 |
|
| 134 |
|
|
\newpage |
| 135 |
|
|
\input{part6/land.tex} |
| 136 |
|
|
|
| 137 |
molod |
1.39 |
\newpage |
| 138 |
|
|
\input{part6/fizhi.tex} |
| 139 |
edhill |
1.19 |
|
| 140 |
molod |
1.33 |
\section{Sea Ice Packages} |
| 141 |
edhill |
1.19 |
\newpage |
| 142 |
molod |
1.33 |
\input{part6/thsice.tex} |
| 143 |
edhill |
1.19 |
|
| 144 |
|
|
\newpage |
| 145 |
molod |
1.33 |
\input{part6/seaice.tex} |
| 146 |
edhill |
1.19 |
|
| 147 |
mlosch |
1.44 |
\newpage |
| 148 |
|
|
\input{part6/shelfice.tex} |
| 149 |
|
|
|
| 150 |
molod |
1.33 |
\section{Packages Related to Coupled Model} |
| 151 |
edhill |
1.19 |
\newpage |
| 152 |
molod |
1.33 |
\input{part6/aim_compon_interf.tex} |
| 153 |
edhill |
1.23 |
|
| 154 |
|
|
\newpage |
| 155 |
molod |
1.41 |
\input{part6/atm_ocn_coupler.tex} |
| 156 |
edhill |
1.19 |
|
| 157 |
|
|
\newpage |
| 158 |
molod |
1.33 |
\input{part6/component_communications.tex} |
| 159 |
edhill |
1.19 |
|
| 160 |
molod |
1.33 |
\section{Biogeochemistry Packages} |
| 161 |
edhill |
1.19 |
\newpage |
| 162 |
molod |
1.33 |
\input{part6/gchem.tex} |
| 163 |
cnh |
1.15 |
|
| 164 |
molod |
1.31 |
\newpage |
| 165 |
molod |
1.33 |
\input{part6/dic.tex} |