3 |
|
|
4 |
\documentclass[12pt]{book} |
\documentclass[12pt]{book} |
5 |
|
|
6 |
\usepackage{amsfonts} |
%To help cross-reference |
7 |
|
%\usepackage{showlabels} |
8 |
|
|
9 |
|
%aja%\usepackage{amsfonts} |
10 |
\usepackage{amsmath} |
\usepackage{amsmath} |
11 |
\usepackage{html} |
\usepackage{html} |
12 |
\usepackage{epsfig} |
\usepackage{graphicx} |
13 |
\usepackage{graphics,subfigure} |
|
14 |
\usepackage{array} |
%cnh%\usepackage{array} |
15 |
\usepackage{multirow} |
%cnh%\usepackage{multirow} |
16 |
\usepackage{fancyhdr} |
|
17 |
\usepackage{psfrag} |
%eh3 Commands to reference either files or symbols within the "HTML-ized" |
18 |
%\usepackage{oldgerm} |
%eh3 ("vdb") code. |
19 |
|
%eh3 |
20 |
|
\newcommand{\filelink}[2]{ |
21 |
|
\htmladdnormallink{\em #1()}{../code_reference/vdb/byname/#2.html} |
22 |
|
} |
23 |
|
\newcommand{\varlink}[2]{ |
24 |
|
\htmladdnormallink{\bf \tt #1}{../code_reference/vdb/byname/#2.html} |
25 |
|
} |
26 |
|
|
27 |
|
%eh3 try out the epsfig package |
28 |
|
\usepackage[dvips]{epsfig} |
29 |
|
\def\scalefig#1{\epsfxsize #1\textwidth} |
30 |
|
|
31 |
|
|
32 |
|
%ph%\usepackage{epsfig} |
33 |
|
%ph%\usepackage{psfrag} |
34 |
|
%ph%\usepackage{oldgerm} |
35 |
|
|
36 |
% I commented the following because it introduced excessive white space |
% I commented the following because it introduced excessive white space |
37 |
%\usepackage{palatcm} % better PDF |
%aja%\usepackage{palatcm} % better PDF |
38 |
|
|
39 |
% page headers and footers |
% page headers and footers |
40 |
|
%cnh%\usepackage{fancyhdr} |
41 |
%\pagestyle{fancy} |
%\pagestyle{fancy} |
42 |
\fancyhead{} |
%cnh%\fancyhead{} |
43 |
\fancyhead[LO]{\slshape \rightmark} |
%cnh%\fancyhead[LO]{\slshape \rightmark} |
44 |
\fancyhead[RE]{\slshape \leftmark} |
%cnh%\fancyhead[RE]{\slshape \leftmark} |
45 |
\fancyhead[RO,LE]{\thepage} |
%cnh%\fancyhead[RO,LE]{\thepage} |
46 |
\fancyfoot[CO,CE]{\today} |
%cnh%\fancyfoot[CO,CE]{\today} |
47 |
\fancyfoot[RO,LE]{ } |
%cnh%\fancyfoot[RO,LE]{ } |
48 |
\renewcommand{\headrulewidth}{0.4pt} |
%cnh%\renewcommand{\headrulewidth}{0.4pt} |
49 |
\renewcommand{\footrulewidth}{0.4pt} |
%cnh%\renewcommand{\footrulewidth}{0.4pt} |
50 |
|
|
51 |
|
% bibtex stuff |
52 |
|
%aja%\newcommand{\BIBPATH}{.} |
53 |
|
%aja%\usepackage{natbib} |
54 |
|
%aja%\bibliographystyle{\BIBPATH/jmr_my} |
55 |
|
%aja%\gdef\harvardleft{[} |
56 |
|
%aja%\gdef\harvardright{]} |
57 |
|
%aja%\bibpunct{[}{]}{,}{a}{}{,} |
58 |
|
\bibliographystyle{plain} |
59 |
|
|
60 |
% referencing |
% referencing |
61 |
\newcommand{\refequ}[1]{equation (\ref{equ:#1})} |
%ph%\newcommand{\refequ}[1]{equation (\ref{equ:#1})} |
62 |
\newcommand{\refequbig}[1]{Equation (\ref{equ:#1})} |
%ph%\newcommand{\refequbig}[1]{Equation (\ref{equ:#1})} |
63 |
\newcommand{\reftab}[1]{Tab.~\ref{tab:#1}} |
%ph%\newcommand{\reftab}[1]{Tab.~\ref{tab:#1}} |
64 |
\newcommand{\reftabno}[1]{\ref{tab:#1}} |
%ph%\newcommand{\reftabno}[1]{\ref{tab:#1}} |
65 |
\newcommand{\reffig}[1]{Fig.~\ref{fig:#1}} |
%ph%\newcommand{\reffig}[1]{Fig.~\ref{fig:#1}} |
66 |
\newcommand{\reffigno}[1]{\ref{fig:#1}} |
%ph%\newcommand{\reffigno}[1]{\ref{fig:#1}} |
67 |
|
|
68 |
% stuff for psfrag |
% stuff for psfrag |
69 |
\newcommand{\textinfigure}[1]{{\footnotesize\textbf{\textsf{#1}}}} |
%ph%\newcommand{\textinfigure}[1]{{\footnotesize\textbf{\textsf{#1}}}} |
70 |
\newcommand{\mathinfigure}[1]{\small\ensuremath{{#1}}} |
%ph%\newcommand{\mathinfigure}[1]{\small\ensuremath{{#1}}} |
71 |
|
|
72 |
% This allows numbering of subsubsections |
% This allows numbering of subsubsections |
73 |
\setcounter{secnumdepth}{3} |
\setcounter{secnumdepth}{3} |
74 |
% This changes the the chapter title |
% This changes the the chapter title |
75 |
%\renewcommand{\chaptername}{Section} |
%\renewcommand{\chaptername}{Section} |
76 |
|
|
77 |
\usepackage{showlabels} |
|
78 |
|
% This allows hyperlinks in PDF |
79 |
|
% hyperref package and colors for hyperref package |
80 |
|
\usepackage{color} |
81 |
|
\usepackage[dvips]{hyperref} |
82 |
|
\definecolor{darkgreen}{rgb}{0,0.4,0} |
83 |
|
\definecolor{darkblue}{rgb}{0,0,0.4} |
84 |
|
\definecolor{darkred}{rgb}{0.5,0,0} |
85 |
|
\hypersetup{breaklinks=true, |
86 |
|
colorlinks=true, |
87 |
|
linkcolor=darkgreen, |
88 |
|
citecolor=darkblue, |
89 |
|
pagecolor=darkred, |
90 |
|
pdftitle={MITgcm Release 1 Documentation}, |
91 |
|
pdfauthor={MITgcm-support@mitgcm.org}, |
92 |
|
pdfkeywords={oceanography, ocean model, general circulation model, |
93 |
|
non-hydrostatic, finite volume, inverse methods, adjoint method} |
94 |
|
} |
95 |
|
|
96 |
|
% Some definitions (AMM) |
97 |
|
\def\p#1{{\partial \over {\partial #1}}} |
98 |
|
\def\pp#1#2{{\partial #1 \over {\partial #2}}} |
99 |
|
\def\dd#1#2{{d #1 \over {d #2}}} |
100 |
|
\def\bq{\begin{equation}} |
101 |
|
\def\bqa{\begin{eqnarray}} |
102 |
|
\def\eq{\end{equation}} |
103 |
|
\def\eqa{\end{eqnarray}} |
104 |
|
|
105 |
|
\def\h{ {1\over2} } |
106 |
|
\def\txt{\mbox{$2^\circ$ x $2.5^\circ \,$}} |
107 |
|
\def\fxf{\mbox{$4^\circ$ x $5^\circ \,$}} |
108 |
|
|
109 |
|
\def\blankpage{ \vspace*{\fill} \vspace{5in} \vfill \newpage} |
110 |
|
|
111 |
|
|
112 |
\begin{document} |
\begin{document} |
113 |
|
|
114 |
|
\bodytext{bgcolor="#FFFFFFFF"} |
115 |
|
|
116 |
\tableofcontents |
\tableofcontents |
117 |
\pagebreak |
%\pagebreak |
118 |
|
|
119 |
\part{The MIT GCM basics} |
%\part{MIT GCM basics} |
120 |
|
|
121 |
% Section: Overview |
% Section: Overview |
122 |
\input{part1/part1} |
\input{part1/part1} |
123 |
\pagebreak |
%\pagebreak |
124 |
|
|
125 |
% Section: Discretization and Algorithm |
% Section: Discretization and Algorithm |
126 |
\input{part2/part2} |
\input{part2/part2} |
127 |
\pagebreak |
%\pagebreak |
128 |
|
|
129 |
% Section: Getting started |
% Section: Getting started |
130 |
\input{part3/part3} |
\input{part3/part3} |
131 |
\pagebreak |
%\pagebreak |
132 |
|
|
133 |
% Section: Software Architecture |
% Section: Software Architecture |
134 |
\input{part4/part4} |
\input{part4/part4} |
135 |
\pagebreak |
%\pagebreak |
136 |
|
|
137 |
|
|
138 |
\part{Adjoint of the MIT GCM} |
%\part{Adjoint of the MIT GCM} |
139 |
|
|
140 |
% Section: Automatic Differentiation |
% Section: Automatic Differentiation |
141 |
\input{part5/part5} |
\input{part5/part5} |
142 |
\pagebreak |
%\pagebreak |
143 |
|
|
144 |
|
|
145 |
\part{Additional features} |
%\part{Additional features} |
146 |
|
|
147 |
% Section: Physical Packages |
% Section: Physical Packages |
148 |
\input{part6/part6} |
\input{part6/part6} |
149 |
\pagebreak |
%\pagebreak |
150 |
|
|
151 |
% Section: Diagnostics |
% Section: Diagnostics |
152 |
\input{part7/part7} |
\input{part7/part7} |
153 |
\pagebreak |
%\pagebreak |
154 |
|
|
155 |
% Section: ECCO Interface |
% Section: ECCO |
156 |
\input{part8/part8} |
\input{part8/part8} |
157 |
|
%\pagebreak |
158 |
|
|
159 |
|
% Section: References: |
160 |
|
%\markboth{BIBLIOGRAPHY}{BIBLIOGRAPHY} |
161 |
|
\addcontentsline{toc}{chapter}{BIBLIOGRAPHY} |
162 |
|
%aja%\bibliography{\BIBPATH/manual_references} |
163 |
|
\bibliography{manual_references} |
164 |
|
|
165 |
\end{document} |
\end{document} |