| 2 |
% $Name$ |
% $Name$ |
| 3 |
|
|
| 4 |
\section{Four Layer Baroclinic Ocean Gyre In Spherical Coordinates} |
\section{Four Layer Baroclinic Ocean Gyre In Spherical Coordinates} |
| 5 |
|
\label{www:tutorials} |
| 6 |
\label{sect:eg-fourlayer} |
\label{sect:eg-fourlayer} |
| 7 |
|
|
| 8 |
\bodytext{bgcolor="#FFFFFFFF"} |
\bodytext{bgcolor="#FFFFFFFF"} |
| 27 |
for four layers and in a spherical polar coordinate system. |
for four layers and in a spherical polar coordinate system. |
| 28 |
|
|
| 29 |
\subsection{Overview} |
\subsection{Overview} |
| 30 |
|
\label{www:tutorials} |
| 31 |
|
|
| 32 |
This example experiment demonstrates using the MITgcm to simulate |
This example experiment demonstrates using the MITgcm to simulate |
| 33 |
a baroclinic, wind-forced, ocean gyre circulation. The experiment |
a baroclinic, wind-forced, ocean gyre circulation. The experiment |
| 120 |
\end{figure} |
\end{figure} |
| 121 |
|
|
| 122 |
\subsection{Equations solved} |
\subsection{Equations solved} |
| 123 |
|
\label{www:tutorials} |
| 124 |
For this problem |
For this problem |
| 125 |
the implicit free surface, {\bf HPE} (see section \ref{sect:hydrostatic_and_quasi-hydrostatic_forms}) form of the |
the implicit free surface, {\bf HPE} (see section \ref{sect:hydrostatic_and_quasi-hydrostatic_forms}) form of the |
| 126 |
equations described in Marshall et. al \cite{marshall:97a} are |
equations described in Marshall et. al \cite{marshall:97a} are |
| 205 |
|
|
| 206 |
|
|
| 207 |
\subsection{Discrete Numerical Configuration} |
\subsection{Discrete Numerical Configuration} |
| 208 |
|
\label{www:tutorials} |
| 209 |
|
|
| 210 |
The domain is discretised with |
The domain is discretised with |
| 211 |
a uniform grid spacing in latitude and longitude |
a uniform grid spacing in latitude and longitude |
| 265 |
\ref{sect:finding_the_pressure_field}. |
\ref{sect:finding_the_pressure_field}. |
| 266 |
|
|
| 267 |
\subsubsection{Numerical Stability Criteria} |
\subsubsection{Numerical Stability Criteria} |
| 268 |
|
\label{www:tutorials} |
| 269 |
|
|
| 270 |
The Laplacian viscosity coefficient, $A_{h}$, is set to $400 m s^{-1}$. |
The Laplacian viscosity coefficient, $A_{h}$, is set to $400 m s^{-1}$. |
| 271 |
This value is chosen to yield a Munk layer width, |
This value is chosen to yield a Munk layer width, |
| 345 |
stability limit of 0.25. |
stability limit of 0.25. |
| 346 |
|
|
| 347 |
\subsection{Code Configuration} |
\subsection{Code Configuration} |
| 348 |
|
\label{www:tutorials} |
| 349 |
\label{SEC:eg_fourl_code_config} |
\label{SEC:eg_fourl_code_config} |
| 350 |
|
|
| 351 |
The model configuration for this experiment resides under the |
The model configuration for this experiment resides under the |
| 360 |
\item {\it code/CPP\_OPTIONS.h}, |
\item {\it code/CPP\_OPTIONS.h}, |
| 361 |
\item {\it code/SIZE.h}. |
\item {\it code/SIZE.h}. |
| 362 |
\end{itemize} |
\end{itemize} |
| 363 |
contain the code customisations and parameter settings for this |
contain the code customisations and parameter settings for this |
| 364 |
experiments. Below we describe the customisations |
experiment. Below we describe the customisations to these files |
| 365 |
to these files associated with this experiment. |
associated with this experiment. |
| 366 |
|
|
| 367 |
\subsubsection{File {\it input/data}} |
\subsubsection{File {\it input/data}} |
| 368 |
|
\label{www:tutorials} |
| 369 |
|
|
| 370 |
This file, reproduced completely below, specifies the main parameters |
This file, reproduced completely below, specifies the main parameters |
| 371 |
for the experiment. The parameters that are significant for this configuration |
for the experiment. The parameters that are significant for this configuration |
| 382 |
depth level the initial and reference profiles will be uniform in |
depth level the initial and reference profiles will be uniform in |
| 383 |
$x$ and $y$. The values specified here are read into the |
$x$ and $y$. The values specified here are read into the |
| 384 |
variable |
variable |
| 385 |
{\bf |
\varlink{tRef}{tRef} |
| 386 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/OK.htm> \end{rawhtml} |
%{\bf |
| 387 |
tRef |
%\begin{rawhtml} <A href=../code_reference/vdb/names/OK.htm> \end{rawhtml} |
| 388 |
\begin{rawhtml} </A>\end{rawhtml} |
%tRef |
| 389 |
} |
%\begin{rawhtml} </A>\end{rawhtml} |
| 390 |
|
%} |
| 391 |
in the model code, by procedure |
in the model code, by procedure |
| 392 |
{\it |
\filelink{INI\_PARMS}{model-src-ini_parms.F} |
| 393 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
%{\it |
| 394 |
INI\_PARMS |
%\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 395 |
\begin{rawhtml} </A>\end{rawhtml} |
%INI\_PARMS |
| 396 |
}. |
%\begin{rawhtml} </A>\end{rawhtml} |
| 397 |
|
%}. |
| 398 |
|
|
| 399 |
%% \codelink{var:tref} tRef \endlink |
%% \codelink{var:tref} tRef \endlink |
| 400 |
%% \codelink{file:ini_parms} {\it INI\_PARMS } \endlink |
%% \codelink{file:ini_parms} {\it INI\_PARMS } \endlink |
| 404 |
%% \file{ini_parms} |
%% \file{ini_parms} |
| 405 |
\newcommand{\VARtref}{ |
\newcommand{\VARtref}{ |
| 406 |
{\bf |
{\bf |
| 407 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/OK.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/OK.htm> \end{rawhtml} |
| 408 |
tRef |
tRef |
| 409 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 410 |
} |
} |
| 418 |
({\it ini\_theta.F}) |
({\it ini\_theta.F}) |
| 419 |
\end{minipage} |
\end{minipage} |
| 420 |
} |
} |
| 421 |
{\bf |
\filelink{ini\_theta.F}{model-src-ini_theta.F} |
| 422 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/98.htm> \end{rawhtml} |
%{\bf |
| 423 |
goto code |
%\begin{rawhtml} <A href=../code_reference/vdb/code/98.htm> \end{rawhtml} |
| 424 |
\begin{rawhtml} </A>\end{rawhtml} |
%goto code |
| 425 |
} |
%\begin{rawhtml} </A>\end{rawhtml} |
| 426 |
|
%} |
| 427 |
|
|
| 428 |
|
|
| 429 |
\item Line 6, |
\item Line 6, |
| 432 |
$1 \times 10^{-2} {\rm m^{2}s^{-1}}$. Boundary conditions |
$1 \times 10^{-2} {\rm m^{2}s^{-1}}$. Boundary conditions |
| 433 |
for this operator are specified later. |
for this operator are specified later. |
| 434 |
The variable |
The variable |
| 435 |
{\bf |
\varlink{viscAz}{viscAz} |
| 436 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/ZQ.htm> \end{rawhtml} |
%{\bf |
| 437 |
viscAz |
%\begin{rawhtml} <A href=../code_reference/vdb/names/ZQ.htm> \end{rawhtml} |
| 438 |
\begin{rawhtml} </A>\end{rawhtml} |
%viscAz |
| 439 |
} |
%\begin{rawhtml} </A>\end{rawhtml} |
| 440 |
|
%} |
| 441 |
is read in the routine |
is read in the routine |
| 442 |
{\it |
\filelink{ini\_parms.F}{model-src-ini_parms.F} |
| 443 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
%{\it |
| 444 |
INI\_PARMS |
%\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 445 |
\begin{rawhtml} </A>\end{rawhtml} |
%INI\_PARMS |
| 446 |
} |
%\begin{rawhtml} </A>\end{rawhtml} |
| 447 |
|
%} |
| 448 |
and is copied into model general vertical coordinate variable |
and is copied into model general vertical coordinate variable |
| 449 |
{\bf |
\varlink{viscAr}{viscAr} |
| 450 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/PF.htm> \end{rawhtml} |
%{\bf |
| 451 |
viscAr |
%\begin{rawhtml} <A href=../code_reference/vdb/names/PF.htm> \end{rawhtml} |
| 452 |
\begin{rawhtml} </A>\end{rawhtml} |
%viscAr |
| 453 |
}. At each time step, the viscous term contribution to the momentum equations |
%\begin{rawhtml} </A>\end{rawhtml} |
| 454 |
|
%}. |
| 455 |
|
At each time step, the viscous term contribution to the momentum equations |
| 456 |
is calculated in routine |
is calculated in routine |
| 457 |
{\it S/R CALC\_DIFFUSIVITY}. |
%{\it S/R CALC\_DIFFUSIVITY}. |
| 458 |
|
\varlink{CALC\_DIFFUSIVITY}{CALC_DIFFUSIVITY} |
| 459 |
|
|
| 460 |
\fbox{ |
\fbox{ |
| 461 |
\begin{minipage}{5.0in} |
\begin{minipage}{5.0in} |
| 462 |
{\it S/R CALC\_DIFFUSIVITY}({\it calc\_diffusivity.F}) |
{\it S/R CALC\_DIFFUSIVITY}({\it calc\_diffusivity.F}) |
| 463 |
\end{minipage} |
\end{minipage} |
| 464 |
} |
} |
| 465 |
{\bf |
%{\bf |
| 466 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/53.htm> \end{rawhtml} |
%\begin{rawhtml} <A href=../code_reference/vdb/code/53.htm> \end{rawhtml} |
| 467 |
goto code |
%goto code |
| 468 |
\begin{rawhtml} </A>\end{rawhtml} |
%\begin{rawhtml} </A>\end{rawhtml} |
| 469 |
} |
%} |
| 470 |
|
|
| 471 |
\item Line 7, |
\item Line 7, |
| 472 |
\begin{verbatim} |
\begin{verbatim} |
| 476 |
$1 \times 10^{-2} {\rm m^{2}s^{-1}}$. Boundary conditions |
$1 \times 10^{-2} {\rm m^{2}s^{-1}}$. Boundary conditions |
| 477 |
for this operator are specified later. |
for this operator are specified later. |
| 478 |
The variable |
The variable |
| 479 |
{\bf |
\varlink{viscAh}{viscAh} |
| 480 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/SI.htm> \end{rawhtml} |
%{\bf |
| 481 |
viscAh |
%\begin{rawhtml} <A href=../code_reference/vdb/names/SI.htm> \end{rawhtml} |
| 482 |
\begin{rawhtml} </A>\end{rawhtml} |
%viscAh |
| 483 |
} |
%\begin{rawhtml} </A>\end{rawhtml} |
| 484 |
|
%} |
| 485 |
is read in the routine |
is read in the routine |
| 486 |
{\it |
\varlink{INI\_PARMS}{INI_PARMS} |
| 487 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
%{\it |
| 488 |
INI\_PARMS |
%\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 489 |
\begin{rawhtml} </A>\end{rawhtml} |
%INI\_PARMS |
| 490 |
} and applied in routines {\it CALC\_MOM\_RHS} and {\it CALC\_GW}. |
%\begin{rawhtml} </A>\end{rawhtml} |
| 491 |
|
%} |
| 492 |
|
and applied in routines |
| 493 |
|
%{\it CALC\_MOM\_RHS} and {\it CALC\_GW}. |
| 494 |
|
\varlink{CALC\_MOM\_RHS}{CALC_MOM_RHS} |
| 495 |
|
and |
| 496 |
|
\varlink{CALC\_GW}{CALC_GW}. |
| 497 |
|
|
| 498 |
|
|
| 499 |
\fbox{ |
\fbox{ |
| 500 |
\begin{minipage}{5.0in} |
\begin{minipage}{5.0in} |
| 501 |
{\it S/R CALC\_MOM\_RHS}({\it calc\_mom\_rhs.F}) |
{\it S/R CALC\_MOM\_RHS}({\it calc\_mom\_rhs.F}) |
| 502 |
\end{minipage} |
\end{minipage} |
| 503 |
} |
} |
| 504 |
{\bf |
%{\bf |
| 505 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/60.htm> \end{rawhtml} |
%\begin{rawhtml} <A href=../code_reference/vdb/code/60.htm> \end{rawhtml} |
| 506 |
goto code |
%goto code |
| 507 |
\begin{rawhtml} </A>\end{rawhtml} |
%\begin{rawhtml} </A>\end{rawhtml} |
| 508 |
} |
%} |
| 509 |
|
|
| 510 |
\fbox{ |
\fbox{ |
| 511 |
\begin{minipage}{5.0in} |
\begin{minipage}{5.0in} |
| 512 |
{\it S/R CALC\_GW}({\it calc\_gw.F}) |
{\it S/R CALC\_GW}({\it calc\_gw.F}) |
| 513 |
\end{minipage} |
\end{minipage} |
| 514 |
} |
} |
| 515 |
{\bf |
%{\bf |
| 516 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/58.htm> \end{rawhtml} |
%\begin{rawhtml} <A href=../code_reference/vdb/code/58.htm> \end{rawhtml} |
| 517 |
goto code |
%goto code |
| 518 |
\begin{rawhtml} </A>\end{rawhtml} |
%\begin{rawhtml} </A>\end{rawhtml} |
| 519 |
} |
%} |
| 520 |
|
|
| 521 |
\item Lines 8, |
\item Lines 8, |
| 522 |
\begin{verbatim} |
\begin{verbatim} |
| 527 |
e.g. $\frac{\partial u}{\partial y}$=0 along boundaries in $y$ and |
e.g. $\frac{\partial u}{\partial y}$=0 along boundaries in $y$ and |
| 528 |
$\frac{\partial v}{\partial x}$=0 along boundaries in $x$. |
$\frac{\partial v}{\partial x}$=0 along boundaries in $x$. |
| 529 |
The variable |
The variable |
| 530 |
{\bf |
\varlink{no\_slip\_sides}{no_slip_sides} |
| 531 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/UT.htm> \end{rawhtml} |
%{\bf |
| 532 |
no\_slip\_sides |
%\begin{rawhtml} <A href=../code_reference/vdb/names/UT.htm> \end{rawhtml} |
| 533 |
\begin{rawhtml} </A>\end{rawhtml} |
%no\_slip\_sides |
| 534 |
} |
%\begin{rawhtml} </A>\end{rawhtml} |
| 535 |
|
%} |
| 536 |
is read in the routine |
is read in the routine |
| 537 |
{\it |
\varlink{INI\_PARMS}{INI_PARMS} |
| 538 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
%{\it |
| 539 |
INI\_PARMS |
%\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 540 |
\begin{rawhtml} </A>\end{rawhtml} |
%INI\_PARMS |
| 541 |
} and the boundary condition is evaluated in routine |
%\begin{rawhtml} </A>\end{rawhtml} |
| 542 |
{\it S/R CALC\_MOM\_RHS}. |
%} |
| 543 |
|
and the boundary condition is evaluated in routine |
| 544 |
|
%{\it S/R CALC\_MOM\_RHS}. |
| 545 |
|
|
| 546 |
|
|
| 547 |
\fbox{ |
\fbox{ |
| 550 |
\end{minipage} |
\end{minipage} |
| 551 |
} |
} |
| 552 |
{\bf |
{\bf |
| 553 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/60.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/60.htm> \end{rawhtml} |
| 554 |
goto code |
goto code |
| 555 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 556 |
} |
} |
| 564 |
e.g. $u=v=0$ at $z=-H$, where $H$ is the local depth of the domain. |
e.g. $u=v=0$ at $z=-H$, where $H$ is the local depth of the domain. |
| 565 |
The variable |
The variable |
| 566 |
{\bf |
{\bf |
| 567 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/UK.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/UK.htm> \end{rawhtml} |
| 568 |
no\_slip\_bottom |
no\_slip\_bottom |
| 569 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 570 |
} |
} |
| 571 |
is read in the routine |
is read in the routine |
| 572 |
{\it |
{\it |
| 573 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 574 |
INI\_PARMS |
INI\_PARMS |
| 575 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 576 |
} and is applied in the routine {\it S/R CALC\_MOM\_RHS}. |
} and is applied in the routine {\it S/R CALC\_MOM\_RHS}. |
| 581 |
\end{minipage} |
\end{minipage} |
| 582 |
} |
} |
| 583 |
{\bf |
{\bf |
| 584 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/60.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/60.htm> \end{rawhtml} |
| 585 |
goto code |
goto code |
| 586 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 587 |
} |
} |
| 596 |
all boundaries. |
all boundaries. |
| 597 |
The variable |
The variable |
| 598 |
{\bf |
{\bf |
| 599 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/RC.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/RC.htm> \end{rawhtml} |
| 600 |
diffKhT |
diffKhT |
| 601 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 602 |
} |
} |
| 603 |
is read in the routine |
is read in the routine |
| 604 |
{\it |
{\it |
| 605 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 606 |
INI\_PARMS |
INI\_PARMS |
| 607 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 608 |
} and used in routine {\it S/R CALC\_GT}. |
} and used in routine {\it S/R CALC\_GT}. |
| 612 |
\end{minipage} |
\end{minipage} |
| 613 |
} |
} |
| 614 |
{\bf |
{\bf |
| 615 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/57.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/57.htm> \end{rawhtml} |
| 616 |
goto code |
goto code |
| 617 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 618 |
} |
} |
| 626 |
operator is $\frac{\partial}{\partial z}$ = 0 on all boundaries. |
operator is $\frac{\partial}{\partial z}$ = 0 on all boundaries. |
| 627 |
The variable |
The variable |
| 628 |
{\bf |
{\bf |
| 629 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/ZT.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/ZT.htm> \end{rawhtml} |
| 630 |
diffKzT |
diffKzT |
| 631 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 632 |
} |
} |
| 633 |
is read in the routine |
is read in the routine |
| 634 |
{\it |
{\it |
| 635 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 636 |
INI\_PARMS |
INI\_PARMS |
| 637 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 638 |
}. |
}. |
| 639 |
It is copied into model general vertical coordinate variable |
It is copied into model general vertical coordinate variable |
| 640 |
{\bf |
{\bf |
| 641 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/PD.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/PD.htm> \end{rawhtml} |
| 642 |
diffKrT |
diffKrT |
| 643 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 644 |
} which is used in routine {\it S/R CALC\_DIFFUSIVITY}. |
} which is used in routine {\it S/R CALC\_DIFFUSIVITY}. |
| 648 |
\end{minipage} |
\end{minipage} |
| 649 |
} |
} |
| 650 |
{\bf |
{\bf |
| 651 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/53.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/53.htm> \end{rawhtml} |
| 652 |
goto code |
goto code |
| 653 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 654 |
} |
} |
| 663 |
to $2 \times 10^{-4}\,{\rm degrees}^{-1}$ |
to $2 \times 10^{-4}\,{\rm degrees}^{-1}$ |
| 664 |
The variable |
The variable |
| 665 |
{\bf |
{\bf |
| 666 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/ZV.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/ZV.htm> \end{rawhtml} |
| 667 |
tAlpha |
tAlpha |
| 668 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 669 |
} |
} |
| 670 |
is read in the routine |
is read in the routine |
| 671 |
{\it |
{\it |
| 672 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 673 |
INI\_PARMS |
INI\_PARMS |
| 674 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 675 |
}. The routine {\it S/R FIND\_RHO} makes use of {\bf tAlpha}. |
}. The routine {\it S/R FIND\_RHO} makes use of {\bf tAlpha}. |
| 680 |
\end{minipage} |
\end{minipage} |
| 681 |
} |
} |
| 682 |
{\bf |
{\bf |
| 683 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/79.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/79.htm> \end{rawhtml} |
| 684 |
goto code |
goto code |
| 685 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 686 |
} |
} |
| 692 |
This line selects the linear form of the equation of state. |
This line selects the linear form of the equation of state. |
| 693 |
The variable |
The variable |
| 694 |
{\bf |
{\bf |
| 695 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/WV.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/WV.htm> \end{rawhtml} |
| 696 |
eosType |
eosType |
| 697 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 698 |
} |
} |
| 699 |
is read in the routine |
is read in the routine |
| 700 |
{\it |
{\it |
| 701 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 702 |
INI\_PARMS |
INI\_PARMS |
| 703 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 704 |
}. The values of {\bf eosType} sets which formula in routine |
}. The values of {\bf eosType} sets which formula in routine |
| 710 |
\end{minipage} |
\end{minipage} |
| 711 |
} |
} |
| 712 |
{\bf |
{\bf |
| 713 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/79.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/79.htm> \end{rawhtml} |
| 714 |
goto code |
goto code |
| 715 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 716 |
} |
} |
| 728 |
on spherical polar geometry. |
on spherical polar geometry. |
| 729 |
The variable |
The variable |
| 730 |
{\bf |
{\bf |
| 731 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/10T.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/10T.htm> \end{rawhtml} |
| 732 |
usingSphericalPolarGrid |
usingSphericalPolarGrid |
| 733 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 734 |
} |
} |
| 735 |
is read in the routine |
is read in the routine |
| 736 |
{\it |
{\it |
| 737 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 738 |
INI\_PARMS |
INI\_PARMS |
| 739 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 740 |
}. When set to {\bf .TRUE.} the settings of {\bf delX} and {\bf delY} are |
}. When set to {\bf .TRUE.} the settings of {\bf delX} and {\bf delY} are |
| 747 |
\end{minipage} |
\end{minipage} |
| 748 |
} |
} |
| 749 |
{\bf |
{\bf |
| 750 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/97.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/97.htm> \end{rawhtml} |
| 751 |
goto code |
goto code |
| 752 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 753 |
} |
} |
| 765 |
not alter the kernel equation discretisation. |
not alter the kernel equation discretisation. |
| 766 |
The variable |
The variable |
| 767 |
{\bf |
{\bf |
| 768 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/110.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/110.htm> \end{rawhtml} |
| 769 |
phiMin |
phiMin |
| 770 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 771 |
} |
} |
| 772 |
is read in the routine |
is read in the routine |
| 773 |
{\it |
{\it |
| 774 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 775 |
INI\_PARMS |
INI\_PARMS |
| 776 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 777 |
} and is used in routine {\it INI\_SPEHRICAL\_POLAR\_GRID}. |
} and is used in routine {\it INI\_SPEHRICAL\_POLAR\_GRID}. |
| 782 |
\end{minipage} |
\end{minipage} |
| 783 |
} |
} |
| 784 |
{\bf |
{\bf |
| 785 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/97.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/97.htm> \end{rawhtml} |
| 786 |
goto code |
goto code |
| 787 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 788 |
} |
} |
| 795 |
in the discrete grid to $1^{\circ}$ in longitude. |
in the discrete grid to $1^{\circ}$ in longitude. |
| 796 |
The variable |
The variable |
| 797 |
{\bf |
{\bf |
| 798 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/10Z.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/10Z.htm> \end{rawhtml} |
| 799 |
delX |
delX |
| 800 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 801 |
} |
} |
| 802 |
is read in the routine |
is read in the routine |
| 803 |
{\it |
{\it |
| 804 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 805 |
INI\_PARMS |
INI\_PARMS |
| 806 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 807 |
} and is used in routine {\it INI\_SPEHRICAL\_POLAR\_GRID}. |
} and is used in routine {\it INI\_SPEHRICAL\_POLAR\_GRID}. |
| 812 |
\end{minipage} |
\end{minipage} |
| 813 |
} |
} |
| 814 |
{\bf |
{\bf |
| 815 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/97.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/97.htm> \end{rawhtml} |
| 816 |
goto code |
goto code |
| 817 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 818 |
} |
} |
| 825 |
in the discrete grid to $1^{\circ}$ in latitude. |
in the discrete grid to $1^{\circ}$ in latitude. |
| 826 |
The variable |
The variable |
| 827 |
{\bf |
{\bf |
| 828 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/UB.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/UB.htm> \end{rawhtml} |
| 829 |
delY |
delY |
| 830 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 831 |
} |
} |
| 832 |
is read in the routine |
is read in the routine |
| 833 |
{\it |
{\it |
| 834 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 835 |
INI\_PARMS |
INI\_PARMS |
| 836 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 837 |
} and is used in routine {\it INI\_SPEHRICAL\_POLAR\_GRID}. |
} and is used in routine {\it INI\_SPEHRICAL\_POLAR\_GRID}. |
| 842 |
\end{minipage} |
\end{minipage} |
| 843 |
} |
} |
| 844 |
{\bf |
{\bf |
| 845 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/97.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/97.htm> \end{rawhtml} |
| 846 |
goto code |
goto code |
| 847 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 848 |
} |
} |
| 856 |
is $2\,{\rm km}$. |
is $2\,{\rm km}$. |
| 857 |
The variable |
The variable |
| 858 |
{\bf |
{\bf |
| 859 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/10W.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/10W.htm> \end{rawhtml} |
| 860 |
delZ |
delZ |
| 861 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 862 |
} |
} |
| 863 |
is read in the routine |
is read in the routine |
| 864 |
{\it |
{\it |
| 865 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 866 |
INI\_PARMS |
INI\_PARMS |
| 867 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 868 |
}. |
}. |
| 869 |
It is copied into the internal |
It is copied into the internal |
| 870 |
model coordinate variable |
model coordinate variable |
| 871 |
{\bf |
{\bf |
| 872 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/10Y.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/10Y.htm> \end{rawhtml} |
| 873 |
delR |
delR |
| 874 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 875 |
} which is used in routine {\it INI\_VERTICAL\_GRID}. |
} which is used in routine {\it INI\_VERTICAL\_GRID}. |
| 880 |
\end{minipage} |
\end{minipage} |
| 881 |
} |
} |
| 882 |
{\bf |
{\bf |
| 883 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/100.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/100.htm> \end{rawhtml} |
| 884 |
goto code |
goto code |
| 885 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 886 |
} |
} |
| 902 |
bathymetry file. |
bathymetry file. |
| 903 |
The variable |
The variable |
| 904 |
{\bf |
{\bf |
| 905 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/179.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/179.htm> \end{rawhtml} |
| 906 |
bathyFile |
bathyFile |
| 907 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 908 |
} |
} |
| 909 |
is read in the routine |
is read in the routine |
| 910 |
{\it |
{\it |
| 911 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 912 |
INI\_PARMS |
INI\_PARMS |
| 913 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 914 |
}. The bathymetry file is read in the routine {\it INI\_DEPTHS}. |
}. The bathymetry file is read in the routine {\it INI\_DEPTHS}. |
| 919 |
\end{minipage} |
\end{minipage} |
| 920 |
} |
} |
| 921 |
{\bf |
{\bf |
| 922 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/88.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/88.htm> \end{rawhtml} |
| 923 |
goto code |
goto code |
| 924 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 925 |
} |
} |
| 938 |
file. |
file. |
| 939 |
The variable |
The variable |
| 940 |
{\bf |
{\bf |
| 941 |
\begin{rawhtml} <A href=../../../code_reference/vdb/names/13W.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/names/13W.htm> \end{rawhtml} |
| 942 |
zonalWindFile |
zonalWindFile |
| 943 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 944 |
} |
} |
| 945 |
is read in the routine |
is read in the routine |
| 946 |
{\it |
{\it |
| 947 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/94.htm> \end{rawhtml} |
| 948 |
INI\_PARMS |
INI\_PARMS |
| 949 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 950 |
}. The wind-stress file is read in the routine |
}. The wind-stress file is read in the routine |
| 956 |
\end{minipage} |
\end{minipage} |
| 957 |
} |
} |
| 958 |
{\bf |
{\bf |
| 959 |
\begin{rawhtml} <A href=../../../code_reference/vdb/code/75.htm> \end{rawhtml} |
\begin{rawhtml} <A href=../code_reference/vdb/code/75.htm> \end{rawhtml} |
| 960 |
goto code |
goto code |
| 961 |
\begin{rawhtml} </A>\end{rawhtml} |
\begin{rawhtml} </A>\end{rawhtml} |
| 962 |
} |
} |
| 972 |
\begin{rawhtml}</PRE>\end{rawhtml} |
\begin{rawhtml}</PRE>\end{rawhtml} |
| 973 |
|
|
| 974 |
\subsubsection{File {\it input/data.pkg}} |
\subsubsection{File {\it input/data.pkg}} |
| 975 |
|
\label{www:tutorials} |
| 976 |
|
|
| 977 |
This file uses standard default values and does not contain |
This file uses standard default values and does not contain |
| 978 |
customisations for this experiment. |
customisations for this experiment. |
| 979 |
|
|
| 980 |
\subsubsection{File {\it input/eedata}} |
\subsubsection{File {\it input/eedata}} |
| 981 |
|
\label{www:tutorials} |
| 982 |
|
|
| 983 |
This file uses standard default values and does not contain |
This file uses standard default values and does not contain |
| 984 |
customisations for this experiment. |
customisations for this experiment. |
| 985 |
|
|
| 986 |
\subsubsection{File {\it input/windx.sin\_y}} |
\subsubsection{File {\it input/windx.sin\_y}} |
| 987 |
|
\label{www:tutorials} |
| 988 |
|
|
| 989 |
The {\it input/windx.sin\_y} file specifies a two-dimensional ($x,y$) |
The {\it input/windx.sin\_y} file specifies a two-dimensional ($x,y$) |
| 990 |
map of wind stress ,$\tau_{x}$, values. The units used are $Nm^{-2}$ (the |
map of wind stress ,$\tau_{x}$, values. The units used are $Nm^{-2}$ (the |
| 998 |
code for creating the {\it input/windx.sin\_y} file. |
code for creating the {\it input/windx.sin\_y} file. |
| 999 |
|
|
| 1000 |
\subsubsection{File {\it input/topog.box}} |
\subsubsection{File {\it input/topog.box}} |
| 1001 |
|
\label{www:tutorials} |
| 1002 |
|
|
| 1003 |
|
|
| 1004 |
The {\it input/topog.box} file specifies a two-dimensional ($x,y$) |
The {\it input/topog.box} file specifies a two-dimensional ($x,y$) |
| 1010 |
code for creating the {\it input/topog.box} file. |
code for creating the {\it input/topog.box} file. |
| 1011 |
|
|
| 1012 |
\subsubsection{File {\it code/SIZE.h}} |
\subsubsection{File {\it code/SIZE.h}} |
| 1013 |
|
\label{www:tutorials} |
| 1014 |
|
|
| 1015 |
Two lines are customized in this file for the current experiment |
Two lines are customized in this file for the current experiment |
| 1016 |
|
|
| 1037 |
\end{small} |
\end{small} |
| 1038 |
|
|
| 1039 |
\subsubsection{File {\it code/CPP\_OPTIONS.h}} |
\subsubsection{File {\it code/CPP\_OPTIONS.h}} |
| 1040 |
|
\label{www:tutorials} |
| 1041 |
|
|
| 1042 |
This file uses standard default values and does not contain |
This file uses standard default values and does not contain |
| 1043 |
customisations for this experiment. |
customisations for this experiment. |
| 1044 |
|
|
| 1045 |
|
|
| 1046 |
\subsubsection{File {\it code/CPP\_EEOPTIONS.h}} |
\subsubsection{File {\it code/CPP\_EEOPTIONS.h}} |
| 1047 |
|
\label{www:tutorials} |
| 1048 |
|
|
| 1049 |
This file uses standard default values and does not contain |
This file uses standard default values and does not contain |
| 1050 |
customisations for this experiment. |
customisations for this experiment. |
| 1051 |
|
|
| 1052 |
\subsubsection{Other Files } |
\subsubsection{Other Files } |
| 1053 |
|
\label{www:tutorials} |
| 1054 |
|
|
| 1055 |
Other files relevant to this experiment are |
Other files relevant to this experiment are |
| 1056 |
\begin{itemize} |
\begin{itemize} |
| 1063 |
\end{itemize} |
\end{itemize} |
| 1064 |
|
|
| 1065 |
\subsection{Running The Example} |
\subsection{Running The Example} |
| 1066 |
|
\label{www:tutorials} |
| 1067 |
\label{SEC:running_the_example} |
\label{SEC:running_the_example} |
| 1068 |
|
|
| 1069 |
\subsubsection{Code Download} |
\subsubsection{Code Download} |
| 1070 |
|
\label{www:tutorials} |
| 1071 |
|
|
| 1072 |
In order to run the examples you must first download the code distribution. |
In order to run the examples you must first download the code distribution. |
| 1073 |
Instructions for downloading the code can be found in section |
Instructions for downloading the code can be found in section |
| 1074 |
\ref{sect:obtainingCode}. |
\ref{sect:obtainingCode}. |
| 1075 |
|
|
| 1076 |
\subsubsection{Experiment Location} |
\subsubsection{Experiment Location} |
| 1077 |
|
\label{www:tutorials} |
| 1078 |
|
|
| 1079 |
This example experiments is located under the release sub-directory |
This example experiments is located under the release sub-directory |
| 1080 |
|
|
| 1082 |
{\it verification/exp2/ } |
{\it verification/exp2/ } |
| 1083 |
|
|
| 1084 |
\subsubsection{Running the Experiment} |
\subsubsection{Running the Experiment} |
| 1085 |
|
\label{www:tutorials} |
| 1086 |
|
|
| 1087 |
To run the experiment |
To run the experiment |
| 1088 |
|
|