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 14526 for NEMO/trunk – NEMO

Changeset 14526 for NEMO/trunk


Ignore:
Timestamp:
2021-02-22T17:37:38+01:00 (3 years ago)
Author:
nicolasmartin
Message:

Modify \nlst LaTeX macro for better efficienty
Only one line is needed now to include the highlighted source code, the caption and the cross-reference

\newcommand{\nlst}[1]{
   \begin{listing}
      \newmintedfile{fortran}{../../../namelists/#1}
      \caption{\forcode{&#1}}
      \label{lst:#1}
   \end{listing}
}
Location:
NEMO/trunk/doc/latex
Files:
19 edited

Legend:

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

    r14375 r14526  
    4242 
    4343\begin{listing} 
    44 %  \nlst{namdom_domcfg} 
    4544  \begin{forlines} 
    4645!----------------------------------------------------------------------- 
     
    409408 
    410409\begin{listing} 
    411 %  \nlst{namzgr_sco_domcfg} 
    412410  \caption{\forcode{&namzgr_sco_domcfg}} 
    413411  \label{lst:namzgr_sco_domcfg} 
  • NEMO/trunk/doc/latex/NEMO/subfiles/apdx_triads.tex

    r14257 r14526  
    22 
    33\begin{document} 
    4  
    5 %% Local cmds 
    6 \newcommand{\rML}[1][i]{\ensuremath{_{\mathrm{ML}\,#1}}} 
    7 \newcommand{\rMLt}[1][i]{\tilde{r}_{\mathrm{ML}\,#1}} 
    8 %% Move to ../../global/new_cmds.tex to avoid error with \listoffigures 
    9 %\newcommand{\triad}[6][]{\ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}} 
    10 \newcommand{\triadd}[5]{\ensuremath{{}_{#1}^{#2}{\mathbb{#3}}_{#4}^{\,#5}}} 
    11 \newcommand{\triadt}[5]{\ensuremath{{}_{#1}^{#2}{\tilde{\mathbb{#3}}}_{#4}^{\,#5}}} 
    12 \newcommand{\rtriad}[2][]{\ensuremath{\triad[#1]{i}{k}{#2}{i_p}{k_p}}} 
    13 \newcommand{\rtriadt}[1]{\ensuremath{\triadt{i}{k}{#1}{i_p}{k_p}}} 
    144 
    155\chapter{Iso-Neutral Diffusion and Eddy Advection using Triads} 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_ASM.tex

    r14257 r14526  
    148148the ORCA2 grid. 
    149149 
    150 \begin{listing} 
    151   \nlst{nam_asminc} 
    152   \caption{\forcode{&nam_asminc}} 
    153   \label{lst:nam_asminc} 
    154 \end{listing} 
     150\nlst{nam_asminc} 
    155151 
    156152The header of an assimilation increments file produced using the NetCDF tool 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_DIA.tex

    r14257 r14526  
    13311331setting the \np{ln_nc4zip}{ln\_nc4zip} logical to false in the \nam{nc4}{nc4} namelist: 
    13321332 
    1333 \begin{listing} 
    1334   \nlst{namnc4} 
    1335   \caption{\forcode{&namnc4}} 
    1336   \label{lst:namnc4} 
    1337 \end{listing} 
     1333\nlst{namnc4} 
    13381334 
    13391335If \key{netcdf4} has not been defined, these namelist parameters are not read. 
     
    14291425\label{sec:DIA_trd} 
    14301426 
    1431 \begin{listing} 
    1432   \nlst{namtrd} 
    1433   \caption{\forcode{&namtrd}} 
    1434   \label{lst:namtrd} 
    1435 \end{listing} 
     1427\nlst{namtrd} 
    14361428 
    14371429Each trend of the dynamics and/or temperature and salinity time evolution equations can be send to 
     
    14681460\label{sec:DIA_FLO} 
    14691461 
    1470 \begin{listing} 
    1471   \nlst{namflo} 
    1472   \caption{\forcode{&namflo}} 
    1473   \label{lst:namflo} 
    1474 \end{listing} 
     1462\nlst{namflo} 
    14751463 
    14761464The on-line computation of floats advected either by the three dimensional velocity field or constraint to 
     
    15711559\label{sec:DIA_diag_dct} 
    15721560 
    1573 \begin{listing} 
    1574   \nlst{nam_diadct} 
    1575   \caption{\forcode{&nam_diadct}} 
    1576   \label{lst:nam_diadct} 
    1577 \end{listing} 
     1561\nlst{nam_diadct} 
    15781562 
    15791563A module is available to compute the transport of volume, heat and salt through sections. 
     
    19431927the Indo-Pacific mask been deduced from the sum of the Indian and Pacific mask (\autoref{fig:DIA_mask_subasins}). 
    19441928 
    1945 \begin{listing} 
    19461929%  \nlst{namptr} 
    1947   \caption{\forcode{&namptr}} 
    1948   \label{lst:namptr} 
    1949 \end{listing} 
    19501930 
    19511931%% ================================================================================================= 
    19521932\subsection{25 hour mean output for tidal models} 
    19531933 
    1954 \begin{listing} 
    1955   \nlst{nam_dia25h} 
    1956   \caption{\forcode{&nam_dia25h}} 
    1957   \label{lst:nam_dia25h} 
    1958 \end{listing} 
     1934\nlst{nam_dia25h} 
    19591935 
    19601936A module is available to compute a crudely detided M2 signal by obtaining a 25 hour mean. 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_DIU.tex

    r14257 r14526  
    4343Both the cool skin and warm layer models are controlled through the namelist \nam{diu}{diu}: 
    4444 
    45 \begin{listing} 
    46   \nlst{namdiu} 
    47   \caption{\forcode{&namdiu}} 
    48   \label{lst:namdiu} 
    49 \end{listing} 
     45\nlst{namdiu} 
    5046 
    5147This namelist contains only two variables: 
     48 
    5249\begin{description} 
    5350\item [{\np{ln_diurnal}{ln\_diurnal}}] A logical switch for turning on/off both the cool skin and warm layer. 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_DOM.tex

    r14433 r14526  
    456456\label{subsec:DOM_zgr} 
    457457 
    458 \begin{listing} 
    459   \nlst{namdom} 
    460   \caption{\forcode{&namdom}} 
    461   \label{lst:namdom} 
    462 \end{listing} 
     458\nlst{namdom} 
    463459 
    464460In the vertical, the model mesh is determined by four things: 
     
    670666\label{sec:DOM_DTA_tsd} 
    671667 
    672 \begin{listing} 
    673   \nlst{namtsd} 
    674   \caption{\forcode{&namtsd}} 
    675   \label{lst:namtsd} 
    676 \end{listing} 
     668\nlst{namtsd} 
    677669 
    678670Basic initial state options are defined in \nam{tsd}{tsd}. 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_DYN.tex

    r14257 r14526  
    168168\label{sec:DYN_adv_cor_vect} 
    169169 
    170 \begin{listing} 
    171   \nlst{namdyn_adv} 
    172   \caption{\forcode{&namdyn_adv}} 
    173   \label{lst:namdyn_adv} 
    174 \end{listing} 
     170\nlst{namdyn_adv} 
    175171 
    176172The vector invariant form of the momentum equations is the one most often used in 
     
    187183\label{subsec:DYN_vor} 
    188184 
    189 \begin{listing} 
    190   \nlst{namdyn_vor} 
    191   \caption{\forcode{&namdyn_vor}} 
    192   \label{lst:namdyn_vor} 
    193 \end{listing} 
     185\nlst{namdyn_vor} 
    194186 
    195187Options are defined through the \nam{dyn_vor}{dyn\_vor} namelist variables. 
     
    538530\label{sec:DYN_hpg} 
    539531 
    540 \begin{listing} 
    541   \nlst{namdyn_hpg} 
    542   \caption{\forcode{&namdyn_hpg}} 
    543   \label{lst:namdyn_hpg} 
    544 \end{listing} 
     532\nlst{namdyn_hpg} 
    545533 
    546534Options are defined through the \nam{dyn_hpg}{dyn\_hpg} namelist variables. 
     
    745733\label{sec:DYN_spg} 
    746734 
    747 \begin{listing} 
    748   \nlst{namdyn_spg} 
    749   \caption{\forcode{&namdyn_spg}} 
    750   \label{lst:namdyn_spg} 
    751 \end{listing} 
     735\nlst{namdyn_spg} 
    752736 
    753737Options are defined through the \nam{dyn_spg}{dyn\_spg} namelist variables. 
     
    10621046\label{sec:DYN_ldf} 
    10631047 
    1064 \begin{listing} 
    1065   \nlst{namdyn_ldf} 
    1066   \caption{\forcode{&namdyn_ldf}} 
    1067   \label{lst:namdyn_ldf} 
    1068 \end{listing} 
     1048\nlst{namdyn_ldf} 
    10691049 
    10701050Options are defined through the \nam{dyn_ldf}{dyn\_ldf} namelist variables. 
     
    12661246by setting $\mathrm{ln\_wd\_dl} = \mathrm{.true.}$ and $\mathrm{ln\_wd\_il} = \mathrm{.false.}$. 
    12671247 
    1268 \begin{listing} 
    1269   \nlst{namwad} 
    1270   \caption{\forcode{&namwad}} 
    1271   \label{lst:namwad} 
    1272 \end{listing} 
     1248\nlst{namwad} 
    12731249 
    12741250The following terminology is used. The depth of the topography (positive downwards) 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_LBC.tex

    r14433 r14526  
    3030\label{sec:LBC_coast} 
    3131 
    32 \begin{listing} 
    33   \nlst{namlbc} 
    34   \caption{\forcode{&namlbc}} 
    35   \label{lst:namlbc} 
    36 \end{listing} 
     32\nlst{namlbc} 
    3733 
    3834%The lateral ocean boundary conditions contiguous to coastlines are Neumann conditions for heat and salt 
     
    230226\label{sec:LBC_mpp} 
    231227 
    232 \begin{listing} 
    233   \nlst{nammpp} 
    234   \caption{\forcode{&nammpp}} 
    235   \label{lst:nammpp} 
    236 \end{listing} 
     228\nlst{nammpp} 
    237229 
    238230For massively parallel processing (mpp), a domain decomposition method is used. 
     
    339331\label{sec:LBC_bdy} 
    340332 
    341 \begin{listing} 
    342   \nlst{nambdy} 
    343   \caption{\forcode{&nambdy}} 
    344   \label{lst:nambdy} 
    345 \end{listing} 
    346  
    347 \begin{listing} 
    348   \nlst{nambdy_dta} 
    349   \caption{\forcode{&nambdy_dta}} 
    350   \label{lst:nambdy_dta} 
    351 \end{listing} 
     333\nlst{nambdy} 
     334 
     335\nlst{nambdy_dta} 
    352336 
    353337Options are defined through the \nam{bdy}{bdy} and \nam{bdy_dta}{bdy\_dta} namelist variables. 
     
    657641\label{subsec:LBC_bdy_tides} 
    658642 
    659 \begin{listing} 
    660   \nlst{nambdy_tide} 
    661   \caption{\forcode{&nambdy_tide}} 
    662   \label{lst:nambdy_tide} 
    663 \end{listing} 
     643\nlst{nambdy_tide} 
    664644 
    665645Tidal forcing at open boundaries requires the activation of surface 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_LDF.tex

    r14257 r14526  
    469469\label{sec:LDF_eiv} 
    470470 
    471 \begin{listing} 
    472   \nlst{namtra_eiv} 
    473   \caption{\forcode{&namtra_eiv}} 
    474   \label{lst:namtra_eiv} 
    475 \end{listing} 
     471\nlst{namtra_eiv} 
    476472 
    477473%%gm  from Triad appendix  : to be incorporated.... 
     
    532528\label{sec:LDF_mle} 
    533529 
    534 \begin{listing} 
    535   \nlst{namtra_mle} 
    536   \caption{\forcode{&namtra_mle}} 
    537   \label{lst:namtra_mle} 
    538 \end{listing} 
     530\nlst{namtra_mle} 
    539531 
    540532If  \np[=.true.]{ln_mle}{ln\_mle} in \nam{tra_mle}{tra\_mle} namelist, a parameterization of the mixing due to unresolved mixed layer instabilities is activated (\citet{fox-kemper.ferrari.ea_JPO08}). Additional transport is computed in \rou{ldf\_mle\_trp} and added to the eulerian transport in \rou{tra\_adv} as done for eddy induced advection. 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_OBS.tex

    r14257 r14526  
    124124the observation files that may be used with the observation operator. 
    125125 
    126 \begin{listing} 
    127   \nlst{namobs} 
    128   \caption{\forcode{&namobs}} 
    129   \label{lst:namobs} 
    130 \end{listing} 
     126\nlst{namobs} 
    131127 
    132128The observation operator code uses the feedback observation file format for all data types. 
     
    913909 
    914910\begin{listing} 
    915 %  \nlst{namsao} 
    916911  \begin{forlines} 
    917912!---------------------------------------------------------------------- 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_SBC.tex

    r14525 r14526  
    2525\clearpage 
    2626 
    27 \begin{listing} 
    28   \nlst{namsbc} 
    29   \caption{\forcode{&namsbc}} 
    30   \label{lst:namsbc} 
    31 \end{listing} 
     27\nlst{namsbc} 
    3228 
    3329The ocean needs seven fields as surface boundary condition: 
     
    438434\label{subsec:SBC_SAS} 
    439435 
    440 \begin{listing} 
    441   \nlst{namsbc_sas} 
    442   \caption{\forcode{&namsbc_sas}} 
    443   \label{lst:namsbc_sas} 
    444 \end{listing} 
     436\nlst{namsbc_sas} 
    445437 
    446438In some circumstances, it may be useful to avoid calculating the 3D temperature, 
     
    503495% parameterization'' (i.e NCAR, COARE, ECMWF...) 
    504496 
    505 \begin{listing} 
    506   \nlst{namsbc_flx} 
    507   \caption{\forcode{&namsbc_flx}} 
    508   \label{lst:namsbc_flx} 
    509 \end{listing} 
     497\nlst{namsbc_flx} 
    510498 
    511499In the flux formulation (\np[=.true.]{ln_flx}{ln\_flx}), 
     
    525513% L. Brodeau, December 2019... % 
    526514 
    527 \begin{listing} 
    528   \nlst{namsbc_blk} 
    529   \caption{\forcode{&namsbc_blk}} 
    530   \label{lst:namsbc_blk} 
    531 \end{listing} 
     515\nlst{namsbc_blk} 
    532516 
    533517If the bulk formulation is selected (\np[=.true.]{ln_blk}{ln\_blk}), the air-sea 
     
    884868\label{sec:SBC_cpl} 
    885869 
    886 \begin{listing} 
    887   \nlst{namsbc_cpl} 
    888   \caption{\forcode{&namsbc_cpl}} 
    889   \label{lst:namsbc_cpl} 
    890 \end{listing} 
     870\nlst{namsbc_cpl} 
    891871 
    892872In the coupled formulation of the surface boundary condition, 
     
    920900\label{sec:SBC_apr} 
    921901 
    922 \begin{listing} 
    923   \nlst{namsbc_apr} 
    924   \caption{\forcode{&namsbc_apr}} 
    925   \label{lst:namsbc_apr} 
    926 \end{listing} 
     902\nlst{namsbc_apr} 
    927903 
    928904The optional atmospheric pressure can be used to force ocean and ice dynamics 
     
    956932\label{sec:SBC_TDE} 
    957933 
    958 \begin{listing} 
    959   \nlst{nam_tide} 
    960   \caption{\forcode{&nam_tide}} 
    961   \label{lst:nam_tide} 
    962 \end{listing} 
     934\nlst{nam_tide} 
    963935 
    964936\subsection{Tidal constituents} 
     
    10431015\label{sec:SBC_rnf} 
    10441016 
    1045 \begin{listing} 
    1046   \nlst{namsbc_rnf} 
    1047   \caption{\forcode{&namsbc_rnf}} 
    1048   \label{lst:namsbc_rnf} 
    1049 \end{listing} 
     1017\nlst{namsbc_rnf} 
    10501018 
    10511019%River runoff generally enters the ocean at a nonzero depth rather than through the surface. 
     
    11811149\label{sec:SBC_isf} 
    11821150 
    1183 \begin{listing} 
    1184   \nlst{namisf} 
    1185   \caption{\forcode{&namisf}} 
    1186   \label{lst:namisf} 
    1187 \end{listing} 
     1151\nlst{namisf} 
    11881152 
    11891153The namelist variable in \nam{isf}{isf}, \np{ln_isf}{ln\_isf}, controls the ice shelf interactions: 
     
    14911455\label{sec:SBC_ICB_icebergs} 
    14921456 
    1493 \begin{listing} 
    1494   \nlst{namberg} 
    1495   \caption{\forcode{&namberg}} 
    1496   \label{lst:namberg} 
    1497 \end{listing} 
     1457\nlst{namberg} 
    14981458 
    14991459Icebergs are modelled as lagrangian particles in \NEMO\ \citep{marsh.ivchenko.ea_GMD15}. 
     
    15641524\label{sec:SBC_wave} 
    15651525 
    1566 \begin{listing} 
    1567   \nlst{namsbc_wave} 
    1568   \caption{\forcode{&namsbc_wave}} 
    1569   \label{lst:namsbc_wave} 
    1570 \end{listing} 
     1526\nlst{namsbc_wave} 
    15711527 
    15721528Ocean waves represent the interface between the ocean and the atmosphere, so \NEMO\ is extended to incorporate 
     
    18181774\label{subsec:SBC_ssr} 
    18191775 
    1820 \begin{listing} 
    1821   \nlst{namsbc_ssr} 
    1822   \caption{\forcode{&namsbc_ssr}} 
    1823   \label{lst:namsbc_ssr} 
    1824 \end{listing} 
     1776\nlst{namsbc_ssr} 
    18251777 
    18261778Options are defined through the \nam{sbc_ssr}{sbc\_ssr} namelist variables. 
     
    19271879\label{subsec:SBC_fwb} 
    19281880 
    1929 \begin{listing} 
    1930   \nlst{namsbc_fwb} 
    1931   \caption{\forcode{&namsbc_fwb}} 
    1932   \label{lst:namsbc_fwb} 
    1933 \end{listing} 
     1881\nlst{namsbc_fwb} 
    19341882 
    19351883For global ocean simulations, it can be useful to introduce a control of the 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_STO.tex

    r14257 r14526  
    181181(only the subset for equation of state stochastic parametrisation is listed below): 
    182182 
    183 \begin{listing} 
    184   \nlst{namsto} 
    185   \caption{\forcode{&namsto}} 
    186   \label{lst:namsto} 
    187 \end{listing} 
     183\nlst{namsto} 
    188184 
    189185The variables of stochastic paramtetrisation itself (based on the global 2° experiments as in \cite{brankart_OM13} are: 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_TRA.tex

    r14375 r14526  
    7676\label{sec:TRA_adv} 
    7777 
    78 \begin{listing} 
    79   \nlst{namtra_adv} 
    80   \caption{\forcode{&namtra_adv}} 
    81   \label{lst:namtra_adv} 
    82 \end{listing} 
     78\nlst{namtra_adv} 
    8379 
    8480When considered (\ie\ when \np{ln_traadv_OFF}{ln\_traadv\_OFF} is not set to \forcode{.true.}), 
     
    456452\label{sec:TRA_ldf} 
    457453 
    458 \begin{listing} 
    459   \nlst{namtra_ldf} 
    460   \caption{\forcode{&namtra_ldf}} 
    461   \label{lst:namtra_ldf} 
    462 \end{listing} 
     454\nlst{namtra_ldf} 
    463455 
    464456Options are defined through the \nam{tra_ldf}{tra\_ldf} namelist variables. 
     
    772764\label{subsec:TRA_qsr} 
    773765 
    774 \begin{listing} 
    775   \nlst{namtra_qsr} 
    776   \caption{\forcode{&namtra_qsr}} 
    777   \label{lst:namtra_qsr} 
    778 \end{listing} 
     766\nlst{namtra_qsr} 
    779767 
    780768Options are defined through the \nam{tra_qsr}{tra\_qsr} namelist variables. 
     
    894882\label{subsec:TRA_bbc} 
    895883 
    896 \begin{listing} 
    897   \nlst{nambbc} 
    898   \caption{\forcode{&nambbc}} 
    899   \label{lst:nambbc} 
    900 \end{listing} 
     884\nlst{nambbc} 
    901885 
    902886\begin{figure} 
     
    935919\label{sec:TRA_bbl} 
    936920 
    937 \begin{listing} 
    938   \nlst{nambbl} 
    939   \caption{\forcode{&nambbl}} 
    940   \label{lst:nambbl} 
    941 \end{listing} 
     921\nlst{nambbl} 
    942922 
    943923Options are defined through the \nam{bbl}{bbl} namelist variables. 
     
    10971077\label{sec:TRA_dmp} 
    10981078 
    1099 \begin{listing} 
    1100   \nlst{namtra_dmp} 
    1101   \caption{\forcode{&namtra_dmp}} 
    1102   \label{lst:namtra_dmp} 
    1103 \end{listing} 
     1079\nlst{namtra_dmp} 
    11041080 
    11051081In some applications it can be useful to add a Newtonian damping term into 
     
    11881164\label{sec:TRA_eosbn2} 
    11891165 
    1190 \begin{listing} 
    1191   \nlst{nameos} 
    1192   \caption{\forcode{&nameos}} 
    1193   \label{lst:nameos} 
    1194 \end{listing} 
     1166\nlst{nameos} 
    11951167 
    11961168%% ================================================================================================= 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_ZDF.tex

    r14257 r14526  
    22 
    33\begin{document} 
    4  
    5 %% Custom aliases 
    6 \newcommand{\cf}{\ensuremath{C\kern-0.14em f}} 
    74 
    85\chapter{Vertical Ocean Physics (ZDF)} 
     
    5653%and thus of the formulation used (see \autoref{chap:TD}). 
    5754 
    58 \begin{listing} 
    59   \nlst{namzdf} 
    60   \caption{\forcode{&namzdf}} 
    61   \label{lst:namzdf} 
    62 \end{listing} 
     55\nlst{namzdf} 
    6356 
    6457%% ================================================================================================= 
     
    8679\label{subsec:ZDF_ric} 
    8780 
    88 \begin{listing} 
    89   \nlst{namzdf_ric} 
    90   \caption{\forcode{&namzdf_ric}} 
    91   \label{lst:namzdf_ric} 
    92 \end{listing} 
     81\nlst{namzdf_ric} 
    9382 
    9483When \np[=.true.]{ln_zdfric}{ln\_zdfric}, a local Richardson number dependent formulation for the vertical momentum and 
     
    142131\label{subsec:ZDF_tke} 
    143132 
    144 \begin{listing} 
    145   \nlst{namzdf_tke} 
    146   \caption{\forcode{&namzdf_tke}} 
    147   \label{lst:namzdf_tke} 
    148 \end{listing} 
     133\nlst{namzdf_tke} 
    149134 
    150135The vertical eddy viscosity and diffusivity coefficients are computed from a TKE turbulent closure model based on 
     
    420405\label{subsec:ZDF_gls} 
    421406 
    422 \begin{listing} 
    423   \nlst{namzdf_gls} 
    424   \caption{\forcode{&namzdf_gls}} 
    425   \label{lst:namzdf_gls} 
    426 \end{listing} 
     407\nlst{namzdf_gls} 
    427408 
    428409The Generic Length Scale (GLS) scheme is a turbulent closure scheme based on two prognostic equations: 
     
    539520\label{subsec:ZDF_osm} 
    540521 
    541 \begin{listing} 
    542   \nlst{namzdf_osm} 
    543   \caption{\forcode{&namzdf_osm}} 
    544   \label{lst:namzdf_osm} 
    545 \end{listing} 
     522\nlst{namzdf_osm} 
    546523 
    547524%-------------------------------------------------------------------------------------------------------------- 
     
    10781055\label{sec:ZDF_drg} 
    10791056 
    1080 \begin{listing} 
    1081   \nlst{namdrg} 
    1082   \caption{\forcode{&namdrg}} 
    1083   \label{lst:namdrg} 
    1084 \end{listing} 
    1085 \begin{listing} 
    1086   \nlst{namdrg_top} 
    1087   \caption{\forcode{&namdrg_top}} 
    1088   \label{lst:namdrg_top} 
    1089 \end{listing} 
    1090 \begin{listing} 
    1091   \nlst{namdrg_bot} 
    1092   \caption{\forcode{&namdrg_bot}} 
    1093   \label{lst:namdrg_bot} 
    1094 \end{listing} 
     1057\nlst{namdrg} 
     1058 
     1059\nlst{namdrg_top} 
     1060 
     1061\nlst{namdrg_bot} 
    10951062 
    10961063Options to define the top and bottom friction are defined through the \nam{drg}{drg} namelist variables. 
     
    13461313\label{subsec:ZDF_tmx_new} 
    13471314 
    1348 \begin{listing} 
    1349   \nlst{namzdf_iwm} 
    1350   \caption{\forcode{&namzdf_iwm}} 
    1351   \label{lst:namzdf_iwm} 
    1352 \end{listing} 
     1315\nlst{namzdf_iwm} 
    13531316 
    13541317The parameterization of mixing induced by breaking internal waves is a generalization of 
     
    15621525by only a few extra physics choices namely: 
    15631526 
    1564 \begin{verbatim} 
     1527\begin{forlines} 
    15651528     ln_dynldf_OFF = .false. 
    15661529     ln_dynldf_lap = .true. 
     
    15701533        nn_fct_h   =  2 
    15711534        nn_fct_v   =  2 
    1572 \end{verbatim} 
     1535\end{forlines} 
    15731536 
    15741537\noindent which were chosen to provide a slightly more stable and less noisy solution. The 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_cfgs.tex

    r14257 r14526  
    3535Configuration is defined manually through the \nam{cfg}{cfg} namelist variables. 
    3636 
    37 \begin{listing} 
    38   \nlst{namcfg} 
    39   \caption{\forcode{&namcfg}} 
    40   \label{lst:namcfg} 
    41 \end{listing} 
     37\nlst{namcfg} 
    4238 
    4339%% ================================================================================================= 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_misc.tex

    r14303 r14526  
    1212{\footnotesize 
    1313  \begin{tabularx}{\textwidth}{l||X|X} 
    14     Release & Author(s) & Modifications \\ 
     14    Release     & Author(s)            & Modifications                      \\ 
    1515    \hline 
    16     {\em   X.X} & {\em Pierre Mathiot} & {update of the closed sea section} 
    17     {\em   4.0} & {\em ...} & {\em ...} \\ 
    18     {\em   3.6} & {\em ...} & {\em ...} \\ 
    19     {\em   3.4} & {\em ...} & {\em ...} \\ 
    20     {\em <=3.4} & {\em ...} & {\em ...} 
     16    {\em   X.X} & {\em Pierre Mathiot} & {Update of the closed sea section} \\ 
     17    {\em   4.0} & {\em ...           } & {\em ...                         } \\ 
     18    {\em   3.6} & {\em ...           } & {\em ...                         } \\ 
     19    {\em   3.4} & {\em ...           } & {\em ...                         } \\ 
     20    {\em <=3.4} & {\em ...           } & {\em ...                         } 
    2121  \end{tabularx} 
    2222} 
     
    112112\label{sec:MISC_closea} 
    113113 
    114 \begin{listing} 
    115   \nlst{namclo} 
    116   \caption{\forcode{&namclo}} 
    117   \label{lst:namclo} 
    118 \end{listing} 
     114\nlst{namclo} 
    119115 
    120116Some configurations include inland seas and lakes as ocean 
     
    330326\label{sec:MISC_opt} 
    331327 
    332 \begin{listing} 
    333   \nlst{namctl} 
    334   \caption{\forcode{&namctl}} 
    335   \label{lst:namctl} 
    336 \end{listing} 
     328\nlst{namctl} 
    337329 
    338330Options are defined through the  \nam{ctl}{ctl} namelist variables. 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_model_basics_zstar.tex

    r14257 r14526  
    8383 
    8484%\nlst{nam_dynspg} 
     85 
    8586Options are defined through the \nam{_dynspg}{\_dynspg} namelist variables. 
    8687The surface pressure gradient term is related to the representation of the free surface (\autoref{sec:MB_hor_pg}). 
  • NEMO/trunk/doc/latex/NEMO/subfiles/chap_time_domain.tex

    r14257 r14526  
    1212{\footnotesize 
    1313  \begin{tabularx}{0.5\textwidth}{l||X|X} 
    14     Release          & Author(s)                                       & 
     14    Release          & Author(s)                                       &  
    1515    Modifications                                                      \\ 
    1616    \hline 
    17     {\em        4.0} & {\em J\'{e}r\^{o}me Chanut \newline Tim Graham} & 
     17    {\em        4.0} & {\em J\'{e}r\^{o}me Chanut \newline Tim Graham} &  
    1818    {\em Review \newline Update                                      } \\ 
    19     {\em        3.6} & {\em Christian \'{E}th\'{e}                   } & 
     19    {\em        3.6} & {\em Christian \'{E}th\'{e}                   } &  
    2020    {\em Update                                                      } \\ 
    21     {\em $\leq$ 3.4} & {\em Gurvan Madec                             } & 
     21    {\em $\leq$ 3.4} & {\em Gurvan Madec                             } &  
    2222    {\em First version                                               } \\ 
    2323  \end{tabularx} 
     
    4444 
    4545The time stepping used in \NEMO\ is a three level scheme that can be represented as follows: 
     46 
    4647\begin{equation} 
    4748  \label{eq:TD} 
    4849  x^{t + \rdt} = x^{t - \rdt} + 2 \, \rdt \ \text{RHS}_x^{t - \rdt, \, t, \, t + \rdt} 
    4950\end{equation} 
     51 
    5052where $x$ stands for $u$, $v$, $T$ or $S$; 
    5153RHS is the \textbf{R}ight-\textbf{H}and-\textbf{S}ide of the corresponding time evolution equation; 
     
    9799first designed by \citet{robert_JMSJ66} and more comprehensively studied by \citet{asselin_MWR72}, 
    98100is a kind of laplacian diffusion in time that mixes odd and even time steps: 
     101 
    99102\begin{equation} 
    100103  \label{eq:TD_asselin} 
    101104  x_F^t = x^t + \gamma \, \lt[ x_F^{t - \rdt} - 2 x^t + x^{t + \rdt} \rt] 
    102105\end{equation} 
     106 
    103107where the subscript $F$ denotes filtered values and $\gamma$ is the Asselin coefficient. 
    104108$\gamma$ is initialized as \np{rn_atfp}{rn\_atfp} (namelist parameter). 
     
    132136The conditions for stability of second and fourth order horizontal diffusion schemes are 
    133137\citep{griffies_bk04}: 
     138 
    134139\begin{equation} 
    135140  \label{eq:TD_euler_stability} 
     
    140145  \end{cases} 
    141146\end{equation} 
     147 
    142148where $e$ is the smallest grid size in the two horizontal directions and 
    143149$A^h$ is the mixing coefficient. 
     
    151157To overcome the stability constraint, a backward (or implicit) time differencing scheme is used. 
    152158This scheme is unconditionally stable but diffusive and can be written as follows: 
     159 
    153160\begin{equation} 
    154161  \label{eq:TD_imp} 
     
    168175where RHS is the right hand side of the equation except for the vertical diffusion term. 
    169176We rewrite \autoref{eq:TD_imp} as: 
     177 
    170178\begin{equation} 
    171179  \label{eq:TD_imp_mat} 
    172180  -c(k + 1) \; T^{t + 1}(k + 1) + d(k) \; T^{t + 1}(k) - \; c(k) \; T^{t + 1}(k - 1) \equiv b(k) 
    173181\end{equation} 
     182 
    174183where 
     184 
    175185\[ 
    176186  c(k) = A_w^{vT} (k) \, / \, e_{3w} (k) \text{,} \quad 
     
    239249$Q$ is redistributed over several time step. 
    240250In the modified LF-RA environment, these two formulations have been replaced by: 
     251 
    241252\begin{gather} 
    242253  \label{eq:TD_forcing} 
     
    246257                    - \gamma \, \rdt \, \lt( Q^{t + \rdt / 2} - Q^{t - \rdt / 2} \rt) 
    247258\end{gather} 
     259 
    248260The change in the forcing formulation given by \autoref{eq:TD_forcing} 
    249261(see \autoref{fig:TD_MLF_forcing}) has a significant effect: 
     
    290302\label{sec:TD_rst} 
    291303 
    292 \begin{listing} 
    293   \nlst{namrun} 
    294   \caption{\forcode{&namrun}} 
    295   \label{lst:namrun} 
    296 \end{listing} 
     304\nlst{namrun} 
    297305 
    298306The first time step of this three level scheme when starting from initial conditions is 
     
    375383  % 
    376384\end{flalign*} 
     385 
    377386\begin{flalign*} 
    378387  \allowdisplaybreaks 
     
    387396  % 
    388397\end{flalign*} 
     398 
    389399\begin{flalign*} 
    390400  \allowdisplaybreaks 
  • NEMO/trunk/doc/latex/global/highlighting.tex

    r14257 r14526  
    2929 
    3030%% Namelists inclusion 
    31 \newcommand{\nlst}[1]{\forfile{../../../namelists/#1}} 
    32 %\newcommand{\nlst}[1]{ 
    33 %   \begin{listing} 
    34 %      \newmintedfile{fortran}{../../../namelists/#1} 
    35 %      \caption{\forcode{&#1}} 
    36 %      \label{lst:#1} 
    37 %   \end{listing} 
    38 %} 
     31\newcommand{\nlst}[1]{ 
     32   \begin{listing} 
     33      \newmintedfile{fortran}{../../../namelists/#1} 
     34      \caption{\forcode{&#1}} 
     35      \label{lst:#1} 
     36   \end{listing} 
     37} 
Note: See TracChangeset for help on using the changeset viewer.