1 |
% $Header$ |
% $Header$ |
2 |
% $Name$ |
% $Name$ |
3 |
|
|
4 |
\chapter{Physical Parameterization and Packages} |
\chapter{Physical Parameterizations - Packages I} |
5 |
|
\begin{rawhtml} |
6 |
Within this chapter, the MITgcm ``packages'' are described. |
<!-- CMIREDIR:packages: --> |
7 |
Initially, ``packages'' were conceived to group source code files |
\end{rawhtml} |
8 |
together based upon their functionality. Each package was assigned a |
|
9 |
separate subdirectory (within \texttt{pkg}) and, usually, contained |
In this chapter and in the following chapter, the MITgcm ``packages'' are |
10 |
source code for implimenting different physical parametizations. This |
described. While you can carry out many experiments with MITgcm by starting |
11 |
was a convenient method for both segregating and rapidly including or |
from case studies in section \ref{sect:tutorials}, configuring |
12 |
excluding parameterizations during the software build process. |
a brand new experiment or making major changes to an experimental configuration |
13 |
|
requires some knowledge of the {\it packages} |
14 |
Over time, package use has increased. The number of packages has |
that make up the full MITgcm code. Packages are used in MITgcm to |
15 |
grown and they have evolved to contain much of the model functionality |
help organize and layer various code building blocks that are assembled |
16 |
including momentum schemes, I/O utilities, diagnostics, ``exchange'' |
and selected to perform a specific experiment. Each of the specific experiments |
17 |
algorithms for domain decomposition, and numerous physical |
described in section \ref{sect:tutorials} uses a particular combination |
18 |
parameterizations. The following sections describe how to use the |
of packages. |
19 |
existing packages and how to modify them and create new ones. |
Figure \ref{fig:package_organigramme} shows the full set of packages that |
20 |
|
are available. As shown in the figure packages are classified into different |
21 |
|
groupings that layer on top of each other. The top layer packages are |
22 |
|
generally specialized to specific simulation types. In this layer there are |
23 |
|
packages that deal with biogeochemical processes, ocean interior |
24 |
|
and boundary layer processes, atmospheric processes, sea-ice, coupled |
25 |
|
simulations and state estimation. |
26 |
|
Below this layer are a set of general purpose |
27 |
|
numerical and computational packages. The general purpose numerical packages |
28 |
|
provide code for kernel numerical alogorithms |
29 |
|
that apply to |
30 |
|
many different simulation types. Similarly, the general purpose computational |
31 |
|
packages implement non-numerical alogorithms that provide parallelism, |
32 |
|
I/O and time-keeping functions that are used in many different scenarios. |
33 |
|
|
34 |
|
|
35 |
|
\begin{figure} |
36 |
|
\begin{minipage}{12cm} |
37 |
|
\marginsize{0cm}{0cm}{0cm}{0cm} |
38 |
|
%% \scalefig{0.6} |
39 |
|
%% \epsfbox{part6/organigramme_mitgcm_pkg.eps} |
40 |
|
\epsfig{file=part6/organigramme_mitgcm_pkg.eps, angle=-90, scale=0.85, width=17cm} |
41 |
|
\end{minipage} |
42 |
|
\label{fig:package_organigramme} |
43 |
|
\caption{ Hierarchy of code layers that are assembled to make up an MITgcm |
44 |
|
simulation. Conceptually (and in terms of code organization) MITgcm consists |
45 |
|
of several layers. At the base is a layer of core software that provides a |
46 |
|
basic numerical and computational foundation for MITgcm simulations. This |
47 |
|
layer is shown marked {\bf Foundation Code} at the bottom of the figure |
48 |
|
and corresponds to code in the italicised subdirectories on the figure. |
49 |
|
This layer is not organized into packages. All code above the foundation layer |
50 |
|
is organized as packages. Much of the code in MITgcm is contained in packages |
51 |
|
which serve as a useful way of organizing and layering the different levels of |
52 |
|
functionality that make up the full MITgcm software distribution. |
53 |
|
The figure shows the different packages in MITgcm as boxes containing bold |
54 |
|
face upper case names. Directly above the foundation layer are two layers of |
55 |
|
general purpose infrastructure software that consist of computational and |
56 |
|
numerical packages. These general purpose packages can be applied to both |
57 |
|
online and offline simulations and are used in many different physical |
58 |
|
simulation types. Above these layers are more specialized packages. } |
59 |
|
\end{figure} |
60 |
|
|
61 |
|
The following sections describe the packages shown in |
62 |
|
figure \ref{fig:package_organiigramme}. The sections |
63 |
|
layout the algorithms implemented in each package |
64 |
|
and describe how to use the package. A synopsis of the function |
65 |
|
of each package is given in table \ref{tab:package_summary_tab}. |
66 |
|
Organizationally package code is assigned a |
67 |
|
separate subdirectory in the MITgcm code distribution |
68 |
|
(within the source code directory \texttt{pkg}). |
69 |
|
The name of this subdirectory is used as the package name in |
70 |
|
table \ref{tab:package_summary_tab}. |
71 |
|
|
72 |
%% In this chapter the schemes for parameterizing processes that are not |
%% In this chapter the schemes for parameterizing processes that are not |
73 |
%% represented explicitly in MITgcm are described. Some of these |
%% represented explicitly in MITgcm are described. Some of these |
74 |
%% processes are sub-grid scale (SGS) phenomena, other processes, such as |
%% processes are sub-grid scale (SGS) phenomena, other processes, such as |
75 |
%% open-boundaries, are external to the simulation. |
%% open-boundaries, are external to the simulation. |
76 |
|
|
77 |
|
% Overview |
78 |
\newpage |
\newpage |
79 |
\input{part6/packages.tex} |
\input{part6/packages.tex} |
80 |
|
|
81 |
|
% Packages Related to Hydrodynamical Kernel |
82 |
\newpage |
\newpage |
83 |
\input{part6/gmredi.tex} |
\section{Packages Related to Hydrodynamical Kernel} |
84 |
|
\input{part6/generic_advdiff.tex} |
85 |
|
|
86 |
\newpage |
\newpage |
87 |
\input{part6/dic.tex} |
\input{part6/zonal_filt.tex} |
88 |
|
|
89 |
\newpage |
\newpage |
90 |
\input{part6/kpp.tex} |
\input{part6/exch2.tex} |
91 |
|
|
92 |
\newpage |
\newpage |
93 |
\input{part6/thsice.tex} |
\input{part6/gridalt.tex} |
94 |
|
|
95 |
\newpage |
% Some Mention of Packages that are part of the main model document |
|
\input{part6/bulk_force.tex} |
|
96 |
|
|
97 |
|
% Ocean Packages |
98 |
\newpage |
\newpage |
99 |
\input{part6/generic_advdiff.tex} |
\section{Ocean Packages} |
100 |
|
\input{part6/gmredi.tex} |
101 |
|
|
102 |
\newpage |
\newpage |
103 |
\input{part6/aim.tex} |
\input{part6/kpp.tex} |
104 |
|
|
105 |
\newpage |
\newpage |
106 |
\input{part6/land.tex} |
\input{part6/bulk_force.tex} |
107 |
|
|
108 |
\newpage |
\newpage |
109 |
\input{part6/aim_compon_interf.tex} |
\input{part6/exf.tex} |
110 |
|
|
111 |
\newpage |
\newpage |
112 |
\input{part6/aim_ocn_coupler.tex} |
\input{part6/cal.tex} |
113 |
|
|
114 |
|
\section{Atmosphere Packages} |
115 |
\newpage |
\newpage |
116 |
\input{part6/component_communications.tex} |
\input{part6/aim.tex} |
117 |
|
|
118 |
\newpage |
\newpage |
119 |
\input{part6/mnc.tex} |
\input{part6/land.tex} |
120 |
|
|
121 |
\newpage |
%% FIZHI is *** PRIVATE *** |
122 |
\input{part6/mdsio.tex} |
%\begin{versionprivate} |
123 |
|
\newpage |
124 |
|
\input{part6/fizhi.tex} |
125 |
|
%\end{versionprivate} |
126 |
|
|
127 |
|
\section{Sea Ice Packages} |
128 |
\newpage |
\newpage |
129 |
\input{part6/monitor.tex} |
\input{part6/thsice.tex} |
130 |
|
|
131 |
\newpage |
\newpage |
132 |
\input{part6/exch2.tex} |
\input{part6/seaice.tex} |
133 |
|
|
134 |
|
\section{Packages Related to Coupled Model} |
135 |
\newpage |
\newpage |
136 |
\input{part6/fizhi.tex} |
\input{part6/aim_compon_interf.tex} |
137 |
|
|
138 |
\newpage |
\newpage |
139 |
\input{part6/diagnostics.tex} |
\input{part6/aim_ocn_coupler.tex} |
140 |
|
|
141 |
\newpage |
\newpage |
142 |
\input{part6/rw.tex} |
\input{part6/component_communications.tex} |
143 |
|
|
144 |
|
\section{Biogeochemistry Packages} |
145 |
\newpage |
\newpage |
146 |
\input{part6/zonal_filt.tex} |
\input{part6/gchem.tex} |
147 |
|
|
148 |
\newpage |
\newpage |
149 |
\input{part6/gchem.tex} |
\input{part6/dic.tex} |