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 11582 for NEMO/trunk/doc/latex/NEMO/subfiles/apdx_DOMAINcfg.tex – NEMO

Ignore:
Timestamp:
2019-09-20T11:44:31+02:00 (5 years ago)
Author:
nicolasmartin
Message:

New LaTeX commands \nam and \np to mention namelist content (step 2)
Finally convert \forcode{...} following \np{}{} into optional arg of the new command \np[]{}{}

File:
1 edited

Legend:

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

    r11578 r11582  
    11\documentclass[../main/NEMO_manual]{subfiles} 
     2 
     3\onlyinsubfile{\makeindex} 
    24 
    35\begin{document} 
     
    5557 
    5658\begin{description} 
    57  \item[\np{jphgr_mesh}{jphgr\_mesh}=0]  The most general curvilinear orthogonal grids. 
     59 \item[{\np{jphgr_mesh}{jphgr\_mesh}=0}]  The most general curvilinear orthogonal grids. 
    5860  The coordinates and their first derivatives with respect to $i$ and $j$ are provided 
    5961  in a input file (\ifile{coordinates}), read in \rou{hgr\_read} subroutine of the domhgr module. 
    6062  This is now the only option available within \NEMO\ itself from v4.0 onwards. 
    61 \item[\np{jphgr_mesh}{jphgr\_mesh}=1 to 5] A few simple analytical grids are provided (see below). 
     63\item[{\np{jphgr_mesh}{jphgr\_mesh}=1 to 5}] A few simple analytical grids are provided (see below). 
    6264  For other analytical grids, the \mdl{domhgr} module (\texttt{DOMAINcfg} variant) must be 
    6365  modified by the user. In most cases, modifying the \mdl{usrdef\_hgr} module of \NEMO\ is 
     
    136138 
    137139It is possible to define a simple regular vertical grid by giving zero stretching 
    138 (\np{ppacr}{ppacr}\forcode{ = 0}).  In that case, the parameters \jp{jpk} (number of $w$-levels) 
     140(\np[=0]{ppacr}{ppacr}).  In that case, the parameters \jp{jpk} (number of $w$-levels) 
    139141and \np{pphmax}{pphmax} (total ocean depth in meters) fully define the grid. 
    140142 
     
    152154top and bottom with a smooth hyperbolic tangent transition in between (\autoref{fig:DOMCFG_zgr}). 
    153155 
    154 A double hyperbolic tangent version (\np{ldbletanh}{ldbletanh}\forcode{ = .true.}) is also available 
     156A double hyperbolic tangent version (\np[=.true.]{ldbletanh}{ldbletanh}) is also available 
    155157which permits finer control and is used, typically, to obtain a well resolved upper ocean 
    156158without compromising on resolution at depth using a moderate number of levels. 
     
    170172\end{gather} 
    171173 
    172 If the ice shelf cavities are opened (\np{ln_isfcav}{ln\_isfcav}\forcode{ = .true.}), the definition 
     174If the ice shelf cavities are opened (\np[=.true.]{ln_isfcav}{ln\_isfcav}), the definition 
    173175of $z_0$ is the same.  However, definition of $e_3^0$ at $t$- and $w$-points is 
    174176respectively changed to: 
     
    314316\np{nn_bathy}{nn\_bathy} (found in \nam{dom}{dom} namelist (\texttt{DOMAINCFG} variant) ): 
    315317\begin{description} 
    316 \item[\np{nn_bathy}{nn\_bathy}\forcode{ = 0}]: 
     318\item[{\np[=0]{nn_bathy}{nn\_bathy}}]: 
    317319  a flat-bottom domain is defined. 
    318320  The total depth $z_w (jpk)$ is given by the coordinate transformation. 
    319321  The domain can either be a closed basin or a periodic channel depending on the parameter \np{jperio}{jperio}. 
    320 \item[\np{nn_bathy}{nn\_bathy}\forcode{ = -1}]: 
     322\item[{\np[=-1]{nn_bathy}{nn\_bathy}}]: 
    321323  a domain with a bump of topography one third of the domain width at the central latitude. 
    322324  This is meant for the "EEL-R5" configuration, a periodic or open boundary channel with a seamount. 
    323 \item[\np{nn_bathy}{nn\_bathy}\forcode{ = 1}]: 
     325\item[{\np[=1]{nn_bathy}{nn\_bathy}}]: 
    324326  read a bathymetry and ice shelf draft (if needed). 
    325327  The \ifile{bathy\_meter} file (Netcdf format) provides the ocean depth (positive, in meters) at 
     
    332334  The \ifile{isfdraft\_meter} file (Netcdf format) provides the ice shelf draft (positive, in meters) at 
    333335  each grid point of the model grid. 
    334   This file is only needed if \np{ln_isfcav}{ln\_isfcav}\forcode{ = .true.}. 
     336  This file is only needed if \np[=.true.]{ln_isfcav}{ln\_isfcav}. 
    335337  Defining the ice shelf draft will also define the ice shelf edge and the grounding line position. 
    336338\end{description} 
     
    412414%-------------------------------------------------------------------------------------------------------------- 
    413415Options are defined in \nam{zgr_sco}{zgr\_sco} (\texttt{DOMAINcfg} only). 
    414 In $s$-coordinate (\np{ln_sco}{ln\_sco}\forcode{ = .true.}), the depth and thickness of the model levels are defined from 
     416In $s$-coordinate (\np[=.true.]{ln_sco}{ln\_sco}), the depth and thickness of the model levels are defined from 
    415417the product of a depth field and either a stretching function or its derivative, respectively: 
    416418 
     
    435437 
    436438The original default \NEMO\ s-coordinate stretching is available if neither of the other options are specified as true 
    437 (\np{ln_s_SH94}{ln\_s\_SH94}\forcode{ = .false.} and \np{ln_s_SF12}{ln\_s\_SF12}\forcode{ = .false.}). 
     439(\np[=.false.]{ln_s_SH94}{ln\_s\_SH94} and \np[=.false.]{ln_s_SF12}{ln\_s\_SF12}). 
    438440This uses a depth independent $\tanh$ function for the stretching \citep{madec.delecluse.ea_JPO96}: 
    439441 
     
    455457 
    456458A stretching function, 
    457 modified from the commonly used \citet{song.haidvogel_JCP94} stretching (\np{ln_s_SH94}{ln\_s\_SH94}\forcode{ = .true.}), 
     459modified from the commonly used \citet{song.haidvogel_JCP94} stretching (\np[=.true.]{ln_s_SH94}{ln\_s\_SH94}), 
    458460is also available and is more commonly used for shelf seas modelling: 
    459461 
     
    558560This option is described in the Report by Levier \textit{et al.} (2007), available on the \NEMO\ web site. 
    559561 
    560 \biblio 
    561  
    562 \pindex 
     562\onlyinsubfile{\bibliography{../main/bibliography}} 
     563 
     564\onlyinsubfile{\printindex} 
    563565 
    564566\end{document} 
Note: See TracChangeset for help on using the changeset viewer.