Changeset 11598 for NEMO/trunk/doc/latex/NEMO/subfiles/chap_DIA.tex
- Timestamp:
- 2019-09-25T22:00:42+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/doc/latex/NEMO/subfiles/chap_DIA.tex
r11597 r11598 2 2 3 3 \begin{document} 4 4 5 \chapter{Output and Diagnostics (IOM, DIA, TRD, FLO)} 5 6 \label{chap:DIA} 6 7 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 7 16 \chaptertoc 8 17 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 22 32 23 33 %% ================================================================================================= … … 134 144 135 145 If 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}) and146 \begin{enumerate} 147 \item Add variable name to a list of restart variables (in subroutine \rou{iom\_set\_rst\_vars,} \mdl{iom}) and 138 148 define correct grid for the variable (\forcode{grid_N_3D} - 3D variable, \forcode{grid_N} - 2D variable, \forcode{grid_vector} - 139 149 1D 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 subroutine150 \item Add variable to the list of fields written by restart. This can be done either in subroutine 141 151 \rou{iom\_set\_rstw\_core} (\mdl{iom}) or by calling \rou{iom\_set\_rstw\_active} (\mdl{iom}) with the name of a variable 142 152 as an argument. This convention follows approach for writing restart using iom, where variables are 143 153 written either by \rou{rst\_write} or by calling \rou{iom\_rstput} from individual routines. 144 \end{ description}154 \end{enumerate} 145 155 146 156 An older versions of XIOS do not support reading functionality. It's recommended to use at least XIOS2@1451. … … 266 276 267 277 \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 272 280 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 275 282 (see subsequent sections for a details of the XML syntax and rules). 276 283 For example: 277 278 284 \begin{xmllines} 279 285 <field_definition> … … 284 290 </field_definition> 285 291 \end{xmllines} 286 287 292 Note your definition must be added to the field\_group whose reference grid is consistent with the size of 288 293 the array passed to iomput. … … 291 296 (iom\_set\_domain\_attr and iom\_set\_axis\_attr in \mdl{iom}) or defined in the domain\_def.xml file. 292 297 \eg: 293 294 298 \begin{xmllines} 295 299 <grid id="grid_T_3D" domain_ref="grid_T" axis_ref="deptht"/> 296 300 \end{xmllines} 297 298 301 Note, if your array is computed within the surface module each \np{nn_fsbc}{nn\_fsbc} time\_step, 299 302 add the field definition within the field\_group defined with the id "SBC": 300 303 \xmlcode{<field_group id="SBC" ...>} which has been defined with the correct frequency of operations 301 304 (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 304 306 (again see subsequent sections for syntax and rules) 305 306 307 \begin{xmllines} 307 308 <file id="file1" .../> … … 311 312 </file> 312 313 \end{xmllines} 313 314 314 \end{enumerate} 315 315 … … 1342 1342 \NEMO\ executables linked with NetCDF4 libraries can be made to produce NetCDF3 files by 1343 1343 setting the \np{ln_nc4zip}{ln\_nc4zip} logical to false in the \nam{nc4}{nc4} namelist: 1344 1345 1344 1346 1345 \begin{listing} … … 1442 1441 \label{sec:DIA_trd} 1443 1442 1444 1445 1443 \begin{listing} 1446 1444 \nlst{namtrd} … … 1458 1456 1459 1457 \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 1462 1459 the momentum and tracer equations is performed. 1463 1460 This also includes a check of $T^2$, $S^2$, $\tfrac{1}{2} (u^2+v2)$, 1464 1461 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, 1471 1465 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; 1478 1469 \end{description} 1479 1470 … … 1638 1629 \section[Transports across sections (\texttt{\textbf{key\_diadct}})]{Transports across sections (\protect\key{diadct})} 1639 1630 \label{sec:DIA_diag_dct} 1640 1641 1631 1642 1632 \begin{listing} … … 1993 1983 \end{figure} 1994 1984 1995 % -----------------------------------------------------------1996 % CMIP specific diagnostics1997 % -----------------------------------------------------------1998 1985 %% ================================================================================================= 1999 1986 \subsection[CMIP specific diagnostics (\textit{diaar5.F90}, \textit{diaptr.F90})]{CMIP specific diagnostics (\protect\mdl{diaar5})} … … 2015 2002 the Indo-Pacific mask been deduced from the sum of the Indian and Pacific mask (\autoref{fig:DIA_mask_subasins}). 2016 2003 2017 2018 2004 \begin{listing} 2019 2005 \nlst{namptr} … … 2022 2008 \end{listing} 2023 2009 2024 % -----------------------------------------------------------2025 % 25 hour mean and hourly Surface, Mid and Bed2026 % -----------------------------------------------------------2027 2010 %% ================================================================================================= 2028 2011 \subsection{25 hour mean output for tidal models} 2029 2030 2012 2031 2013 \begin{listing} … … 2040 2022 This diagnostic is actived with the logical $ln\_dia25h$. 2041 2023 2042 % -----------------------------------------------------------2043 % Top Middle and Bed hourly output2044 % -----------------------------------------------------------2045 2024 %% ================================================================================================= 2046 2025 \subsection{Top middle and bed hourly output} 2047 2048 2026 2049 2027 \begin{listing} … … 2059 2037 This diagnostic is actived with the logical $ln\_diatmb$. 2060 2038 2061 % -----------------------------------------------------------2062 % Courant numbers2063 % -----------------------------------------------------------2064 2039 %% ================================================================================================= 2065 2040 \subsection{Courant numbers}
Note: See TracChangeset
for help on using the changeset viewer.