New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 11598 for NEMO/trunk/doc/latex/NEMO/subfiles/chap_DIA.tex – NEMO

Ignore:
Timestamp:
2019-09-25T22:00:42+02:00 (5 years ago)
Author:
nicolasmartin
Message:

Add template of versioning record at the beginning of chapters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_DIA.tex

    r11597 r11598  
    22 
    33\begin{document} 
     4 
    45\chapter{Output and Diagnostics (IOM, DIA, TRD, FLO)} 
    56\label{chap:DIA} 
    67 
     8%    {\em 4.0} & {\em Mirek Andrejczuk, Massimiliano Drudi} & {\em }  \\ 
     9%    {\em }      & {\em Dorotea Iovino, Nicolas Martin} & {\em }  \\ 
     10%    {\em 3.6} & {\em Gurvan Madec, Sebastien Masson } & {\em }  \\ 
     11%    {\em 3.4} & {\em Gurvan Madec, Rachid Benshila, Andrew Coward } & {\em }  \\ 
     12%    {\em }      & {\em Christian Ethe, Sebastien Masson } & {\em }  \\ 
     13 
     14\thispagestyle{plain} 
     15 
    716\chaptertoc 
    817 
    9 \vfill 
    10 \begin{figure}[b] 
    11 %% ================================================================================================= 
    12 \subsubsection*{Changes record} 
    13 \begin{tabular}{l||l|m{0.65\linewidth}} 
    14     Release   & Author        & Modifications \\ 
    15     {\em 4.0} & {\em Mirek Andrejczuk, Massimiliano Drudi} & {\em }  \\ 
    16     {\em }      & {\em Dorotea Iovino, Nicolas Martin} & {\em }  \\ 
    17     {\em 3.6} & {\em Gurvan Madec, Sebastien Masson } & {\em }  \\ 
    18     {\em 3.4} & {\em Gurvan Madec, Rachid Benshila, Andrew Coward } & {\em }  \\ 
    19     {\em }      & {\em Christian Ethe, Sebastien Masson } & {\em }  \\ 
    20 \end{tabular} 
    21 \end{figure} 
     18\paragraph{Changes record} ~\\ 
     19 
     20{\footnotesize 
     21  \begin{tabularx}{\textwidth}{l||X|X} 
     22    Release & Author(s) & Modifications \\ 
     23    \hline 
     24    {\em   4.0} & {\em ...} & {\em ...} \\ 
     25    {\em   3.6} & {\em ...} & {\em ...} \\ 
     26    {\em   3.4} & {\em ...} & {\em ...} \\ 
     27    {\em <=3.4} & {\em ...} & {\em ...} 
     28  \end{tabularx} 
     29} 
     30 
     31\clearpage 
    2232 
    2333%% ================================================================================================= 
     
    134144 
    135145If an additional variable must be written to a restart file, the following steps are needed: 
    136 \begin{description} 
    137    \item [step 1:] add variable name to a list of restart variables (in subroutine \rou{iom\_set\_rst\_vars,} \mdl{iom}) and 
     146\begin{enumerate} 
     147\item Add variable name to a list of restart variables (in subroutine \rou{iom\_set\_rst\_vars,} \mdl{iom}) and 
    138148define correct grid for the variable (\forcode{grid_N_3D} - 3D variable, \forcode{grid_N} - 2D variable, \forcode{grid_vector} - 
    1391491D variable, \forcode{grid_scalar} - scalar), 
    140    \item [step 2:] add variable to the list of fields written by restart.  This can be done either in subroutine 
     150\item Add variable to the list of fields written by restart.  This can be done either in subroutine 
    141151\rou{iom\_set\_rstw\_core} (\mdl{iom}) or by calling  \rou{iom\_set\_rstw\_active} (\mdl{iom}) with the name of a variable 
    142152as an argument. This convention follows approach for writing restart using iom, where variables are 
    143153written either by \rou{rst\_write} or by calling \rou{iom\_rstput} from individual routines. 
    144 \end{description} 
     154\end{enumerate} 
    145155 
    146156An older versions of XIOS do not support reading functionality. It's recommended to use at least XIOS2@1451. 
     
    266276 
    267277\begin{enumerate} 
    268 \item [1.] 
    269   in \NEMO\ code, add a \forcode{CALL iom_put( 'identifier', array )} where you want to output a 2D or 3D array. 
    270 \item [2.] 
    271   If necessary, add \forcode{USE iom ! I/O manager library} to the list of used modules in 
     278\item in \NEMO\ code, add a \forcode{CALL iom_put( 'identifier', array )} where you want to output a 2D or 3D array. 
     279\item If necessary, add \forcode{USE iom ! I/O manager library} to the list of used modules in 
    272280  the upper part of your module. 
    273 \item [3.] 
    274   in the field\_def.xml file, add the definition of your variable using the same identifier you used in the f90 code 
     281\item in the field\_def.xml file, add the definition of your variable using the same identifier you used in the f90 code 
    275282  (see subsequent sections for a details of the XML syntax and rules). 
    276283  For example: 
    277  
    278284\begin{xmllines} 
    279285<field_definition> 
     
    284290</field_definition> 
    285291\end{xmllines} 
    286  
    287292Note your definition must be added to the field\_group whose reference grid is consistent with the size of 
    288293the array passed to iomput. 
     
    291296(iom\_set\_domain\_attr and iom\_set\_axis\_attr in \mdl{iom}) or defined in the domain\_def.xml file. 
    292297\eg: 
    293  
    294298\begin{xmllines} 
    295299<grid id="grid_T_3D" domain_ref="grid_T" axis_ref="deptht"/> 
    296300\end{xmllines} 
    297  
    298301Note, if your array is computed within the surface module each \np{nn_fsbc}{nn\_fsbc} time\_step, 
    299302add the field definition within the field\_group defined with the id "SBC": 
    300303\xmlcode{<field_group id="SBC" ...>} which has been defined with the correct frequency of operations 
    301304(iom\_set\_field\_attr in \mdl{iom}) 
    302 \item [4.] 
    303   add your field in one of the output files defined in iodef.xml 
     305\item add your field in one of the output files defined in iodef.xml 
    304306  (again see subsequent sections for syntax and rules) 
    305  
    306307\begin{xmllines} 
    307308<file id="file1" .../> 
     
    311312</file> 
    312313\end{xmllines} 
    313  
    314314\end{enumerate} 
    315315 
     
    13421342\NEMO\ executables linked with NetCDF4 libraries can be made to produce NetCDF3 files by 
    13431343setting the \np{ln_nc4zip}{ln\_nc4zip} logical to false in the \nam{nc4}{nc4} namelist: 
    1344  
    13451344 
    13461345\begin{listing} 
     
    14421441\label{sec:DIA_trd} 
    14431442 
    1444  
    14451443\begin{listing} 
    14461444  \nlst{namtrd} 
     
    14581456 
    14591457\begin{description} 
    1460 \item [{\np{ln_glo_trd}{ln\_glo\_trd}}]: 
    1461   at each \np{nn_trd}{nn\_trd} time-step a check of the basin averaged properties of 
     1458\item [{\np{ln_glo_trd}{ln\_glo\_trd}}]: at each \np{nn_trd}{nn\_trd} time-step a check of the basin averaged properties of 
    14621459  the momentum and tracer equations is performed. 
    14631460  This also includes a check of $T^2$, $S^2$, $\tfrac{1}{2} (u^2+v2)$, 
    14641461  and potential energy time evolution equations properties; 
    1465 \item [{\np{ln_dyn_trd}{ln\_dyn\_trd}}]: 
    1466   each 3D trend of the evolution of the two momentum components is output; 
    1467 \item [{\np{ln_dyn_mxl}{ln\_dyn\_mxl}}]: 
    1468   each 3D trend of the evolution of the two momentum components averaged over the mixed layer is output; 
    1469 \item [{\np{ln_vor_trd}{ln\_vor\_trd}}]: 
    1470   a vertical summation of the moment tendencies is performed, 
     1462\item [{\np{ln_dyn_trd}{ln\_dyn\_trd}}]: each 3D trend of the evolution of the two momentum components is output; 
     1463\item [{\np{ln_dyn_mxl}{ln\_dyn\_mxl}}]: each 3D trend of the evolution of the two momentum components averaged over the mixed layer is output; 
     1464\item [{\np{ln_vor_trd}{ln\_vor\_trd}}]: a vertical summation of the moment tendencies is performed, 
    14711465  then the curl is computed to obtain the barotropic vorticity tendencies which are output; 
    1472 \item [{\np{ln_KE_trd}{ln\_KE\_trd}}] : 
    1473   each 3D trend of the Kinetic Energy equation is output; 
    1474 \item [{\np{ln_tra_trd}{ln\_tra\_trd}}]: 
    1475   each 3D trend of the evolution of temperature and salinity is output; 
    1476 \item [{\np{ln_tra_mxl}{ln\_tra\_mxl}}]: 
    1477   each 2D trend of the evolution of temperature and salinity averaged over the mixed layer is output; 
     1466\item [{\np{ln_KE_trd}{ln\_KE\_trd}}]  : each 3D trend of the Kinetic Energy equation is output; 
     1467\item [{\np{ln_tra_trd}{ln\_tra\_trd}}]: each 3D trend of the evolution of temperature and salinity is output; 
     1468\item [{\np{ln_tra_mxl}{ln\_tra\_mxl}}]: each 2D trend of the evolution of temperature and salinity averaged over the mixed layer is output; 
    14781469\end{description} 
    14791470 
     
    16381629\section[Transports across sections (\texttt{\textbf{key\_diadct}})]{Transports across sections (\protect\key{diadct})} 
    16391630\label{sec:DIA_diag_dct} 
    1640  
    16411631 
    16421632\begin{listing} 
     
    19931983\end{figure} 
    19941984 
    1995 % ----------------------------------------------------------- 
    1996 %       CMIP specific diagnostics 
    1997 % ----------------------------------------------------------- 
    19981985%% ================================================================================================= 
    19991986\subsection[CMIP specific diagnostics (\textit{diaar5.F90}, \textit{diaptr.F90})]{CMIP specific diagnostics (\protect\mdl{diaar5})} 
     
    20152002the Indo-Pacific mask been deduced from the sum of the Indian and Pacific mask (\autoref{fig:DIA_mask_subasins}). 
    20162003 
    2017  
    20182004\begin{listing} 
    20192005  \nlst{namptr} 
     
    20222008\end{listing} 
    20232009 
    2024 % ----------------------------------------------------------- 
    2025 %       25 hour mean and hourly Surface, Mid and Bed 
    2026 % ----------------------------------------------------------- 
    20272010%% ================================================================================================= 
    20282011\subsection{25 hour mean output for tidal models} 
    2029  
    20302012 
    20312013\begin{listing} 
     
    20402022This diagnostic is actived with the logical $ln\_dia25h$. 
    20412023 
    2042 % ----------------------------------------------------------- 
    2043 %     Top Middle and Bed hourly output 
    2044 % ----------------------------------------------------------- 
    20452024%% ================================================================================================= 
    20462025\subsection{Top middle and bed hourly output} 
    2047  
    20482026 
    20492027\begin{listing} 
     
    20592037This diagnostic is actived with the logical $ln\_diatmb$. 
    20602038 
    2061 % ----------------------------------------------------------- 
    2062 %     Courant numbers 
    2063 % ----------------------------------------------------------- 
    20642039%% ================================================================================================= 
    20652040\subsection{Courant numbers} 
Note: See TracChangeset for help on using the changeset viewer.