| 1 |
% $Header$ |
% $Header$ |
| 2 |
% $Name$ |
% $Name$ |
| 3 |
|
|
| 4 |
\subsection{NetCDF I/O Integration: MNC} |
\section{NetCDF I/O Integration: MNC} |
| 5 |
\label{sec:pkg:mnc} |
\label{sec:pkg:mnc} |
| 6 |
\begin{rawhtml} |
\begin{rawhtml} |
| 7 |
<!-- CMIREDIR:package_mnc: --> |
<!-- CMIREDIR:package_mnc: --> |
| 31 |
platform. |
platform. |
| 32 |
|
|
| 33 |
|
|
| 34 |
\subsubsection{Using MNC} |
\subsection{Using MNC} |
| 35 |
|
|
| 36 |
MNC Configuration: |
\subsubsection{MNC Configuration:} |
| 37 |
|
|
| 38 |
As with all MITgcm packages, MNC can be turned on or off at compile time |
As with all MITgcm packages, MNC can be turned on or off at compile time |
| 39 |
using the \texttt{packages.conf} file or the \texttt{genmake2} |
using the \texttt{packages.conf} file or the \texttt{genmake2} |
| 75 |
iterative compile--test sequence. |
iterative compile--test sequence. |
| 76 |
|
|
| 77 |
|
|
| 78 |
MNC Inputs: |
\subsubsection{MNC Inputs:} |
| 79 |
|
|
| 80 |
Like most MITgcm packages, all of MNC can be turned on/off at runtime |
Like most MITgcm packages, all of MNC can be turned on/off at runtime |
| 81 |
using a single flag in \texttt{data.pkg} |
using a single flag in \texttt{data.pkg} |
| 207 |
use of MNC. |
use of MNC. |
| 208 |
|
|
| 209 |
|
|
| 210 |
MNC Output: |
\subsubsection{MNC Output:} |
| 211 |
|
|
| 212 |
Depending upon the flags used, MNC will produce zero or more |
Depending upon the flags used, MNC will produce zero or more |
| 213 |
directories containing one or more netCDF files as output. These |
directories containing one or more netCDF files as output. These |
| 299 |
\end{enumerate} |
\end{enumerate} |
| 300 |
|
|
| 301 |
|
|
| 302 |
\subsubsection{MNC Troubleshooting} |
\subsection{MNC Troubleshooting} |
| 303 |
|
|
| 304 |
Build Troubleshooting: |
\subsubsection{Build Troubleshooting:} |
| 305 |
|
|
| 306 |
In order to build MITgcm with MNC enabled, the netCDF v3.x Fortran-77 |
In order to build MITgcm with MNC enabled, the netCDF v3.x Fortran-77 |
| 307 |
(not Fortran-90) library must be available. This library is compposed |
(not Fortran-90) library must be available. This library is compposed |
| 320 |
which includes an extensive list of known--good netCDF configurations |
which includes an extensive list of known--good netCDF configurations |
| 321 |
for various platforms |
for various platforms |
| 322 |
|
|
| 323 |
Runtime Troubleshooting: |
\subsubsection{Runtime Troubleshooting:} |
| 324 |
|
|
| 325 |
Please be aware of the following: |
Please be aware of the following: |
| 326 |
|
|
| 358 |
\end{itemize} |
\end{itemize} |
| 359 |
|
|
| 360 |
|
|
| 361 |
\subsubsection{MNC Internals} |
\subsection{MNC Internals} |
| 362 |
|
|
| 363 |
The \texttt{mnc} package is a two-level convenience library (or |
The \texttt{mnc} package is a two-level convenience library (or |
| 364 |
``wrapper'') for most of the NetCDF Fortran API. Its purpose is to |
``wrapper'') for most of the NetCDF Fortran API. Its purpose is to |
| 406 |
\end{description} |
\end{description} |
| 407 |
|
|
| 408 |
|
|
| 409 |
MNC Grid--Types and Variable--Types: |
\subsubsection{MNC Grid--Types and Variable--Types:} |
| 410 |
|
|
| 411 |
As a convenience for users, the MNC package includes numerous routines |
As a convenience for users, the MNC package includes numerous routines |
| 412 |
to aid in the writing of data to NetCDF format. Probably the biggest |
to aid in the writing of data to NetCDF format. Probably the biggest |
| 465 |
and writing variables. |
and writing variables. |
| 466 |
|
|
| 467 |
|
|
| 468 |
Using MNC: Examples: |
\subsubsection{Using MNC: Examples:} |
| 469 |
|
|
| 470 |
Writing variables to NetCDF files can be accomplished in as few as two |
Writing variables to NetCDF files can be accomplished in as few as two |
| 471 |
function calls. The first function call defines a variable type, |
function calls. The first function call defines a variable type, |