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/chap_SBC.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/chap_SBC.tex

    r11578 r11582  
    11\documentclass[../main/NEMO_manual]{subfiles} 
     2 
     3\onlyinsubfile{\makeindex} 
    24 
    35\begin{document} 
     
    4143\begin{itemize} 
    4244\item 
    43   a bulk formulation (\np{ln_blk}{ln\_blk}\forcode{=.true.} with four possible bulk algorithms), 
    44 \item 
    45   a flux formulation (\np{ln_flx}{ln\_flx}\forcode{=.true.}), 
     45  a bulk formulation (\np[=.true.]{ln_blk}{ln\_blk} with four possible bulk algorithms), 
     46\item 
     47  a flux formulation (\np[=.true.]{ln_flx}{ln\_flx}), 
    4648\item 
    4749  a coupled or mixed forced/coupled formulation (exchanges with a atmospheric model via the OASIS coupler), 
    48 (\np{ln_cpl}{ln\_cpl} or \np{ln_mixcpl}{ln\_mixcpl}\forcode{=.true.}), 
    49 \item 
    50   a user defined formulation (\np{ln_usr}{ln\_usr}\forcode{=.true.}). 
     50(\np{ln_cpl}{ln\_cpl} or \np[=.true.]{ln_mixcpl}{ln\_mixcpl}), 
     51\item 
     52  a user defined formulation (\np[=.true.]{ln_usr}{ln\_usr}). 
    5153\end{itemize} 
    5254 
     
    6971  the local grid directions in the model, 
    7072\item 
    71   the use of a land/sea mask for input fields (\np{nn_lsm}{nn\_lsm}\forcode{=.true.}), 
    72 \item 
    73   the addition of a surface restoring term to observed SST and/or SSS (\np{ln_ssr}{ln\_ssr}\forcode{=.true.}), 
     73  the use of a land/sea mask for input fields (\np[=.true.]{nn_lsm}{nn\_lsm}), 
     74\item 
     75  the addition of a surface restoring term to observed SST and/or SSS (\np[=.true.]{ln_ssr}{ln\_ssr}), 
    7476\item 
    7577  the modification of fluxes below ice-covered areas (using climatological ice-cover or a sea-ice model) 
    76   (\np{nn_ice}{nn\_ice}\forcode{=0..3}), 
    77 \item 
    78   the addition of river runoffs as surface freshwater fluxes or lateral inflow (\np{ln_rnf}{ln\_rnf}\forcode{=.true.}), 
     78  (\np[=0..3]{nn_ice}{nn\_ice}), 
     79\item 
     80  the addition of river runoffs as surface freshwater fluxes or lateral inflow (\np[=.true.]{ln_rnf}{ln\_rnf}), 
    7981\item 
    8082  the addition of ice-shelf melting as lateral inflow (parameterisation) or 
    81   as fluxes applied at the land-ice ocean interface (\np{ln_isf}{ln\_isf}\forcode{=.true.}), 
     83  as fluxes applied at the land-ice ocean interface (\np[=.true.]{ln_isf}{ln\_isf}), 
    8284\item 
    8385  the addition of a freshwater flux adjustment in order to avoid a mean sea-level drift 
    84   (\np{nn_fwb}{nn\_fwb}\forcode{=0..2}), 
     86  (\np[=0..2]{nn_fwb}{nn\_fwb}), 
    8587\item 
    8688  the transformation of the solar radiation (if provided as daily mean) into an analytical diurnal cycle 
    87   (\np{ln_dm2dc}{ln\_dm2dc}\forcode{=.true.}), 
    88 \item 
    89   the activation of wave effects from an external wave model  (\np{ln_wave}{ln\_wave}\forcode{=.true.}), 
    90 \item 
    91   a neutral drag coefficient is read from an external wave model (\np{ln_cdgw}{ln\_cdgw}\forcode{=.true.}), 
    92 \item 
    93   the Stokes drift from an external wave model is accounted for (\np{ln_sdw}{ln\_sdw}\forcode{=.true.}), 
    94 \item 
    95   the choice of the Stokes drift profile parameterization (\np{nn_sdrift}{nn\_sdrift}\forcode{=0..2}), 
    96 \item 
    97   the surface stress given to the ocean is modified by surface waves (\np{ln_tauwoc}{ln\_tauwoc}\forcode{=.true.}), 
    98 \item 
    99   the surface stress given to the ocean is read from an external wave model (\np{ln_tauw}{ln\_tauw}\forcode{=.true.}), 
    100 \item 
    101   the Stokes-Coriolis term is included (\np{ln_stcor}{ln\_stcor}\forcode{=.true.}), 
    102 \item 
    103   the light penetration in the ocean (\np{ln_traqsr}{ln\_traqsr}\forcode{=.true.} with namelist \nam{tra_qsr}{tra\_qsr}), 
    104 \item 
    105   the atmospheric surface pressure gradient effect on ocean and ice dynamics (\np{ln_apr_dyn}{ln\_apr\_dyn}\forcode{=.true.} with namelist \nam{sbc_apr}{sbc\_apr}), 
    106 \item 
    107   the effect of sea-ice pressure on the ocean (\np{ln_ice_embd}{ln\_ice\_embd}\forcode{=.true.}). 
     89  (\np[=.true.]{ln_dm2dc}{ln\_dm2dc}), 
     90\item 
     91  the activation of wave effects from an external wave model  (\np[=.true.]{ln_wave}{ln\_wave}), 
     92\item 
     93  a neutral drag coefficient is read from an external wave model (\np[=.true.]{ln_cdgw}{ln\_cdgw}), 
     94\item 
     95  the Stokes drift from an external wave model is accounted for (\np[=.true.]{ln_sdw}{ln\_sdw}), 
     96\item 
     97  the choice of the Stokes drift profile parameterization (\np[=0..2]{nn_sdrift}{nn\_sdrift}), 
     98\item 
     99  the surface stress given to the ocean is modified by surface waves (\np[=.true.]{ln_tauwoc}{ln\_tauwoc}), 
     100\item 
     101  the surface stress given to the ocean is read from an external wave model (\np[=.true.]{ln_tauw}{ln\_tauw}), 
     102\item 
     103  the Stokes-Coriolis term is included (\np[=.true.]{ln_stcor}{ln\_stcor}), 
     104\item 
     105  the light penetration in the ocean (\np[=.true.]{ln_traqsr}{ln\_traqsr} with namelist \nam{tra_qsr}{tra\_qsr}), 
     106\item 
     107  the atmospheric surface pressure gradient effect on ocean and ice dynamics (\np[=.true.]{ln_apr_dyn}{ln\_apr\_dyn} with namelist \nam{sbc_apr}{sbc\_apr}), 
     108\item 
     109  the effect of sea-ice pressure on the ocean (\np[=.true.]{ln_ice_embd}{ln\_ice\_embd}). 
    108110\end{itemize} 
    109111 
     
    142144The latter is the penetrative part of the heat flux. 
    143145It is applied as a 3D trend of the temperature equation (\mdl{traqsr} module) when 
    144 \np{ln_traqsr}{ln\_traqsr}\forcode{=.true.}. 
     146\np[=.true.]{ln_traqsr}{ln\_traqsr}. 
    145147The way the light penetrates inside the water column is generally a sum of decreasing exponentials 
    146148(see \autoref{subsec:TRA_qsr}). 
     
    278280                                  &  daily or weekLL     &  monthly           &  yearly        \\ 
    279281      \hline 
    280       \np{clim}{clim}\forcode{=.false.} &  fn\_yYYYYmMMdDD.nc  &  fn\_yYYYYmMM.nc   &  fn\_yYYYY.nc  \\ 
     282      \np[=.false.]{clim}{clim} &  fn\_yYYYYmMMdDD.nc  &  fn\_yYYYYmMM.nc   &  fn\_yYYYY.nc  \\ 
    281283      \hline 
    282       \np{clim}{clim}\forcode{=.true.}  &  not possible        &  fn\_m??.nc        &  fn            \\ 
     284      \np[=.true.]{clim}{clim}  &  not possible        &  fn\_m??.nc        &  fn            \\ 
    283285      \hline 
    284286    \end{tabular} 
     
    351353However, for forcing data related to the surface module, 
    352354values are not needed at every time-step but at every \np{nn_fsbc}{nn\_fsbc} time-step. 
    353 For example with \np{nn_fsbc}{nn\_fsbc}\forcode{=3}, the surface module will be called at time-steps 1, 4, 7, etc. 
     355For example with \np[=3]{nn_fsbc}{nn\_fsbc}, the surface module will be called at time-steps 1, 4, 7, etc. 
    354356The date used for the time interpolation is thus redefined to the middle of \np{nn_fsbc}{nn\_fsbc} time-step period. 
    355357In the previous example, this leads to: 1h30'00", 4h30'00", 7h30'00", etc. \\ 
     
    550552  Spinup of the iceberg floats 
    551553\item 
    552   Ocean/sea-ice simulation with both models running in parallel (\np{ln_mixcpl}{ln\_mixcpl}\forcode{=.true.}) 
     554  Ocean/sea-ice simulation with both models running in parallel (\np[=.true.]{ln_mixcpl}{ln\_mixcpl}) 
    553555\end{itemize} 
    554556 
     
    605607 
    606608The user can also choose in the \nam{sbc_sas}{sbc\_sas} namelist to read the mean (nn\_fsbc time-step) fraction of solar net radiation absorbed in the 1st T level using 
    607  (\np{ln_flx}{ln\_flx}\forcode{=.true.}) and to provide 3D oceanic velocities instead of 2D ones (\np{ln_flx}{ln\_flx}\forcode{=.true.}). In that last case, only the 1st level will be read in. 
     609 (\np[=.true.]{ln_flx}{ln\_flx}) and to provide 3D oceanic velocities instead of 2D ones (\np{ln_flx}{ln\_flx}\forcode{=.true.}). In that last case, only the 1st level will be read in. 
    608610 
    609611 
     
    623625%------------------------------------------------------------------------------------------------------------- 
    624626 
    625 In the flux formulation (\np{ln_flx}{ln\_flx}\forcode{=.true.}), 
     627In the flux formulation (\np[=.true.]{ln_flx}{ln\_flx}), 
    626628the surface boundary condition fields are directly read from input files. 
    627629The user has to define in the namelist \nam{sbc_flx}{sbc\_flx} the name of the file, 
     
    731733\begin{itemize} 
    732734\item 
    733   NCAR (\np{ln_NCAR}{ln\_NCAR}\forcode{=.true.}): 
     735  NCAR (\np[=.true.]{ln_NCAR}{ln\_NCAR}): 
    734736  The NCAR bulk formulae have been developed by \citet{large.yeager_rpt04}. 
    735737  They have been designed to handle the NCAR forcing, a mixture of NCEP reanalysis and satellite data. 
     
    741743  This is the so-called DRAKKAR Forcing Set (DFS) \citep{brodeau.barnier.ea_OM10}. 
    742744\item 
    743   COARE 3.0 (\np{ln_COARE_3p0}{ln\_COARE\_3p0}\forcode{=.true.}): 
     745  COARE 3.0 (\np[=.true.]{ln_COARE_3p0}{ln\_COARE\_3p0}): 
    744746  See \citet{fairall.bradley.ea_JC03} for more details 
    745747\item 
    746   COARE 3.5 (\np{ln_COARE_3p5}{ln\_COARE\_3p5}\forcode{=.true.}): 
     748  COARE 3.5 (\np[=.true.]{ln_COARE_3p5}{ln\_COARE\_3p5}): 
    747749  See \citet{edson.jampana.ea_JPO13} for more details 
    748750\item 
    749   ECMWF (\np{ln_ECMWF}{ln\_ECMWF}\forcode{=.true.}): 
     751  ECMWF (\np[=.true.]{ln_ECMWF}{ln\_ECMWF}): 
    750752  Based on \href{https://www.ecmwf.int/node/9221}{IFS (Cy31)} implementation and documentation. 
    751753  Surface roughness lengths needed for the Obukhov length are computed following \citet{beljaars_QJRMS95}. 
     
    762764\begin{itemize} 
    763765\item 
    764   Constant value (\np{constant value}{constant\ value}\forcode{ Cd_ice = 1.4e-3 }): 
     766  Constant value (\np[ Cd_ice=1.4e-3 ]{constant value}{constant\ value}): 
    765767  default constant value used for momentum and heat neutral transfer coefficients 
    766768\item 
    767   \citet{lupkes.gryanik.ea_JGR12} (\np{ln_Cd_L12}{ln\_Cd\_L12}\forcode{=.true.}): 
     769  \citet{lupkes.gryanik.ea_JGR12} (\np[=.true.]{ln_Cd_L12}{ln\_Cd\_L12}): 
    768770  This scheme adds a dependency on edges at leads, melt ponds and flows 
    769771  of the constant neutral air-ice drag. After some approximations, 
     
    773775  It is theoretically applicable to all ice conditions (not only MIZ). 
    774776\item 
    775   \citet{lupkes.gryanik_JGR15} (\np{ln_Cd_L15}{ln\_Cd\_L15}\forcode{=.true.}): 
     777  \citet{lupkes.gryanik_JGR15} (\np[=.true.]{ln_Cd_L15}{ln\_Cd\_L15}): 
    776778  Alternative turbulent transfer coefficients formulation between sea-ice 
    777779  and atmosphere with distinct momentum and heat coefficients depending 
     
    842844 
    843845The optional atmospheric pressure can be used to force ocean and ice dynamics 
    844 (\np{ln_apr_dyn}{ln\_apr\_dyn}\forcode{=.true.}, \nam{sbc}{sbc} namelist). 
     846(\np[=.true.]{ln_apr_dyn}{ln\_apr\_dyn}, \nam{sbc}{sbc} namelist). 
    845847The input atmospheric forcing defined via \np{sn_apr}{sn\_apr} structure (\nam{sbc_apr}{sbc\_apr} namelist) 
    846848can be interpolated in time to the model time step, and even in space when the interpolation on-the-fly is used. 
     
    914916computationally too expensive. Here, two options are available: 
    915917$\Pi_{sal}$ generated by an external model can be read in 
    916 (\np{ln_read_load}{ln\_read\_load}\forcode{ =.true.}), or a ``scalar approximation'' can be 
    917 used (\np{ln_scal_load}{ln\_scal\_load}\forcode{ =.true.}). In the latter case 
     918(\np[=.true.]{ln_read_load}{ln\_read\_load}), or a ``scalar approximation'' can be 
     919used (\np[=.true.]{ln_scal_load}{ln\_scal\_load}). In the latter case 
    918920\[ 
    919921  \Pi_{sal} = \beta \eta, 
     
    10761078\begin{description} 
    10771079 
    1078   \item[\np{nn_isf}{nn\_isf}\forcode{=1}]: 
    1079   The ice shelf cavity is represented (\np{ln_isfcav}{ln\_isfcav}\forcode{=.true.} needed). 
     1080  \item[{\np[=1]{nn_isf}{nn\_isf}}]: 
     1081  The ice shelf cavity is represented (\np[=.true.]{ln_isfcav}{ln\_isfcav} needed). 
    10801082  The fwf and heat flux are depending of the local water properties. 
    10811083 
     
    10831085 
    10841086   \begin{description} 
    1085    \item[\np{nn_isfblk}{nn\_isfblk}\forcode{=1}]: 
     1087   \item[{\np[=1]{nn_isfblk}{nn\_isfblk}}]: 
    10861088     The melt rate is based on a balance between the upward ocean heat flux and 
    10871089     the latent heat flux at the ice shelf base. A complete description is available in \citet{hunter_rpt06}. 
    1088    \item[\np{nn_isfblk}{nn\_isfblk}\forcode{=2}]: 
     1090   \item[{\np[=2]{nn_isfblk}{nn\_isfblk}}]: 
    10891091     The melt rate and the heat flux are based on a 3 equations formulation 
    10901092     (a heat flux budget at the ice base, a salt flux budget at the ice base and a linearised freezing point temperature equation). 
     
    11031105     There are 3 different ways to compute the exchange coeficient: 
    11041106   \begin{description} 
    1105         \item[\np{nn_gammablk}{nn\_gammablk}\forcode{=0}]: 
     1107        \item[{\np[=0]{nn_gammablk}{nn\_gammablk}}]: 
    11061108     The salt and heat exchange coefficients are constant and defined by \np{rn_gammas0}{rn\_gammas0} and \np{rn_gammat0}{rn\_gammat0}. 
    11071109     \begin{gather*} 
     
    11111113     \end{gather*} 
    11121114     This is the recommended formulation for ISOMIP. 
    1113    \item[\np{nn_gammablk}{nn\_gammablk}\forcode{=1}]: 
     1115   \item[{\np[=1]{nn_gammablk}{nn\_gammablk}}]: 
    11141116     The salt and heat exchange coefficients are velocity dependent and defined as 
    11151117     \begin{gather*} 
     
    11191121     where $u_{*}$ is the friction velocity in the top boundary layer (ie first \np{rn_hisf_tbl}{rn\_hisf\_tbl} meters). 
    11201122     See \citet{jenkins.nicholls.ea_JPO10} for all the details on this formulation. It is the recommended formulation for realistic application. 
    1121    \item[\np{nn_gammablk}{nn\_gammablk}\forcode{=2}]: 
     1123   \item[{\np[=2]{nn_gammablk}{nn\_gammablk}}]: 
    11221124     The salt and heat exchange coefficients are velocity and stability dependent and defined as: 
    11231125\[ 
     
    11301132     This formulation has not been extensively tested in \NEMO\ (not recommended). 
    11311133   \end{description} 
    1132   \item[\np{nn_isf}{nn\_isf}\forcode{=2}]: 
     1134  \item[{\np[=2]{nn_isf}{nn\_isf}}]: 
    11331135   The ice shelf cavity is not represented. 
    11341136   The fwf and heat flux are computed using the \citet{beckmann.goosse_OM03} parameterisation of isf melting. 
    11351137   The fluxes are distributed along the ice shelf edge between the depth of the average grounding line (GL) 
    11361138   (\np{sn_depmax_isf}{sn\_depmax\_isf}) and the base of the ice shelf along the calving front 
    1137    (\np{sn_depmin_isf}{sn\_depmin\_isf}) as in (\np{nn_isf}{nn\_isf}\forcode{=3}). 
     1139   (\np{sn_depmin_isf}{sn\_depmin\_isf}) as in (\np[=3]{nn_isf}{nn\_isf}). 
    11381140   The effective melting length (\np{sn_Leff_isf}{sn\_Leff\_isf}) is read from a file. 
    1139   \item[\np{nn_isf}{nn\_isf}\forcode{=3}]: 
     1141  \item[{\np[=3]{nn_isf}{nn\_isf}}]: 
    11401142   The ice shelf cavity is not represented. 
    11411143   The fwf (\np{sn_rnfisf}{sn\_rnfisf}) is prescribed and distributed along the ice shelf edge between 
     
    11431145   the base of the ice shelf along the calving front (\np{sn_depmin_isf}{sn\_depmin\_isf}). 
    11441146   The heat flux ($Q_h$) is computed as $Q_h = fwf \times L_f$. 
    1145   \item[\np{nn_isf}{nn\_isf}\forcode{=4}]: 
    1146    The ice shelf cavity is opened (\np{ln_isfcav}{ln\_isfcav}\forcode{=.true.} needed). 
     1147  \item[{\np[=4]{nn_isf}{nn\_isf}}]: 
     1148   The ice shelf cavity is opened (\np[=.true.]{ln_isfcav}{ln\_isfcav} needed). 
    11471149   However, the fwf is not computed but specified from file \np{sn_fwfisf}{sn\_fwfisf}). 
    11481150   The heat flux ($Q_h$) is computed as $Q_h = fwf \times L_f$. 
    1149    As in \np{nn_isf}{nn\_isf}\forcode{=1}, the fluxes are spread over the top boundary layer thickness (\np{rn_hisf_tbl}{rn\_hisf\_tbl})\\ 
     1151   As in \np[=1]{nn_isf}{nn\_isf}, the fluxes are spread over the top boundary layer thickness (\np{rn_hisf_tbl}{rn\_hisf\_tbl})\\ 
    11501152\end{description} 
    11511153 
    1152 $\bullet$ \np{nn_isf}{nn\_isf}\forcode{=1} and \np{nn_isf}{nn\_isf}\forcode{=2} compute a melt rate based on 
     1154$\bullet$ \np[=1]{nn_isf}{nn\_isf} and \np[=2]{nn_isf}{nn\_isf} compute a melt rate based on 
    11531155the water mass properties, ocean velocities and depth. 
    11541156This flux is thus highly dependent of the model resolution (horizontal and vertical), 
    11551157realism of the water masses onto the shelf ...\\ 
    11561158 
    1157 $\bullet$ \np{nn_isf}{nn\_isf}\forcode{=3} and \np{nn_isf}{nn\_isf}\forcode{=4} read the melt rate from a file. 
     1159$\bullet$ \np[=3]{nn_isf}{nn\_isf} and \np[=4]{nn_isf}{nn\_isf} read the melt rate from a file. 
    11581160You have total control of the fwf forcing. 
    11591161This can be useful if the water masses on the shelf are not realistic or 
     
    12041206\end{description} 
    12051207 
    1206 If \np{ln_iscpl}{ln\_iscpl}\forcode{=.true.}, the isf draft is assume to be different at each restart step with 
     1208If \np[=.true.]{ln_iscpl}{ln\_iscpl}, the isf draft is assume to be different at each restart step with 
    12071209potentially some new wet/dry cells due to the ice sheet dynamics/thermodynamics. 
    12081210The wetting and drying scheme applied on the restart is very simple and described below for the 6 different possible cases: 
     
    12401242 
    12411243In order to remove the trend and keep the conservation level as close to 0 as possible, 
    1242 a simple conservation scheme is available with \np{ln_hsb}{ln\_hsb}\forcode{=.true.}. 
     1244a simple conservation scheme is available with \np[=.true.]{ln_hsb}{ln\_hsb}. 
    12431245The heat/salt/vol. gain/loss is diagnosed, as well as the location. 
    12441246A correction increment is computed and apply each time step during the next \np{rn_fiscpl}{rn\_fiscpl} time steps. 
     
    12701272which is an integer representing how many icebergs of this class are being described as one lagrangian point 
    12711273(this reduces the numerical problem of tracking every single iceberg). 
    1272 They are enabled by setting \np{ln_icebergs}{ln\_icebergs}\forcode{=.true.}. 
     1274They are enabled by setting \np[=.true.]{ln_icebergs}{ln\_icebergs}. 
    12731275 
    12741276Two initialisation schemes are possible. 
    12751277\begin{description} 
    1276 \item[\np{nn_test_icebergs}{nn\_test\_icebergs}~$>$~0] 
     1278\item[{\np{nn_test_icebergs}{nn\_test\_icebergs}~$>$~0}] 
    12771279  In this scheme, the value of \np{nn_test_icebergs}{nn\_test\_icebergs} represents the class of iceberg to generate 
    12781280  (so between 1 and 10), and \np{nn_test_icebergs}{nn\_test\_icebergs} provides a lon/lat box in the domain at each grid point of 
     
    12811283  \np{nn_test_icebergs}{nn\_test\_icebergs} is defined by four numbers in \np{nn_test_box}{nn\_test\_box} representing the corners of 
    12821284  the geographical box: lonmin,lonmax,latmin,latmax 
    1283 \item[\np{nn_test_icebergs}{nn\_test\_icebergs}\forcode{=-1}] 
     1285\item[{\np[=-1]{nn_test_icebergs}{nn\_test\_icebergs}}] 
    12841286  In this scheme, the model reads a calving file supplied in the \np{sn_icb}{sn\_icb} parameter. 
    12851287  This should be a file with a field on the configuration grid (typically ORCA) 
     
    13061308The amount of information is controlled by two integer parameters: 
    13071309\begin{description} 
    1308 \item[\np{nn_verbose_level}{nn\_verbose\_level}] takes a value between one and four and 
     1310\item[{\np{nn_verbose_level}{nn\_verbose\_level}}] takes a value between one and four and 
    13091311  represents an increasing number of points in the code at which variables are written, 
    13101312  and an increasing level of obscurity. 
    1311 \item[\np{nn_verbose_write}{nn\_verbose\_write}] is the number of timesteps between writes 
     1313\item[{\np{nn_verbose_write}{nn\_verbose\_write}}] is the number of timesteps between writes 
    13121314\end{description} 
    13131315 
     
    13431345 
    13441346Physical processes related to ocean surface waves can be accounted by setting the logical variable 
    1345 \np{ln_wave}{ln\_wave}\forcode{=.true.} in \nam{sbc}{sbc} namelist. In addition, specific flags accounting for 
     1347\np[=.true.]{ln_wave}{ln\_wave} in \nam{sbc}{sbc} namelist. In addition, specific flags accounting for 
    13461348different processes should be activated as explained in the following sections. 
    13471349 
     
    13511353for external data names, locations, frequency, interpolation and all the miscellanous options allowed by 
    13521354Input Data generic Interface (see \autoref{sec:SBC_input}). 
    1353 \item[coupled mode]: \NEMO\ and an external wave model can be coupled by setting \np{ln_cpl}{ln\_cpl} \forcode{= .true.} 
     1355\item[coupled mode]: \NEMO\ and an external wave model can be coupled by setting \np[=.true.]{ln_cpl}{ln\_cpl} 
    13541356in \nam{sbc}{sbc} namelist and filling the \nam{sbc_cpl}{sbc\_cpl} namelist. 
    13551357\end{description} 
     
    13641366 
    13651367The neutral surface drag coefficient provided from an external data source (\ie\ a wave model), 
    1366 can be used by setting the logical variable \np{ln_cdgw}{ln\_cdgw} \forcode{= .true.} in \nam{sbc}{sbc} namelist. 
     1368can be used by setting the logical variable \np[=.true.]{ln_cdgw}{ln\_cdgw} in \nam{sbc}{sbc} namelist. 
    13671369Then using the routine \rou{sbcblk\_algo\_ncar} and starting from the neutral drag coefficent provided, 
    13681370the drag coefficient is computed according to the stable/unstable conditions of the 
     
    14081410 
    14091411\begin{description} 
    1410 \item[\np{nn_sdrift}{nn\_sdrift} = 0]: exponential integral profile parameterization proposed by 
     1412\item[{\np{nn_sdrift}{nn\_sdrift} = 0}]: exponential integral profile parameterization proposed by 
    14111413\citet{breivik.janssen.ea_JPO14}: 
    14121414 
     
    14271429where $H_s$ is the significant wave height and $\omega$ is the wave frequency. 
    14281430 
    1429 \item[\np{nn_sdrift}{nn\_sdrift} = 1]: velocity profile based on the Phillips spectrum which is considered to be a 
     1431\item[{\np{nn_sdrift}{nn\_sdrift} = 1}]: velocity profile based on the Phillips spectrum which is considered to be a 
    14301432reasonable estimate of the part of the spectrum mostly contributing to the Stokes drift velocity near the surface 
    14311433\citep{breivik.bidlot.ea_OM16}: 
     
    14391441where $erf$ is the complementary error function and $k_p$ is the peak wavenumber. 
    14401442 
    1441 \item[\np{nn_sdrift}{nn\_sdrift} = 2]: velocity profile based on the Phillips spectrum as for \np{nn_sdrift}{nn\_sdrift} = 1 
     1443\item[{\np{nn_sdrift}{nn\_sdrift} = 2}]: velocity profile based on the Phillips spectrum as for \np{nn_sdrift}{nn\_sdrift} = 1 
    14421444but using the wave frequency from a wave model. 
    14431445 
     
    14771479In order to include this term, once evaluated the Stokes drift (using one of the 3 possible 
    14781480approximations described in \autoref{subsec:SBC_wave_sdw}), 
    1479 \np{ln_stcor}{ln\_stcor}\forcode{=.true.} has to be set. 
     1481\np[=.true.]{ln_stcor}{ln\_stcor} has to be set. 
    14801482 
    14811483 
     
    15171519 
    15181520The wave stress derived from an external wave model can be provided either through the normalized 
    1519 wave stress into the ocean by setting \np{ln_tauwoc}{ln\_tauwoc}\forcode{=.true.}, or through the zonal and 
    1520 meridional stress components by setting \np{ln_tauw}{ln\_tauw}\forcode{=.true.}. 
     1521wave stress into the ocean by setting \np[=.true.]{ln_tauwoc}{ln\_tauwoc}, or through the zonal and 
     1522meridional stress components by setting \np[=.true.]{ln_tauw}{ln\_tauw}. 
    15211523 
    15221524 
     
    15611563assuming that the diurnal cycle of SWF is a scaling of the top of the atmosphere diurnal cycle of incident SWF. 
    15621564The \cite{bernie.guilyardi.ea_CD07} reconstruction algorithm is available in \NEMO\ by 
    1563 setting \np{ln_dm2dc}{ln\_dm2dc}\forcode{=.true.} (a \textit{\nam{sbc}{sbc}} namelist variable) when 
    1564 using a bulk formulation (\np{ln_blk}{ln\_blk}\forcode{=.true.}) or 
    1565 the flux formulation (\np{ln_flx}{ln\_flx}\forcode{=.true.}). 
     1565setting \np[=.true.]{ln_dm2dc}{ln\_dm2dc} (a \textit{\nam{sbc}{sbc}} namelist variable) when 
     1566using a bulk formulation (\np[=.true.]{ln_blk}{ln\_blk}) or 
     1567the flux formulation (\np[=.true.]{ln_flx}{ln\_flx}). 
    15661568The reconstruction is performed in the \mdl{sbcdcy} module. 
    15671569The detail of the algoritm used can be found in the appendix~A of \cite{bernie.guilyardi.ea_CD07}. 
     
    15981600\label{subsec:SBC_rotation} 
    15991601 
    1600 When using a flux (\np{ln_flx}{ln\_flx}\forcode{=.true.}) or bulk (\np{ln_blk}{ln\_blk}\forcode{=.true.}) formulation, 
     1602When using a flux (\np[=.true.]{ln_flx}{ln\_flx}) or bulk (\np[=.true.]{ln_blk}{ln\_blk}) formulation, 
    16011603pairs of vector components can be rotated from east-north directions onto the local grid directions. 
    16021604This is particularly useful when interpolation on the fly is used since here any vectors are likely to 
     
    16271629 
    16281630Options are defined through the \nam{sbc_ssr}{sbc\_ssr} namelist variables. 
    1629 On forced mode using a flux formulation (\np{ln_flx}{ln\_flx}\forcode{=.true.}), 
     1631On forced mode using a flux formulation (\np[=.true.]{ln_flx}{ln\_flx}), 
    16301632a feedback term \emph{must} be added to the surface heat flux $Q_{ns}^o$: 
    16311633\[ 
     
    17461748 
    17471749\begin{description} 
    1748 \item[\np{nn_fwb}{nn\_fwb}\forcode{=0}] 
     1750\item[{\np[=0]{nn_fwb}{nn\_fwb}}] 
    17491751  no control at all. 
    17501752  The mean sea level is free to drift, and will certainly do so. 
    1751 \item[\np{nn_fwb}{nn\_fwb}\forcode{=1}] 
     1753\item[{\np[=1]{nn_fwb}{nn\_fwb}}] 
    17521754  global mean \textit{emp} set to zero at each model time step. 
    17531755  %GS: comment below still relevant ? 
    17541756  %Note that with a sea-ice model, this technique only controls the mean sea level with linear free surface and no mass flux between ocean and ice (as it is implemented in the current ice-ocean coupling). 
    1755 \item[\np{nn_fwb}{nn\_fwb}\forcode{=2}] 
     1757\item[{\np[=2]{nn_fwb}{nn\_fwb}}] 
    17561758  freshwater budget is adjusted from the previous year annual mean budget which 
    17571759  is read in the \textit{EMPave\_old.dat} file. 
     
    17831785 
    17841786 
    1785 \biblio 
    1786  
    1787 \pindex 
     1787\onlyinsubfile{\bibliography{../main/bibliography}} 
     1788 
     1789\onlyinsubfile{\printindex} 
    17881790 
    17891791\end{document} 
Note: See TracChangeset for help on using the changeset viewer.