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 3218 – NEMO

Changeset 3218


Ignore:
Timestamp:
2011-12-13T11:31:24+01:00 (12 years ago)
Author:
agn
Message:

agn: changes to documentation in dev_NEMO_MERGE_2011

--Reordered NEMO_book.tex, changed from 11pt->12pt,

only needs pstricks for logos

--more abbreviations in mathabbrev.sty
--Corrected bug in Abstracts_Foreword.tex that put whole

text into small

--Clarified discussion of LDF operator rotation in
Chap_Model_Basics.tex, Chap_LDF.tex, Annex_B.tex
--Discuss surface tapering of Griffies triads, how they

work in s-coordinates, eddy-induced velocities in
Annex_ISO.tex. Extra ref in Biblio.bib
Extra figures Fig_bdry_triads.pdf, Fig_triad_MLB.pdf
Modified namelist section namtra_ldf

--Minor corrections to Chap_DIA.tex, Chap_CFG.tex,

Chap_SBC.tex, Annex_A.tex, Chap_DOM.tex, Chap_ASM.tex

Location:
branches/2011/dev_NEMO_MERGE_2011/DOC
Files:
2 added
15 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/DOC/NEMO_book.tex

    r2541 r3218  
    44% (C) Xavier Perseguers 2002 - xavier.perseguers@epfl.ch 
    55 
    6 \documentclass[a4paper,12pt]{book} 
     6\documentclass[a4paper,11pt]{book} 
    77 
    88%  makeindex NEMO_book     <== to regenerate the index 
     
    1414 
    1515\usepackage[french]{babel} 
    16 \usepackage{fancyhdr} 
    17  
    18 \usepackage{alltt}      %%  alltt for namelist 
    19 \usepackage{verbatim}   %%  alltt for namelist 
    20  
    21 %hyperref  
     16%\usepackage{color} 
     17\usepackage{xcolor} 
     18%\usepackage{graphics}           % allows insertion of pictures 
     19\usepackage{graphicx}            % allows insertion of 
     20                                        % pictures 
     21\usepackage[capbesideposition={top,center}]{floatrow} 
     22\floatsetup[table]{style=plaintop} 
     23\usepackage[margin=10pt,font={small},labelsep=colon,labelfont={bf}]{caption} 
     24%\usepackage{colortbl}                           % gives coloured panels behind table columns 
     25 
     26%hyperref 
    2227\usepackage[               % 
    2328  pdftitle={NEMO ocean engine},  % 
     
    3136  linkcolor=blue,anchorcolor=blue,  % 
    3237  citecolor=blue,filecolor=blue,    % 
    33   menucolor=blue,pagecolor=blue, % 
     38 menucolor=blue,                    % 
    3439  urlcolor=blue]{hyperref} 
    3540%  usage of exteranl hyperlink :  \href{mailto:my_address@wikibooks.org}{my\_address@wikibooks.org} 
     
    3944 
    4045 
    41  
    42 %\usepackage{amssymb} 
     46%%%% page styles etc................ 
     47\usepackage{fancyhdr} 
    4348\pagestyle{fancy} 
    4449% with this we ensure that the chapter and section 
     
    5964} 
    6065 
     66 
     67%%%%  Section number in Margin....... 
     68% typeset the number of each section in the left margin, with the start of each instance of 
     69% sectional heading text aligned with the left hand edge of  the body text. 
     70\makeatletter 
     71\def\@seccntformat#1{\protect\makebox[0pt][r]{\csname the#1\endcsname\quad}} 
     72\makeatother 
     73 
    6174% Leave blank pages completely empty, w/o header 
    6275\makeatletter 
     
    7083\makeatother 
    7184 
    72 \usepackage{makeidx} 
    73  
    74 \usepackage{minitoc}          %in french : \usepackage[french]{minitoc} 
    75  
     85%%%% define the chapter  style ................ 
     86\usepackage{minitoc}          %In French : \usepackage[french]{minitoc} 
    7687%\usepackage{mtcoff}          % invalidate the use of minitocs 
    77 \usepackage[latin1]{inputenc} 
    78 \usepackage{graphics}            % allows insertion of pictures 
    79 \usepackage{times}               % use vector fonts instead of bitmap 
    8088\usepackage{fancybox} 
    81 \usepackage{graphicx} 
    82 %\usepackage{color} 
    83 %\usepackage{colortbl} 
    84  
    85 %%%% add by Word2Tex 
    86 %\documentclass{amsart} 
    87 \usepackage{latexsym} 
    88 \usepackage{amssymb} 
    89 \usepackage{amsmath} 
    90 \usepackage{graphicx} 
    91 \allowdisplaybreaks[1]           % allow page breaks in the middle of equations 
    92 %%%% 
    93  
    94 %%%% 
    95 %\usepackage{mathtime}      % font for illustrator to work (belleek fonts ) 
    96 %%%% 
    97  
    98 %\usepackage{showidx}            % show the index entry 
    99  
    100  
    101  
    102 %%%% define the style of title for chapter  %%% 
    103 \usepackage{pstricks} 
     89 
    10490\makeatletter 
    10591\def\LigneVerticale{\vrule height 5cm depth 2cm\hspace{0.1cm}\relax} 
     
    10894\def\GrosCarreAvecUnChiffre#1{% 
    10995  \rlap{\vrule height 0.8cm width 1cm depth 0.2cm}% 
    110   \rlap{\hbox to 1cm{\hss\mbox{\white #1}\hss}}% 
     96 \rlap{\hbox to 1cm{\hss\mbox{\color{white} #1}\hss}}% 
    11197  \vrule height 0pt width 1cm depth 0pt} 
    11298\def\GrosCarreAvecTroisChiffre#1{% 
    11399  \rlap{\vrule height 0.8cm width 1.6cm depth 0.2cm}% 
    114   \rlap{\hbox to 1.5cm{\hss\mbox{\white #1}\hss}}% 
     100 \rlap{\hbox to 1.5cm{\hss\mbox{\color{white} #1}\hss}}% 
    115101  \vrule height 0pt width 1cm depth 0pt} 
    116102 
    117103\def\@makechapterhead#1{\hbox{% 
    118     \huge  
     104   \huge 
    119105    \LignesVerticales 
    120106    \hspace{-0.5cm}% 
     
    126112}\par\vskip 1cm} 
    127113\def\@makeschapterhead#1{\hbox{% 
    128     \huge  
     114   \huge 
    129115    \LignesVerticales 
    130116    %\hspace{0.5cm}% 
    131117    \hbox{#1}% 
    132118}\par\vskip 2cm} 
     119\makeatother 
    133120 
    134121%\def\thechapter{\Roman{chapter}}      % chapter number to be Roman 
    135122 
    136 %%%% end style chapter %%% 
    137  
    138 %%% use maths shortcuts : 
    139 %\newcommand{\vect} [1] { \rm{\textbf{#1}} }    % vector style: non-italic bold 
    140 \usepackage{./TexFiles/math_abbrev} 
     123 
     124%%%%           Mathematics............... 
     125%\documentclass{amsart} 
     126\usepackage{xspace}                              % helpd ensure correct spacing after macros 
     127\usepackage{latexsym} 
     128\usepackage{amssymb} 
     129\usepackage{amsmath} 
     130\allowdisplaybreaks[1]           % allow page breaks in the middle of equations 
     131\usepackage{./TexFiles/math_abbrev}    % use maths shortcuts 
     132 
     133 
     134\usepackage{times}                % use times font for text 
     135%\usepackage{mathtime}                          % font for illustrator to work (belleek fonts ) 
     136%\usepackage[latin1]{inputenc}                % allows some unicode removed (agn) 
    141137 
    142138 
    143139%%% essai commande 
    144 \newcommand{\nl} [1] {\texttt{\small {\textcolor{blue}{#1}} } }  
    145  
    146 %%% index commands :    
     140\newcommand{\nl} [1] {\texttt{\small {\textcolor{blue}{#1}} } } 
     141\newcommand{\nlv} [1] {\texttt{\footnotesize#1}\xspace} 
     142\newcommand{\smnlv} [1] {\texttt{\scriptsize#1}\xspace} 
     143 
     144%%%% namelist & code display................................ 
     145\usepackage{alltt}      %%  alltt for namelist 
     146\usepackage{verbatim}   %%  alltt for namelist 
     147% namelists 
     148\newcommand{\namdisplay} [1] { 
     149\begin{alltt} 
     150{\tiny \verbatiminput{./TexFiles/Namelist/#1}} 
     151\end{alltt} 
     152  \vspace{-10pt} 
     153} 
     154% code display 
     155%\newcommand{\codedisplay} [1] { \begin{alltt} {\tiny  {\begin{verbatim} {#1}} \end{verbatim} }  \end{alltt}   } 
     156 
     157 
     158 
     159%%%% commands for working with text................................ 
     160% command to "comment out" portions of text ({} argument) or not ({#1} argument) 
     161\newcommand{\amtcomment}[1]{}    % command to "commented out" portions of text or not (#1 in argument) 
     162\newcommand{\sgacomment}[1]{}    % command to "commented out" portions of 
     163\newcommand{\gmcomment}[1]{}     % command to "commented out" portions of 
     164%                                               % text that span line breaks 
     165%Red (NR) or Yellow(WARN) 
     166%\newcommand{\NR} {\colorbox{red}{#1}} 
     167%\newcommand{\WARN} {{ \colorbox{yellow}{#1}} } 
     168 
     169 
     170 
     171%%% index commands...................... 
     172\usepackage{makeidx} 
     173%\usepackage{showidx}            % show the index entry 
     174 
    147175\newcommand{\mdl} [1] {\textit{#1.F90}\index{Modules!#1}}         %module (mdl) 
    148176\newcommand{\rou} [1] {\textit{#1}\index{Routines!#1}}            %module (routine) 
     
    153181\newcommand{\ifile} [1] {\textit{#1.nc}\index{Input NetCDF files!#1.nc}}   %input NetCDF files (.nc) 
    154182\newcommand{\key} [1] {\textbf{key\_#1}\index{CPP keys!key\_#1}}  %key_cpp (key) 
    155 \newcommand{\NEMO} {\textit{NEMO }}                %NEMO (nemo) 
    156 % command to "commented out" portions of text ({} argument) or not ({#1} argument) 
    157 \newcommand{\amtcomment}[1]{}    % command to "commented out" portions of text or not (#1 in argument) 
    158 \newcommand{\sgacomment}[1]{}    % command to "commented out" portions of  
    159 \newcommand{\gmcomment}[1]{}     % command to "commented out" portions of  
    160 %                                               % text that span line breaks 
    161 \newcommand{\alpbet} {\left(\alpha / \beta \right)}   % alpha/beta  for slp computation 
    162  
    163 %--------------------------------------------namlist--------------------------------------------------------- 
    164 \newcommand{\namdisplay} [1] {  
    165    \begin{alltt}  {{\tiny \verbatiminput{./TexFiles/Namelist/#1}}}  \end{alltt}  
    166                                \vspace{-10pt}   } 
    167 %--------------------------------------------code display--------------------------------------------------------- 
    168 %\newcommand{\codedisplay} [1] { \begin{alltt} {\tiny  {\begin{verbatim} {#1}} \end{verbatim} }  \end{alltt}   } 
    169 %-------------------------------------------------------------------------------------------------------------- 
    170 %Red (NR) or Yellow(WARN) 
    171 %\newcommand{\NR} {\colorbox{red}{#1}} 
    172 %\newcommand{\WARN} {{ \colorbox{yellow}{#1}} } 
    173  
    174 %---------------------%%%%%  Section number in Margin  %%%%%----------------------------- 
    175 % typeset the number of each section in the left margin, with the start of each instance of 
    176 % sectional heading text aligned with the left hand edge of  the body text. 
    177 \makeatletter  
    178 \def\@seccntformat#1{\protect\makebox[0pt][r]{\csname the#1\endcsname\quad}}  
    179 \makeatother  
    180 %-------------------------------------------------------------------------------------------------------------- 
    181  
    182 %----------------------------%%%%%   Bilbiography   %%%%%%-------------------------------% 
     183\newcommand{\NEMO} {\textit{NEMO}\xspace}                %NEMO (nemo) 
     184 
     185%%%%   Bibliography   ............. 
    183186\usepackage[nottoc, notlof, notlot]{tocbibind} 
    184187\usepackage[square, comma]{natbib} 
    185188\bibpunct{[}{]}{,}{a}{}{;}                           %suppress "," after "et al." 
    186189\providecommand{\bibfont}{\small} 
    187 %-------------------------------------------------------------------------------------------------------------- 
     190 
    188191 
    189192% ================================================================ 
     
    191194% ================================================================ 
    192195 
    193 \title{  
     196\usepackage{pstricks} 
     197\title{ 
    194198\psset{unit=1.1in,linewidth=4pt}    %parameters of the units for pstricks 
    195199\rput(-1.4,2){ \includegraphics[width=0.2\textwidth]{./TexFiles/Figures/logo_CNRS.pdf}           } 
     
    205209\rule{345pt}{1.5pt} \\ 
    206210\vspace{0.45cm} 
    207  {\Huge NEMO ocean engine}  
    208 \rule{345pt}{1.5pt} \\  
     211{\Huge NEMO ocean engine} 
     212\rule{345pt}{1.5pt} \\ 
    209213 } 
    210214%{ -- Draft --}   } 
     
    220224 
    221225 
    222 %%\includegraphics[width=0.2\textwidth]{./TexFiles/Figures/logo_NERC.pdf} \\ 
    223  
    224 %%    \hbox{\mbox{% 
    225 %%       \hspace{4pt}% 
    226 %%         \fbox{\includegraphics[width=3em]{./TexFiles/Figures/logo_CNRS.pdf}}% 
    227 %%        \hspace{4pt} 
    228 %%        }  }% 
    229  
    230 \author{  
     226\author{ 
    231227\Large Gurvan Madec, and the NEMO team  \\ 
    232228 \texttt{\small gurvan.madec@locean-ipsl.umpc.fr} \\ 
     
    257253\frontmatter 
    258254 
    259 \tableofcontents              % generate a table of content 
    260 %\listoffigures               % generate a table of content 
    261 %\listoftables             % generate a table of content 
     255\tableofcontents              % generate a table of contents 
     256%\listoffigures               % generate a list  of figures 
     257%\listoftables                     % generate a list of tables 
    262258 
    263259\mainmatter 
     
    283279\include{./TexFiles/Chapters/Chap_STP}       % Time discretisation (time stepping strategy) 
    284280 
    285 \include{./TexFiles/Chapters/Chap_DOM}       % Space discretisation  
     281\include{./TexFiles/Chapters/Chap_DOM}       % Space discretisation 
    286282 
    287283\include{./TexFiles/Chapters/Chap_TRA}       % Tracer advection/diffusion equation 
     
    318314\include{./TexFiles/Chapters/Annex_C}        % Discrete invariants of the eqs. 
    319315\include{./TexFiles/Chapters/Annex_D}        % Coding rules 
    320 \include{./TexFiles/Chapters/Annex_ISO}                     % Isoneutral diffusion using triads  
    321 %\include{./TexFiles/Chapters/Annex_E}                   % Notes on some on going staff (no included in the DOC)  
    322 %\include{./TexFiles/Chapters/Annex_Fox-Kemper}   % Notes on Fox-Kemper (no included in the DOC)  
    323 %\include{./TexFiles/Chapters/Annex_EVP}           % Notes on EVP (no included in the DOC)  
     316\include{./TexFiles/Chapters/Annex_ISO}                     % Isoneutral diffusion using triads 
     317%\include{./TexFiles/Chapters/Annex_E}                   % Notes on some on going staff (no included in the DOC) 
     318%\include{./TexFiles/Chapters/Annex_Fox-Kemper}   % Notes on Fox-Kemper (no included in the DOC) 
     319%\include{./TexFiles/Chapters/Annex_EVP}           % Notes on EVP (no included in the DOC) 
    324320 
    325321% ================================================================ 
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Biblio/Biblio.bib

    r3116 r3218  
    705705} 
    706706 
     707 
     708@ARTICLE{Danabasoglu_al_2008, 
     709   author = {G. Danabasoglu and R. Ferrari and J. C. McWilliams}, 
     710   title = {Sensitivity of an ocean general circulation model to a parameterization of near-surface eddy fluxes}, 
     711   volume = {21}, 
     712   year = {2008}, 
     713   doi = {10.1175/2007JCLI1508.1}, 
     714   journal = {J. Climate}, 
     715   pages = {1192--1208}, 
     716        url = {http://dx.doi.org/10.1175/2007JCLI1508.1} 
     717} 
    707718@ARTICLE{Dandonneau_al_S04, 
    708719  author = {Y. Dandonneau and C. Menkes and T. Gorgues and G. Madec}, 
     
    10591070  pages = {14703--14726} 
    10601071} 
    1061  
     1072@ARTICLE{Gerdes1991, 
     1073   Author = {Gerdes, R{\"u}diger and K{\"o}berle, Cornelia and Willebrand, J{\"u}rgen}, 
     1074   Doi = {10.1007/BF00210006}, 
     1075   Journal = {Clim. Dynamics}, 
     1076   Number = {4}, 
     1077   Pages = {211--226}, 
     1078   Title = {The influence of numerical advection schemes on the results of ocean general circulation models}, 
     1079   Url = {http://dx.doi.org/10.1007/BF00210006}, 
     1080   Volume = {5}, 
     1081   Year = {1991}, 
     1082} 
    10621083@TECHREPORT{Gibson_TR86, 
    10631084  author = {J. K. Gibson}, 
     
    11331154  pages = {1--46}, 
    11341155  doi = {10.1016/j.ocemod.2008.08.007}, 
    1135   url = {http://dx.doi.org/} 
     1156  url = {http://dx.doi.org/10.1016/j.ocemod.2008.08.007} 
    11361157} 
    11371158 
     
    23012322  journal = JAS, 
    23022323  year = {1972}, 
    2303   volume = {29} 
     2324  volume = {29}, 
    23042325  pages = {959--970} 
    23052326} 
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Chapters/Abstracts_Foreword.tex

    r2541 r3218  
    88\vspace{-40pt} 
    99 
    10 \small{  
     10{\small 
    1111The ocean engine of NEMO (Nucleus for European Modelling of the Ocean) is a primitive  
    1212equation model adapted to regional and global ocean circulation problems. It is intended to  
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Chapters/Annex_A.tex

    r2282 r3218  
    1313% Chain rule 
    1414% ================================================================ 
    15 \section{Chain rule of $s-$coordinate} 
     15\section{The chain rule for $s-$coordinates} 
    1616\label{Apdx_A_continuity} 
    1717 
    18 In order to establish the set of Primitive Equation in curvilinear $s-$coordinates 
     18In order to establish the set of Primitive Equation in curvilinear $s$-coordinates 
    1919($i.e.$ an orthogonal curvilinear coordinate in the horizontal and an Arbitrary Lagrangian  
    2020Eulerian (ALE) coordinate in the vertical), we start from the set of equations established  
     
    6262% continuity equation 
    6363% ================================================================ 
    64 \section{Continuity Equation in $s-$coordinate} 
     64\section{Continuity Equation in $s-$coordinates} 
    6565\label{Apdx_A_continuity} 
    6666 
     
    128128Here, $w$ is the vertical velocity relative to the $z-$coordinate system.  
    129129Introducing the dia-surface velocity component, $\omega $, defined as  
    130 the velocity relative to the moving $s-$surfaces and normal to them: 
     130the volume flux across the moving $s$-surfaces per unit horizontal area: 
    131131\begin{equation} \label{Apdx_A_w_s} 
    132132\omega  = w - w_s - \sigma _1 \,u - \sigma _2 \,v    \\ 
     
    429429This formulation of the pressure gradient is characterised by the appearance of a term depending on the  
    430430the sea surface height only (last term on the right hand side of expression \eqref{Apdx_A_grad_p}). 
    431 This term will be abusively named \textit{surface pressure gradient} whereas the first term will be named  
     431This term will be loosely termed \textit{surface pressure gradient} 
     432whereas the first term will be termed the  
    432433\textit{hydrostatic pressure gradient} by analogy to the $z$-coordinate formulation.  
    433434In fact, the the true surface pressure gradient is $1/\rho_o \nabla (\rho \eta)$, and  
     
    451452To sum up, in a curvilinear $s$-coordinate system, the vector invariant momentum equation  
    452453solved by the model has the same mathematical expression as the one in a curvilinear  
    453 $z-$coordinate, but the pressure gradient term : 
     454$z-$coordinate, except for the pressure gradient term : 
    454455\begin{subequations} \label{Apdx_A_dyn_vect} 
    455456\begin{multline} \label{Apdx_A_PE_dyn_vect_u} 
     
    495496\end{subequations} 
    496497Both formulation share the same hydrostatic pressure balance expressed in terms of 
    497 hydrostatic pressure and density anmalies, $p_h'$ and $d=( \frac{\rho}{\rho_o}-1 )$: 
     498hydrostatic pressure and density anomalies, $p_h'$ and $d=( \frac{\rho}{\rho_o}-1 )$: 
    498499\begin{equation} \label{Apdx_A_dyn_zph} 
    499500\frac{\partial p_h'}{\partial k} = - d \, g \, e_3 
     
    502503It is important to realize that the change in coordinate system has only concerned 
    503504the position on the vertical. It has not affected (\textbf{i},\textbf{j},\textbf{k}), the  
    504 orthogonal curvilinear set of unit vector. ($u$,$v$) are always horizontal velocities 
     505orthogonal curvilinear set of unit vectors. ($u$,$v$) are always horizontal velocities 
    505506so that their evolution is driven by \emph{horizontal} forces, in particular  
    506507the pressure gradient. By contrast, $\omega$ is not $w$, the third component of the velocity, 
    507 but the dia-surface velocity component, $i.e.$ the velocity relative to the moving  
    508 $s-$surfaces and normal to them.  
     508but the dia-surface velocity component, $i.e.$ the volume flux across the moving  
     509$s$-surfaces per unit horizontal area.  
    509510 
    510511 
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Chapters/Annex_B.tex

    r2282 r3218  
    1616\label{Apdx_B_1} 
    1717 
    18  
    19 In the $z$-coordinate, the horizontal/vertical second order tracer diffusion operator  
     18\subsubsection*{In z-coordinates} 
     19In $z$-coordinates, the horizontal/vertical second order tracer diffusion operator 
    2020is given by: 
    2121\begin{eqnarray} \label{Apdx_B1} 
    22  &D^T = \frac{1}{e_1 \, e_2}      \left[  
    23   \left. \frac{\partial}{\partial i} \left(  \frac{e_2}{e_1}A^{lT} \;\left. \frac{\partial T}{\partial i} \right|_z   \right)   \right|_z      \right.          
     22 &D^T = \frac{1}{e_1 \, e_2}      \left[ 
     23  \left. \frac{\partial}{\partial i} \left(  \frac{e_2}{e_1}A^{lT} \;\left. \frac{\partial T}{\partial i} \right|_z   \right)   \right|_z      \right. 
    2424                       \left. 
    25 + \left. \frac{\partial}{\partial j} \left(  \frac{e_1}{e_2}A^{lT} \;\left. \frac{\partial T}{\partial j} \right|_z   \right)   \right|_z      \right]          
     25+ \left. \frac{\partial}{\partial j} \left(  \frac{e_1}{e_2}A^{lT} \;\left. \frac{\partial T}{\partial j} \right|_z   \right)   \right|_z      \right] 
    2626+ \frac{\partial }{\partial z}\left( {A^{vT} \;\frac{\partial T}{\partial z}} \right) 
    2727\end{eqnarray} 
    2828 
    29 In the $s$-coordinate, we defined the slopes of $s$-surfaces, $\sigma_1$ and  
    30 $\sigma_2$ by \eqref{Apdx_A_s_slope} and the vertical/horizontal ratio of diffusion  
     29\subsubsection*{In generalized vertical coordinates} 
     30In $s$-coordinates, we defined the slopes of $s$-surfaces, $\sigma_1$ and 
     31$\sigma_2$ by \eqref{Apdx_A_s_slope} and the vertical/horizontal ratio of diffusion 
    3132coefficient by $\epsilon = A^{vT} / A^{lT}$. The diffusion operator is given by: 
    3233 
    3334\begin{equation} \label{Apdx_B2} 
    34 D^T = \left. \nabla \right|_s \cdot  
     35D^T = \left. \nabla \right|_s \cdot 
    3536           \left[ A^{lT} \;\Re \cdot \left. \nabla \right|_s T  \right] \\ 
    3637\;\;\text{where} \;\Re =\left( {{\begin{array}{*{20}c} 
    3738 1 \hfill & 0 \hfill & {-\sigma _1 } \hfill \\ 
    3839 0 \hfill & 1 \hfill & {-\sigma _2 } \hfill \\ 
    39  {-\sigma _1 } \hfill & {-\sigma _2 } \hfill & {\varepsilon +\sigma _1  
     40 {-\sigma _1 } \hfill & {-\sigma _2 } \hfill & {\varepsilon +\sigma _1 
    4041^2+\sigma _2 ^2} \hfill \\ 
    4142\end{array} }} \right) 
     
    4344or in expanded form: 
    4445\begin{subequations} 
    45 \begin{align*} {\begin{array}{*{20}l}  
    46 D^T=& \frac{1}{e_1\,e_2\,e_3 }\;\left[ {\ \ \ \ e_2\,e_3\,A^{lT} \;\left.  
     46\begin{align*} {\begin{array}{*{20}l} 
     47D^T=& \frac{1}{e_1\,e_2\,e_3 }\;\left[ {\ \ \ \ e_2\,e_3\,A^{lT} \;\left. 
    4748{\frac{\partial }{\partial i}\left( {\frac{1}{e_1}\;\left. {\frac{\partial T}{\partial i}} \right|_s -\frac{\sigma _1 }{e_3 }\;\frac{\partial T}{\partial s}} \right)} \right|_s } \right.  \\ 
    4849&\qquad \quad \ \ \ +e_1\,e_3\,A^{lT} \;\left. {\frac{\partial }{\partial j}\left( {\frac{1}{e_2 }\;\left. {\frac{\partial T}{\partial j}} \right|_s -\frac{\sigma _2 }{e_3 }\;\frac{\partial T}{\partial s}} \right)} \right|_s \\ 
    49 &\qquad \quad \ \ \ + e_1\,e_2\,A^{lT} \;\frac{\partial }{\partial s}\left( {-\frac{\sigma _1 }{e_1 }\;\left. {\frac{\partial T}{\partial i}} \right|_s -\frac{\sigma _2 }{e_2 }\;\left. {\frac{\partial T}{\partial j}} \right|_s } \right.  
    50  \left. {\left. {+\left( {\varepsilon +\sigma _1^2+\sigma _2 ^2} \right)\;\frac{1}{e_3 }\;\frac{\partial T}{\partial s}} \right)\;\;} \right]  
    51 \end{array} }      
     50&\qquad \quad \ \ \ + e_1\,e_2\,A^{lT} \;\frac{\partial }{\partial s}\left( {-\frac{\sigma _1 }{e_1 }\;\left. {\frac{\partial T}{\partial i}} \right|_s -\frac{\sigma _2 }{e_2 }\;\left. {\frac{\partial T}{\partial j}} \right|_s } \right. 
     51 \left. {\left. {+\left( {\varepsilon +\sigma _1^2+\sigma _2 ^2} \right)\;\frac{1}{e_3 }\;\frac{\partial T}{\partial s}} \right)\;\;} \right] 
     52\end{array} } 
    5253\end{align*} 
    5354\end{subequations} 
    5455 
    55 Equation \eqref{Apdx_B2} is obtained from \eqref{Apdx_B1} without any  
    56 additional assumption. Indeed, for the special case $k=z$ and thus $e_3 =1$,  
    57 we introduce an arbitrary vertical coordinate $s = s (i,j,z)$ as in Appendix~\ref{Apdx_A}  
    58 and use \eqref{Apdx_A_s_slope} and \eqref{Apdx_A_s_chain_rule}.  
    59 Since no cross horizontal derivative $\partial _i \partial _j $ appears in  
    60 \eqref{Apdx_B1}, the ($i$,$z$) and ($j$,$z$) planes are independent.  
    61 The derivation can then be demonstrated for the ($i$,$z$)~$\to$~($j$,$s$)  
     56Equation \eqref{Apdx_B2} is obtained from \eqref{Apdx_B1} without any 
     57additional assumption. Indeed, for the special case $k=z$ and thus $e_3 =1$, 
     58we introduce an arbitrary vertical coordinate $s = s (i,j,z)$ as in Appendix~\ref{Apdx_A} 
     59and use \eqref{Apdx_A_s_slope} and \eqref{Apdx_A_s_chain_rule}. 
     60Since no cross horizontal derivative $\partial _i \partial _j $ appears in 
     61\eqref{Apdx_B1}, the ($i$,$z$) and ($j$,$z$) planes are independent. 
     62The derivation can then be demonstrated for the ($i$,$z$)~$\to$~($j$,$s$) 
    6263transformation without any loss of generality: 
    6364 
    64 \begin{subequations}  
    65 \begin{align*} {\begin{array}{*{20}l}  
    66 D^T&=\frac{1}{e_1\,e_2} \left. {\frac{\partial }{\partial i}\left( {\frac{e_2}{e_1}A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_z } \right)} \right|_z  
     65\begin{subequations} 
     66\begin{align*} {\begin{array}{*{20}l} 
     67D^T&=\frac{1}{e_1\,e_2} \left. {\frac{\partial }{\partial i}\left( {\frac{e_2}{e_1}A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_z } \right)} \right|_z 
    6768                     +\frac{\partial }{\partial z}\left( {A^{vT}\;\frac{\partial T}{\partial z}} \right)     \\ 
     69 \\ 
     70% 
     71&=\frac{1}{e_1\,e_2 }\left[ {\left. {\;\frac{\partial }{\partial i}\left( {\frac{e_2}{e_1}A^{lT}\;\left( {\left. {\frac{\partial T}{\partial i}} \right|_s 
     72                                                    -\frac{e_1\,\sigma _1 }{e_3 }\frac{\partial T}{\partial s}} \right)} \right)} \right|_s } \right. \\ 
     73& \qquad \qquad \left. { -\frac{e_1\,\sigma _1 }{e_3 }\frac{\partial }{\partial s}\left( {\frac{e_2 }{e_1 }A^{lT}\;\left. {\left( {\left. {\frac{\partial T}{\partial i}} \right|_s -\frac{e_1 \,\sigma _1 }{e_3 }\frac{\partial T}{\partial s}} \right)} \right|_s } \right)\;} \right] 
     74\shoveright{ +\frac{1}{e_3 }\frac{\partial }{\partial s}\left[ {\frac{A^{vT}}{e_3 }\;\frac{\partial T}{\partial s}} \right]}  \qquad \qquad \qquad \\ 
     75 \\ 
     76% 
     77&=\frac{1}{e_1 \,e_2 \,e_3 }\left[ {\left. {\;\;\frac{\partial }{\partial i}\left( {\frac{e_2 \,e_3 }{e_1 }A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right)} \right|_s -\left. {\frac{e_2 }{e_1}A^{lT}\;\frac{\partial e_3 }{\partial i}} \right|_s \left. {\frac{\partial T}{\partial i}} \right|_s } \right. \\ 
     78&  \qquad \qquad \quad \left. {-e_3 \frac{\partial }{\partial i}\left( {\frac{e_2 \,\sigma _1 }{e_3 }A^{lT}\;\frac{\partial T}{\partial s}} \right)} \right|_s -e_1 \,\sigma _1 \frac{\partial }{\partial s}\left( {\frac{e_2 }{e_1 }A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right) \\ 
     79&  \qquad \qquad \quad \shoveright{ -e_1 \,\sigma _1 \frac{\partial }{\partial s}\left( {-\frac{e_2 \,\sigma _1 }{e_3 }A^{lT}\;\frac{\partial T}{\partial s}} \right)\;\,\left. {+\frac{\partial }{\partial s}\left( {\frac{e_1 \,e_2 }{e_3 }A^{vT}\;\frac{\partial T}{\partial s}} \right)\quad} \right] }\\ 
     80\end{array} }     \\ 
     81% 
     82 {\begin{array}{*{20}l} 
     83\intertext{Noting that $\frac{1}{e_1} \left. \frac{\partial e_3 }{\partial i} \right|_s = \frac{\partial \sigma _1 }{\partial s}$, it becomes:} 
     84% 
     85& =\frac{1}{e_1\,e_2\,e_3 }\left[ {\left. {\;\;\;\frac{\partial }{\partial i}\left( {\frac{e_2\,e_3 }{e_1}\,A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right)} \right|_s \left. -\, {e_3 \frac{\partial }{\partial i}\left( {\frac{e_2 \,\sigma _1 }{e_3 }A^{lT}\;\frac{\partial T}{\partial s}} \right)} \right|_s } \right. \\ 
     86& \qquad \qquad \quad -e_2 A^{lT}\;\frac{\partial \sigma _1 }{\partial s}\left. {\frac{\partial T}{\partial i}} \right|_s -e_1 \,\sigma_1 \frac{\partial }{\partial s}\left( {\frac{e_2 }{e_1 }A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right) \\ 
     87& \qquad \qquad \quad\shoveright{ \left. { +e_1 \,\sigma _1 \frac{\partial }{\partial s}\left( {\frac{e_2 \,\sigma _1 }{e_3 }A^{lT}\;\frac{\partial T}{\partial s}} \right)+\frac{\partial }{\partial s}\left( {\frac{e_1 \,e_2 }{e_3 }A^{vT}\;\frac{\partial T}{\partial z}} \right)\;\;\;} \right] }\\ 
    6888\\ 
    69 \allowdisplaybreaks 
    70 &=\frac{1}{e_1\,e_2 }\left[ {\left. {\;\frac{\partial }{\partial i}\left( {\frac{e_2}{e_1}A^{lT}\;\left( {\left. {\frac{\partial T}{\partial i}} \right|_s  
    71                                                     -\frac{e_1\,\sigma _1 }{e_3 }\frac{\partial T}{\partial s}} \right)} \right)} \right|_s } \right. \\  
    72 & \qquad \qquad \left. { -\frac{e_1\,\sigma _1 }{e_3 }\frac{\partial }{\partial s}\left( {\frac{e_2 }{e_1 }A^{lT}\;\left. {\left( {\left. {\frac{\partial T}{\partial i}} \right|_s -\frac{e_1 \,\sigma _1 }{e_3 }\frac{\partial T}{\partial s}} \right)} \right|_s } \right)\;} \right]    
    73 \shoveright{ +\frac{1}{e_3 }\frac{\partial }{\partial s}\left[ {\frac{A^{vT}}{e_3 }\;\frac{\partial T}{\partial s}} \right]}  \qquad \qquad \qquad \\  
    74 \\ 
    75 \allowdisplaybreaks 
    76 &=\frac{1}{e_1 \,e_2 \,e_3 }\left[ {\left. {\;\;\frac{\partial }{\partial i}\left( {\frac{e_2 \,e_3 }{e_1 }A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right)} \right|_s -\left. {\frac{e_2 }{e_1}A^{lT}\;\frac{\partial e_3 }{\partial i}} \right|_s \left. {\frac{\partial T}{\partial i}} \right|_s } \right. \\  
    77 &  \qquad \qquad \quad \left. {-e_3 \frac{\partial }{\partial i}\left( {\frac{e_2 \,\sigma _1 }{e_3 }A^{lT}\;\frac{\partial T}{\partial s}} \right)} \right|_s -e_1 \,\sigma _1 \frac{\partial }{\partial s}\left( {\frac{e_2 }{e_1 }A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right) \\ 
    78 &  \qquad \qquad \quad \shoveright{ -e_1 \,\sigma _1 \frac{\partial }{\partial s}\left( {-\frac{e_2 \,\sigma _1 }{e_3 }A^{lT}\;\frac{\partial T}{\partial s}} \right)\;\,\left. {+\frac{\partial }{\partial s}\left( {\frac{e_1 \,e_2 }{e_3 }A^{vT}\;\frac{\partial T}{\partial s}} \right)\quad} \right] }\\  
    79 \end{array} }     \\ 
    80  {\begin{array}{*{20}l} 
    81 % 
    82 \allowdisplaybreaks 
    83 \intertext{Noting that $\frac{1}{e_1} \left. \frac{\partial e_3 }{\partial i} \right|_s = \frac{\partial \sigma _1 }{\partial s}$, it becomes:} 
    84 % 
    85 & =\frac{1}{e_1\,e_2\,e_3 }\left[ {\left. {\;\;\;\frac{\partial }{\partial i}\left( {\frac{e_2\,e_3 }{e_1}\,A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right)} \right|_s \left. -\, {e_3 \frac{\partial }{\partial i}\left( {\frac{e_2 \,\sigma _1 }{e_3 }A^{lT}\;\frac{\partial T}{\partial s}} \right)} \right|_s } \right. \\  
    86 & \qquad \qquad \quad -e_2 A^{lT}\;\frac{\partial \sigma _1 }{\partial s}\left. {\frac{\partial T}{\partial i}} \right|_s -e_1 \,\sigma_1 \frac{\partial }{\partial s}\left( {\frac{e_2 }{e_1 }A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right) \\  
    87 & \qquad \qquad \quad\shoveright{ \left. { +e_1 \,\sigma _1 \frac{\partial }{\partial s}\left( {\frac{e_2 \,\sigma _1 }{e_3 }A^{lT}\;\frac{\partial T}{\partial s}} \right)+\frac{\partial }{\partial s}\left( {\frac{e_1 \,e_2 }{e_3 }A^{vT}\;\frac{\partial T}{\partial z}} \right)\;\;\;} \right] }\\  
    88 \\ 
    89 &=\frac{1}{e_1 \,e_2 \,e_3 } \left[ {\left. {\;\;\;\frac{\partial }{\partial i} \left( {\frac{e_2 \,e_3 }{e_1 }A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right)} \right|_s \left. {-\frac{\partial }{\partial i}\left( {e_2 \,\sigma _1 A^{lT}\;\frac{\partial T}{\partial s}} \right)} \right|_s } \right. \\  
    90 & \qquad \qquad \quad \left. {+\frac{e_2 \,\sigma _1 }{e_3}A^{lT}\;\frac{\partial T}{\partial s} \;\frac{\partial e_3 }{\partial i}}  \right|_s -e_2 A^{lT}\;\frac{\partial \sigma _1 }{\partial s}\left. {\frac{\partial T}{\partial i}} \right|_s \\  
    91 & \qquad \qquad \quad-e_2 \,\sigma _1 \frac{\partial}{\partial s}\left( {A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right)+\frac{\partial }{\partial s}\left( {\frac{e_1 \,e_2 \,\sigma _1 ^2}{e_3 }A^{lT}\;\frac{\partial T}{\partial s}} \right) \\  
    92 & \qquad \qquad \quad\shoveright{ \left. {-\frac{\partial \left( {e_1 \,e_2 \,\sigma _1 } \right)}{\partial s} \left( {\frac{\sigma _1 }{e_3}A^{lT}\;\frac{\partial T}{\partial s}} \right) + \frac{\partial }{\partial s}\left( {\frac{e_1 \,e_2 }{e_3 }A^{vT}\;\frac{\partial T}{\partial s}} \right)\;\;\;} \right]} \\  
    93 % 
    94 \allowdisplaybreaks 
     89&=\frac{1}{e_1 \,e_2 \,e_3 } \left[ {\left. {\;\;\;\frac{\partial }{\partial i} \left( {\frac{e_2 \,e_3 }{e_1 }A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right)} \right|_s \left. {-\frac{\partial }{\partial i}\left( {e_2 \,\sigma _1 A^{lT}\;\frac{\partial T}{\partial s}} \right)} \right|_s } \right. \\ 
     90& \qquad \qquad \quad \left. {+\frac{e_2 \,\sigma _1 }{e_3}A^{lT}\;\frac{\partial T}{\partial s} \;\frac{\partial e_3 }{\partial i}}  \right|_s -e_2 A^{lT}\;\frac{\partial \sigma _1 }{\partial s}\left. {\frac{\partial T}{\partial i}} \right|_s \\ 
     91& \qquad \qquad \quad-e_2 \,\sigma _1 \frac{\partial}{\partial s}\left( {A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right)+\frac{\partial }{\partial s}\left( {\frac{e_1 \,e_2 \,\sigma _1 ^2}{e_3 }A^{lT}\;\frac{\partial T}{\partial s}} \right) \\ 
     92& \qquad \qquad \quad\shoveright{ \left. {-\frac{\partial \left( {e_1 \,e_2 \,\sigma _1 } \right)}{\partial s} \left( {\frac{\sigma _1 }{e_3}A^{lT}\;\frac{\partial T}{\partial s}} \right) + \frac{\partial }{\partial s}\left( {\frac{e_1 \,e_2 }{e_3 }A^{vT}\;\frac{\partial T}{\partial s}} \right)\;\;\;} \right]} 
     93\end{array} } \\ 
     94{\begin{array}{*{20}l} 
     95% 
    9596\intertext{using the same remark as just above, it becomes:} 
    9697% 
    97 &= \frac{1}{e_1 \,e_2 \,e_3 } \left[ {\left. {\;\;\;\frac{\partial }{\partial i} \left( {\frac{e_2 \,e_3 }{e_1 }A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s -e_2 \,\sigma _1 A^{lT}\;\frac{\partial T}{\partial s}} \right)} \right|_s } \right.\;\;\; \\  
    98 & \qquad \qquad \quad+\frac{e_1 \,e_2 \,\sigma _1 }{e_3 }A^{lT}\;\frac{\partial T}{\partial s}\;\frac{\partial \sigma _1 }{\partial s} - \frac {\sigma _1 }{e_3} A^{lT} \;\frac{\partial \left( {e_1 \,e_2 \,\sigma _1 } \right)}{\partial s}\;\frac{\partial T}{\partial s} \\  
    99 & \qquad \qquad \quad-e_2 \left( {A^{lT}\;\frac{\partial \sigma _1 }{\partial s}\left. {\frac{\partial T}{\partial i}} \right|_s +\frac{\partial }{\partial s}\left( {\sigma _1 A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right)-\frac{\partial \sigma _1 }{\partial s}\;A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right) \\  
    100 & \qquad \qquad \quad\shoveright{\left. {+\frac{\partial }{\partial s}\left( {\frac{e_1 \,e_2 \,\sigma _1 ^2}{e_3 }A^{lT}\;\frac{\partial T}{\partial s}+\frac{e_1 \,e_2}{e_3 }A^{vT}\;\frac{\partial T}{\partial s}} \right)\;\;\;} \right] }\\  
    101 % 
    102 \allowdisplaybreaks 
    103 \intertext{Since the horizontal scale factors do not depend on the vertical coordinate,  
    104 the last term of the first line and the first term of the last line cancel, while  
     98&= \frac{1}{e_1 \,e_2 \,e_3 } \left[ {\left. {\;\;\;\frac{\partial }{\partial i} \left( {\frac{e_2 \,e_3 }{e_1 }A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s -e_2 \,\sigma _1 A^{lT}\;\frac{\partial T}{\partial s}} \right)} \right|_s } \right.\;\;\; \\ 
     99& \qquad \qquad \quad+\frac{e_1 \,e_2 \,\sigma _1 }{e_3 }A^{lT}\;\frac{\partial T}{\partial s}\;\frac{\partial \sigma _1 }{\partial s} - \frac {\sigma _1 }{e_3} A^{lT} \;\frac{\partial \left( {e_1 \,e_2 \,\sigma _1 } \right)}{\partial s}\;\frac{\partial T}{\partial s} \\ 
     100& \qquad \qquad \quad-e_2 \left( {A^{lT}\;\frac{\partial \sigma _1 }{\partial s}\left. {\frac{\partial T}{\partial i}} \right|_s +\frac{\partial }{\partial s}\left( {\sigma _1 A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right)-\frac{\partial \sigma _1 }{\partial s}\;A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s } \right) \\ 
     101& \qquad \qquad \quad\shoveright{\left. {+\frac{\partial }{\partial s}\left( {\frac{e_1 \,e_2 \,\sigma _1 ^2}{e_3 }A^{lT}\;\frac{\partial T}{\partial s}+\frac{e_1 \,e_2}{e_3 }A^{vT}\;\frac{\partial T}{\partial s}} \right)\;\;\;} \right] } 
     102 \end{array} } \\ 
     103{\begin{array}{*{20}l} 
     104% 
     105\intertext{Since the horizontal scale factors do not depend on the vertical coordinate, 
     106the last term of the first line and the first term of the last line cancel, while 
    105107the second line reduces to a single vertical derivative, so it becomes:} 
    106108% 
    107 & =\frac{1}{e_1 \,e_2 \,e_3 }\left[ {\left. {\;\;\;\frac{\partial }{\partial i}\left( {\frac{e_2 \,e_3 }{e_1 }A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s -e_2 \,\sigma _1 \,A^{lT}\;\frac{\partial T}{\partial s}} \right)} \right|_s } \right. \\  
    108 & \qquad \qquad \quad \shoveright{ \left. {+\frac{\partial }{\partial s}\left( {-e_2 \,\sigma _1 \,A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s +A^{lT}\frac{e_1 \,e_2 }{e_3 }\;\left( {\varepsilon +\sigma _1 ^2} \right)\frac{\partial T}{\partial s}} \right)\;\;\;} \right]} \\  
    109 % 
    110 \allowdisplaybreaks 
    111 \intertext{in other words, the horizontal Laplacian operator in the ($i$,$s$) plane takes the following form :} 
    112 \end{array} }     \\ 
    113 % 
    114 D^T = {\frac{1}{e_1\,e_2\,e_3}} 
     109& =\frac{1}{e_1 \,e_2 \,e_3 }\left[ {\left. {\;\;\;\frac{\partial }{\partial i}\left( {\frac{e_2 \,e_3 }{e_1 }A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s -e_2 \,\sigma _1 \,A^{lT}\;\frac{\partial T}{\partial s}} \right)} \right|_s } \right. \\ 
     110& \qquad \qquad \quad \shoveright{ \left. {+\frac{\partial }{\partial s}\left( {-e_2 \,\sigma _1 \,A^{lT}\;\left. {\frac{\partial T}{\partial i}} \right|_s +A^{lT}\frac{e_1 \,e_2 }{e_3 }\;\left( {\varepsilon +\sigma _1 ^2} \right)\frac{\partial T}{\partial s}} \right)\;\;\;} \right]} 
     111 \\ 
     112% 
     113\intertext{in other words, the horizontal/vertical Laplacian operator in the ($i$,$s$) plane takes the following form:} 
     114\end{array} } \\ 
     115% 
     116{\frac{1}{e_1\,e_2\,e_3}} 
    115117\left( {{\begin{array}{*{30}c} 
    116118{\left. {\frac{\partial \left( {e_2 e_3 \bullet } \right)}{\partial i}} \right|_s } \hfill \\ 
     
    120122\left( {{\begin{array}{*{30}c} 
    121123 {1} \hfill & {-\sigma_1 } \hfill \\ 
    122  {-\sigma_1} \hfill & {\varepsilon_1^2} \hfill \\ 
    123 \end{array} }} \right) 
    124 \cdot  
     124 {-\sigma_1} \hfill & {\varepsilon + \sigma_1^2} \hfill \\ 
     125\end{array} }} \right) 
     126\cdot 
    125127\left( {{\begin{array}{*{30}c} 
    126128{\frac{1}{e_1 }\;\left. {\frac{\partial \bullet }{\partial i}} \right|_s } \hfill \\ 
     
    129131\end{align*} 
    130132\end{subequations} 
    131   
     133\addtocounter{equation}{-2} 
    132134 
    133135% ================================================================ 
     
    137139\label{Apdx_B_2} 
    138140 
    139  
    140 The iso/diapycnal diffusive tensor $\textbf {A}_{\textbf I}$ expressed in the ($i$,$j$,$k$)  
    141 curvilinear coordinate system in which the equations of the ocean circulation model are  
     141\subsubsection*{In z-coordinates} 
     142 
     143The iso/diapycnal diffusive tensor $\textbf {A}_{\textbf I}$ expressed in the ($i$,$j$,$k$) 
     144curvilinear coordinate system in which the equations of the ocean circulation model are 
    142145formulated, takes the following form \citep{Redi_JPO82}: 
    143146 
    144 \begin{equation*} 
     147\begin{equation} \label{Apdx_B3} 
    145148\textbf {A}_{\textbf I} = \frac{A^{lT}}{\left( {1+a_1 ^2+a_2 ^2} \right)} 
    146149\left[ {{\begin{array}{*{20}c} 
     
    149152 {-a_1 } \hfill & {-a_2 } \hfill & {\varepsilon +a_1 ^2+a_2 ^2} \hfill \\ 
    150153\end{array} }} \right] 
    151 \end{equation*} 
    152 where ($a_1$, $a_2$) are the isopycnal slopes in ($\textbf{i}$, $\textbf{j}$) directions: 
     154\end{equation} 
     155where ($a_1$, $a_2$) are the isopycnal slopes in ($\textbf{i}$, 
     156$\textbf{j}$) directions, relative to geopotentials: 
    153157\begin{equation*} 
    154158a_1 =\frac{e_3 }{e_1 }\left( {\frac{\partial \rho }{\partial i}} \right)\left( {\frac{\partial \rho }{\partial k}} \right)^{-1} 
    155159\qquad , \qquad 
    156 a_2 =\frac{e_3 }{e_2 }\left( {\frac{\partial \rho }{\partial j}}  
     160a_2 =\frac{e_3 }{e_2 }\left( {\frac{\partial \rho }{\partial j}} 
    157161\right)\left( {\frac{\partial \rho }{\partial k}} \right)^{-1} 
    158162\end{equation*} 
    159163 
    160 In practice, the isopycnal slopes are generally less than $10^{-2}$ in the ocean, so  
     164In practice, isopycnal slopes are generally less than $10^{-2}$ in the ocean, so 
    161165$\textbf {A}_{\textbf I}$ can be simplified appreciably \citep{Cox1987}: 
    162 \begin{equation*} 
    163 {\textbf{A}_{\textbf{I}}} \approx A^{lT} 
     166\begin{subequations} \label{Apdx_B4} 
     167\begin{equation} \label{Apdx_B4a} 
     168{\textbf{A}_{\textbf{I}}} \approx A^{lT}\;\Re\;\text{where} \;\Re = 
    164169\left[ {{\begin{array}{*{20}c} 
    165170 1 \hfill & 0 \hfill & {-a_1 } \hfill \\ 
    166171 0 \hfill & 1 \hfill & {-a_2 } \hfill \\ 
    167172 {-a_1 } \hfill & {-a_2 } \hfill & {\varepsilon +a_1 ^2+a_2 ^2} \hfill \\ 
    168 \end{array} }} \right] 
    169 \end{equation*} 
    170  
    171 The resulting isopycnal operator conserves the quantity and dissipates its square.  
    172 The demonstration of the first property is trivial as \eqref{Apdx_B2} is the divergence  
     173\end{array} }} \right], 
     174\end{equation} 
     175and the iso/dianeutral diffusive operator in $z$-coordinates is then 
     176\begin{equation}\label{Apdx_B4b} 
     177 D^T = \left. \nabla \right|_z \cdot 
     178           \left[ A^{lT} \;\Re \cdot \left. \nabla \right|_z T  \right]. \\ 
     179\end{equation} 
     180\end{subequations} 
     181 
     182 
     183Physically, the full tensor \eqref{Apdx_B3} 
     184represents strong isoneutral diffusion on a plane parallel to the isoneutral 
     185surface and weak dianeutral diffusion perpendicular to this plane. 
     186However, the approximate `weak-slope' tensor \eqref{Apdx_B4a} represents strong 
     187diffusion along the isoneutral surface, with weak 
     188\emph{vertical}  diffusion -- the principal axes of the tensor are no 
     189longer orthogonal. This simplification also decouples 
     190the ($i$,$z$) and ($j$,$z$) planes of the tensor. The weak-slope operator therefore takes the same 
     191form, \eqref{Apdx_B4}, as \eqref{Apdx_B2}, the diffusion operator for geopotential 
     192diffusion written in non-orthogonal $i,j,s$-coordinates. Written out 
     193explicitly, 
     194 
     195\begin{multline} \label{Apdx_B_ldfiso} 
     196 D^T=\frac{1}{e_1 e_2 }\left\{ 
     197 {\;\frac{\partial }{\partial i}\left[ {A_h \left( {\frac{e_2}{e_1}\frac{\partial T}{\partial i}-a_1 \frac{e_2}{e_3}\frac{\partial T}{\partial k}} \right)} \right]} 
     198 {+\frac{\partial}{\partial j}\left[ {A_h \left( {\frac{e_1}{e_2}\frac{\partial T}{\partial j}-a_2 \frac{e_1}{e_3}\frac{\partial T}{\partial k}} \right)} \right]\;} \right\} \\ 
     199\shoveright{+\frac{1}{e_3 }\frac{\partial }{\partial k}\left[ {A_h \left( {-\frac{a_1 }{e_1 }\frac{\partial T}{\partial i}-\frac{a_2 }{e_2 }\frac{\partial T}{\partial j}+\frac{\left( {a_1 ^2+a_2 ^2+\varepsilon} \right)}{e_3 }\frac{\partial T}{\partial k}} \right)} \right]}. \\ 
     200\end{multline} 
     201 
     202 
     203The isopycnal diffusion operator \eqref{Apdx_B4}, 
     204\eqref{Apdx_B_ldfiso} conserves tracer quantity and dissipates its 
     205square. The demonstration of the first property is trivial as \eqref{Apdx_B4} is the divergence 
    173206of fluxes. Let us demonstrate the second one: 
    174207\begin{equation*} 
    175 \iiint\limits_D T\;\nabla .\left( {\textbf{A}}_{\textbf{I}} \nabla T \right)\,dv  
    176           = -\iiint\limits_D \nabla T\;.\left( {\textbf{A}}_{\textbf{I}} \nabla T \right)\,dv 
     208\iiint\limits_D T\;\nabla .\left( {\textbf{A}}_{\textbf{I}} \nabla T \right)\,dv 
     209          = -\iiint\limits_D \nabla T\;.\left( {\textbf{A}}_{\textbf{I}} \nabla T \right)\,dv, 
    177210\end{equation*} 
    178 since 
    179 \begin{subequations}  
    180 \begin{align*} {\begin{array}{*{20}l}  
    181 \nabla T\;.\left( {{\rm {\bf A}}_{\rm {\bf I}} \nabla T}  
    182 \right)&=A^{lT}\left[ {\left( {\frac{\partial T}{\partial i}} \right)^2-2a_1  
    183 \frac{\partial T}{\partial i}\frac{\partial T}{\partial k}+\left(  
    184 {\frac{\partial T}{\partial j}} \right)^2} \right. \\  
     211and since 
     212\begin{subequations} 
     213\begin{align*} {\begin{array}{*{20}l} 
     214\nabla T\;.\left( {{\rm {\bf A}}_{\rm {\bf I}} \nabla T} 
     215\right)&=A^{lT}\left[ {\left( {\frac{\partial T}{\partial i}} \right)^2-2a_1 
     216\frac{\partial T}{\partial i}\frac{\partial T}{\partial k}+\left( 
     217{\frac{\partial T}{\partial j}} \right)^2} \right. \\ 
    185218&\qquad \qquad \qquad 
    186 { \left. -\,{2a_2 \frac{\partial T}{\partial j}\frac{\partial T}{\partial k}+\left( {a_1 ^2+a_2 ^2} \right)\left( {\frac{\partial T}{\partial k}} \right)^2} \right]} \\ 
    187 &=A_h \left[ {\left( {\frac{\partial T}{\partial i}-a_1 \frac{\partial T}{\partial k}} \right)^2+\left( {\frac{\partial T}{\partial j}-a_2 \frac{\partial T}{\partial k}} \right)^2} \right]      \\ 
     219{ \left. -\,{2a_2 \frac{\partial T}{\partial j}\frac{\partial T}{\partial k}+\left( {a_1 ^2+a_2 ^2+\varepsilon} \right)\left( {\frac{\partial T}{\partial k}} \right)^2} \right]} \\ 
     220&=A_h \left[ {\left( {\frac{\partial T}{\partial i}-a_1 \frac{\partial 
     221          T}{\partial k}} \right)^2+\left( {\frac{\partial T}{\partial 
     222          j}-a_2 \frac{\partial T}{\partial k}} \right)^2} 
     223  +\varepsilon \left(\frac{\partial T}{\partial k}\right) ^2\right]      \\ 
    188224& \geq 0 
    189 \end{array} }      
     225\end{array} } 
    190226\end{align*} 
    191227\end{subequations} 
    192 the property becomes obvious.  
    193  
    194 The resulting diffusion operator in $z$-coordinate has the following form : 
    195 \begin{multline*} \label{Apdx_B_ldfiso} 
    196  D^T=\frac{1}{e_1 e_2 }\left\{  
    197  {\;\frac{\partial }{\partial i}\left[ {A_h \left( {\frac{e_2}{e_1}\frac{\partial T}{\partial i}-a_1 \frac{e_2}{e_3}\frac{\partial T}{\partial k}} \right)} \right]} 
    198  {+\frac{\partial}{\partial j}\left[ {A_h \left( {\frac{e_1}{e_2}\frac{\partial T}{\partial j}-a_2 \frac{e_1}{e_3}\frac{\partial T}{\partial k}} \right)} \right]\;} \right\} \\ 
    199 \shoveright{+\frac{1}{e_3 }\frac{\partial }{\partial k}\left[ {A_h \left( {-\frac{a_1 }{e_1 }\frac{\partial T}{\partial i}-\frac{a_2 }{e_2 }\frac{\partial T}{\partial j}+\frac{\left( {a_1 ^2+a_2 ^2} \right)}{e_3 }\frac{\partial T}{\partial k}} \right)} \right]} \\  
    200 \end{multline*} 
    201  
    202 It has to be emphasised that the simplification introduced, leads to a decoupling  
    203 between ($i$,$z$) and ($j$,$z$) planes. The operator has therefore the same  
    204 expression as \eqref{Apdx_B3}, the diffusion operator obtained for geopotential  
    205 diffusion in the $s$-coordinate.  
     228\addtocounter{equation}{-1} 
     229 the property becomes obvious. 
     230 
     231\subsubsection*{In generalized vertical coordinates} 
     232 
     233Because the weak-slope operator \eqref{Apdx_B4}, \eqref{Apdx_B_ldfiso} is decoupled 
     234in the ($i$,$z$) and ($j$,$z$) planes, it may be transformed into 
     235generalized $s$-coordinates in the same way as \eqref{Apdx_B_1} was transformed into 
     236\eqref{Apdx_B_2}. The resulting operator then takes the simple form 
     237 
     238\begin{equation} \label{Apdx_B_ldfiso_s} 
     239D^T = \left. \nabla \right|_s \cdot 
     240           \left[ A^{lT} \;\Re \cdot \left. \nabla \right|_s T  \right] \\ 
     241\;\;\text{where} \;\Re =\left( {{\begin{array}{*{20}c} 
     242 1 \hfill & 0 \hfill & {-r _1 } \hfill \\ 
     243 0 \hfill & 1 \hfill & {-r _2 } \hfill \\ 
     244 {-r _1 } \hfill & {-r _2 } \hfill & {\varepsilon +r _1 
     245^2+r _2 ^2} \hfill \\ 
     246\end{array} }} \right), 
     247\end{equation} 
     248 
     249where ($r_1$, $r_2$) are the isopycnal slopes in ($\textbf{i}$, 
     250$\textbf{j}$) directions, relative to $s$-coordinate surfaces: 
     251\begin{equation*} 
     252r_1 =\frac{e_3 }{e_1 }\left( {\frac{\partial \rho }{\partial i}} \right)\left( {\frac{\partial \rho }{\partial s}} \right)^{-1} 
     253\qquad , \qquad 
     254r_2 =\frac{e_3 }{e_2 }\left( {\frac{\partial \rho }{\partial j}} 
     255\right)\left( {\frac{\partial \rho }{\partial s}} \right)^{-1}. 
     256\end{equation*} 
     257 
     258To prove  \eqref{Apdx_B5}  by direct re-expression of \eqref{Apdx_B_ldfiso} is 
     259straightforward, but laborious. An easier way is first to note (by reversing the 
     260derivation of \eqref{Apdx_B_2} from \eqref{Apdx_B_1} ) that the 
     261weak-slope operator may be \emph{exactly} reexpressed in  
     262non-orthogonal $i,j,\rho$-coordinates as 
     263 
     264\begin{equation} \label{Apdx_B5} 
     265D^T = \left. \nabla \right|_\rho \cdot 
     266           \left[ A^{lT} \;\Re \cdot \left. \nabla \right|_\rho T  \right] \\ 
     267\;\;\text{where} \;\Re =\left( {{\begin{array}{*{20}c} 
     268 1 \hfill & 0 \hfill &0 \hfill \\ 
     269 0 \hfill & 1 \hfill & 0 \hfill \\ 
     2700 \hfill & 0 \hfill & \varepsilon \hfill \\ 
     271\end{array} }} \right). 
     272\end{equation} 
     273Then direct transformation from $i,j,\rho$-coordinates to 
     274$i,j,s$-coordinates gives \eqref{Apdx_B_ldfiso_s} immediately. 
     275 
     276Note that the weak-slope approximation is only made in 
     277transforming from the (rotated,orthogonal) isoneutral axes to the 
     278non-orthogonal $i,j,\rho$-coordinates. The further transformation 
     279into $i,j,s$-coordinates is exact, whatever the steepness of 
     280the  $s$-surfaces, in the same way as the transformation of 
     281horizontal/vertical Laplacian diffusion in $z$-coordinates, 
     282\eqref{Apdx_B_1} onto $s$-coordinates is exact, however steep the $s$-surfaces. 
     283 
    206284 
    207285% ================================================================ 
     
    211289\label{Apdx_B_3} 
    212290 
    213 The second order momentum diffusion operator (Laplacian) in the $z$-coordinate  
    214 is found by applying \eqref{Eq_PE_lap_vector}, the expression for the Laplacian  
    215 of a vector,  to the horizontal velocity vector :  
     291The second order momentum diffusion operator (Laplacian) in the $z$-coordinate 
     292is found by applying \eqref{Eq_PE_lap_vector}, the expression for the Laplacian 
     293of a vector,  to the horizontal velocity vector : 
    216294\begin{align*} 
    217 \Delta {\textbf{U}}_h  
     295\Delta {\textbf{U}}_h 
    218296&=\nabla \left( {\nabla \cdot {\textbf{U}}_h } \right)- 
    219297\nabla \times \left( {\nabla \times {\textbf{U}}_h } \right)    \\ 
     
    224302 {\frac{1}{e_3 }\frac{\partial \chi }{\partial k}} \hfill \\ 
    225303\end{array} }} \right)-\left( {{\begin{array}{*{20}c} 
    226  {\frac{1}{e_2 }\frac{\partial \zeta }{\partial j}-\frac{1}{e_3  
    227 }\frac{\partial }{\partial k}\left( {\frac{1}{e_3 }\frac{\partial  
     304 {\frac{1}{e_2 }\frac{\partial \zeta }{\partial j}-\frac{1}{e_3 
     305}\frac{\partial }{\partial k}\left( {\frac{1}{e_3 }\frac{\partial 
    228306u}{\partial k}} \right)} \hfill \\ 
    229  {\frac{1}{e_3 }\frac{\partial }{\partial k}\left( {-\frac{1}{e_3  
    230 }\frac{\partial v}{\partial k}} \right)-\frac{1}{e_1 }\frac{\partial \zeta  
     307 {\frac{1}{e_3 }\frac{\partial }{\partial k}\left( {-\frac{1}{e_3 
     308}\frac{\partial v}{\partial k}} \right)-\frac{1}{e_1 }\frac{\partial \zeta 
    231309}{\partial i}} \hfill \\ 
    232  {\frac{1}{e_1 e_2 }\left[ {\frac{\partial }{\partial i}\left( {\frac{e_2  
    233 }{e_3 }\frac{\partial u}{\partial k}} \right)-\frac{\partial }{\partial  
    234 j}\left( {-\frac{e_1 }{e_3 }\frac{\partial v}{\partial k}} \right)} \right]}  
     310 {\frac{1}{e_1 e_2 }\left[ {\frac{\partial }{\partial i}\left( {\frac{e_2 
     311}{e_3 }\frac{\partial u}{\partial k}} \right)-\frac{\partial }{\partial 
     312j}\left( {-\frac{e_1 }{e_3 }\frac{\partial v}{\partial k}} \right)} \right]} 
    235313\hfill \\ 
    236314\end{array} }} \right) 
     
    249327\end{array} }} \right) 
    250328\end{align*} 
    251 Using \eqref{Eq_PE_div}, the definition of the horizontal divergence, the third  
     329Using \eqref{Eq_PE_div}, the definition of the horizontal divergence, the third 
    252330componant of the second vector is obviously zero and thus : 
    253331\begin{equation*} 
     
    255333\end{equation*} 
    256334 
    257 Note that this operator ensures a full separation between the vorticity and horizontal  
    258 divergence fields (see Appendix~\ref{Apdx_C}). It is only equal to a Laplacian  
     335Note that this operator ensures a full separation between the vorticity and horizontal 
     336divergence fields (see Appendix~\ref{Apdx_C}). It is only equal to a Laplacian 
    259337applied to each component in Cartesian coordinates, not on the sphere. 
    260338 
    261 The horizontal/vertical second order (Laplacian type) operator used to diffuse  
     339The horizontal/vertical second order (Laplacian type) operator used to diffuse 
    262340horizontal momentum in the $z$-coordinate therefore takes the following form : 
    263341\begin{equation} \label{Apdx_B_Lap_U} 
    264  {\textbf{D}}^{\textbf{U}} =  
     342 {\textbf{D}}^{\textbf{U}} = 
    265343     \nabla _h \left( {A^{lm}\;\chi } \right) 
    266344   - \nabla _h \times \left( {A^{lm}\;\zeta \;{\textbf{k}}} \right) 
    267345   + \frac{1}{e_3 }\frac{\partial }{\partial k}\left( {\frac{A^{vm}\;}{e_3 } 
    268             \frac{\partial {\rm {\bf U}}_h }{\partial k}} \right) \\  
     346            \frac{\partial {\rm {\bf U}}_h }{\partial k}} \right) \\ 
    269347\end{equation} 
    270348that is, in expanded form: 
    271349\begin{align*} 
    272 D^{\textbf{U}}_u  
     350D^{\textbf{U}}_u 
    273351& = \frac{1}{e_1} \frac{\partial \left( {A^{lm}\chi   } \right)}{\partial i} 
    274352     -\frac{1}{e_2} \frac{\partial \left( {A^{lm}\zeta } \right)}{\partial j} 
    275353     +\frac{1}{e_3} \frac{\partial u}{\partial k}      \\ 
    276 D^{\textbf{U}}_v    
     354D^{\textbf{U}}_v 
    277355& = \frac{1}{e_2 }\frac{\partial \left( {A^{lm}\chi   } \right)}{\partial j} 
    278356     +\frac{1}{e_1 }\frac{\partial \left( {A^{lm}\zeta } \right)}{\partial i} 
     
    280358\end{align*} 
    281359 
    282 Note Bene: introducing a rotation in \eqref{Apdx_B_Lap_U} does not lead to a  
    283 useful expression for the iso/diapycnal Laplacian operator in the $z$-coordinate.  
    284 Similarly, we did not found an expression of practical use for the geopotential  
    285 horizontal/vertical Laplacian operator in the $s$-coordinate. Generally,  
    286 \eqref{Apdx_B_Lap_U} is used in both $z$- and $s$-coordinate systems, that is  
     360Note Bene: introducing a rotation in \eqref{Apdx_B_Lap_U} does not lead to a 
     361useful expression for the iso/diapycnal Laplacian operator in the $z$-coordinate. 
     362Similarly, we did not found an expression of practical use for the geopotential 
     363horizontal/vertical Laplacian operator in the $s$-coordinate. Generally, 
     364\eqref{Apdx_B_Lap_U} is used in both $z$- and $s$-coordinate systems, that is 
    287365a Laplacian diffusion is applied on momentum along the coordinate directions. 
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Chapters/Annex_ISO.tex

    r2376 r3218  
    11% ================================================================ 
    2 % Iso-neutral diffusion :  
     2% Iso-neutral diffusion : 
    33% ================================================================ 
    44\chapter{Griffies's iso-neutral diffusion} 
    5 \label{Apdx_C} 
     5\label{sec:triad} 
    66\minitoc 
    77 
    88\section{Griffies's formulation of iso-neutral diffusion} 
    9  
    10 \subsection{Introduction} 
    11  We define a scheme that get its inspiration from the scheme of 
    12 \citet{Griffies_al_JPO98}, but is formulated within the \NEMO 
     9\label{sec:triad:iso} 
     10 
     11We define a scheme inspired by \citet{Griffies_al_JPO98}, but formulated within the \NEMO 
    1312framework, using scale factors rather than grid-sizes. 
    1413 
    15 The off-diagonal terms of the small angle diffusion tensor 
    16 \eqref{Eq_PE_iso_tensor} produce skew-fluxes along the 
    17 i- and j-directions resulting from the vertical tracer gradient: 
    18 \begin{align} 
    19   \label{eq:i13c} 
    20   &+\kappa r_1\frac{1}{e_3}\frac{\partial T}{\partial k},\qquad+\kappa r_2\frac{1}{e_3}\frac{\partial T}{\partial k}\\ 
    21 \intertext{and in the k-direction resulting from the lateral tracer gradients} 
    22   \label{eq:i31c} 
    23  & \kappa r_1\frac{1}{e_1}\frac{\partial T}{\partial i}+\kappa r_2\frac{1}{e_1}\frac{\partial T}{\partial i} 
    24 \end{align} 
    25 where \eqref{Eq_PE_iso_slopes} 
     14\subsection{The iso-neutral diffusion operator} 
     15The iso-neutral second order tracer diffusive operator for small 
     16angles between iso-neutral surfaces and geopotentials is given by 
     17\eqref{Eq_PE_iso_tensor}: 
     18\begin{subequations} \label{eq:triad:PE_iso_tensor} 
     19  \begin{equation} 
     20    D^{lT}=-\Div\vect{f}^{lT}\equiv 
     21    -\frac{1}{e_1e_2e_3}\left[\pd{i}\left (f_1^{lT}e_2e_3\right) + 
     22      \pd{j}\left (f_2^{lT}e_2e_3\right) + \pd{k}\left (f_3^{lT}e_1e_2\right)\right], 
     23  \end{equation} 
     24  where the diffusive flux per unit area of physical space 
     25  \begin{equation} 
     26    \vect{f}^{lT}=-\Alt\Re\cdot\grad T, 
     27  \end{equation} 
     28  \begin{equation} 
     29    \label{eq:triad:PE_iso_tensor:c} 
     30    \mbox{with}\quad \;\;\Re = 
     31    \begin{pmatrix} 
     32      1&0&-r_1\mystrut \\ 
     33      0&1&-r_2\mystrut \\ 
     34      -r_1&-r_2&r_1 ^2+r_2 ^2\mystrut 
     35    \end{pmatrix} 
     36    \quad \text{and} \quad\grad T= 
     37    \begin{pmatrix} 
     38      \frac{1}{e_1}\pd[T]{i}\mystrut \\ 
     39      \frac{1}{e_2}\pd[T]{j}\mystrut \\ 
     40      \frac{1}{e_3}\pd[T]{k}\mystrut 
     41    \end{pmatrix}. 
     42  \end{equation} 
     43\end{subequations} 
     44% \left( {{\begin{array}{*{20}c} 
     45%  1 \hfill & 0 \hfill & {-r_1 } \hfill \\ 
     46%  0 \hfill & 1 \hfill & {-r_2 } \hfill \\ 
     47%  {-r_1 } \hfill & {-r_2 } \hfill & {r_1 ^2+r_2 ^2} \hfill \\ 
     48% \end{array} }} \right) 
     49 Here \eqref{Eq_PE_iso_slopes} 
    2650\begin{align*} 
    2751  r_1 &=-\frac{e_3 }{e_1 } \left( \frac{\partial \rho }{\partial i} 
     
    3357    }{\partial k} \right)^{-1} 
    3458\end{align*} 
    35 is the i-component of the slope of the isoneutral surface relative to the computational 
    36 surface, and $r_2$ is the j-component. 
    37  
    38 The extra vertical diffusive flux associated with the $_{33}$ 
     59is the $i$-component of the slope of the iso-neutral surface relative to the computational 
     60surface, and $r_2$ is the $j$-component. 
     61 
     62We will find it useful to consider the fluxes per unit area in $i,j,k$ 
     63space; we write 
     64\begin{equation} 
     65  \label{eq:triad:Fijk} 
     66  \vect{F}_{\mathrm{iso}}=\left(f_1^{lT}e_2e_3, f_2^{lT}e_1e_3, f_3^{lT}e_1e_2\right). 
     67\end{equation} 
     68Additionally, we will sometimes write the contributions towards the 
     69fluxes $\vect{f}$ and $\vect{F}_\mathrm{iso}$ from the component 
     70$R_{ij}$ of $\Re$ as $f_{ij}$, $F_{\mathrm{iso}\: ij}$, with 
     71$f_{ij}=R_{ij}e_i^{-1}\partial T/\partial x_i$ (no summation) etc. 
     72 
     73The off-diagonal terms of the small angle diffusion tensor 
     74\eqref{Eq_PE_iso_tensor}, \eqref{eq:triad:PE_iso_tensor:c} produce skew-fluxes along the 
     75$i$- and $j$-directions resulting from the vertical tracer gradient: 
     76\begin{align} 
     77  \label{eq:triad:i13c} 
     78  f_{13}=&+\Alt r_1\frac{1}{e_3}\frac{\partial T}{\partial k},\qquad f_{23}=+\Alt r_2\frac{1}{e_3}\frac{\partial T}{\partial k}\\ 
     79\intertext{and in the k-direction resulting from the lateral tracer gradients} 
     80  \label{eq:triad:i31c} 
     81 f_{31}+f_{32}=& \Alt r_1\frac{1}{e_1}\frac{\partial T}{\partial i}+\Alt r_2\frac{1}{e_1}\frac{\partial T}{\partial i} 
     82\end{align} 
     83 
     84The vertical diffusive flux associated with the $_{33}$ 
    3985component of the small angle diffusion tensor is 
    4086\begin{equation} 
    41   \label{eq:i33c} 
    42   -\kappa(r_1^2 +r_2^2) \frac{1}{e_3}\frac{\partial T}{\partial k}. 
     87  \label{eq:triad:i33c} 
     88  f_{33}=-\Alt(r_1^2 +r_2^2) \frac{1}{e_3}\frac{\partial T}{\partial k}. 
    4389\end{equation} 
    4490 
    4591Since there are no cross terms involving $r_1$ and $r_2$ in the above, we can 
    46 consider the isoneutral diffusive fluxes separately in the i-k and j-k 
     92consider the iso-neutral diffusive fluxes separately in the $i$-$k$ and $j$-$k$ 
    4793planes, just adding together the vertical components from each 
    48 plane. The following description will describe the fluxes on the i-k 
     94plane. The following description will describe the fluxes on the $i$-$k$ 
    4995plane. 
    5096 
    51 There is no natural discretization for the i-component of the 
    52 skew-flux, \eqref{eq:i13c}, as 
    53 although it must be evaluated at u-points, it involves vertical 
     97There is no natural discretization for the $i$-component of the 
     98skew-flux, \eqref{eq:triad:i13c}, as 
     99although it must be evaluated at $u$-points, it involves vertical 
    54100gradients (both for the tracer and the slope $r_1$), defined at 
    55 w-points. Similarly, the vertical skew flux, \eqref{eq:i31c}, is evaluated at 
    56 w-points but involves horizontal gradients defined at u-points. 
     101$w$-points. Similarly, the vertical skew flux, \eqref{eq:triad:i31c}, is evaluated at 
     102$w$-points but involves horizontal gradients defined at $u$-points. 
    57103 
    58104\subsection{The standard discretization} 
    59105The straightforward approach to discretize the lateral skew flux 
    60 \eqref{eq:i13c} from tracer cell $i,k$ to $i+1,k$, introduced in 1995 
     106\eqref{eq:triad:i13c} from tracer cell $i,k$ to $i+1,k$, introduced in 1995 
    61107into OPA, \eqref{Eq_tra_ldf_iso}, is to calculate a mean vertical 
    62 gradient at the u-point from the average of the four surrounding 
     108gradient at the $u$-point from the average of the four surrounding 
    63109vertical tracer gradients, and multiply this by a mean slope at the 
    64 u-point, calculated from the averaged surrounding vertical density 
    65 gradients. The total area-integrated skew-flux from tracer cell $i,k$ 
    66 to $i+1,k$, noting that the $e_{{3u}_{i+1/2}^k}$ in the area 
    67 $e_{{3u}_{i+1/2}^k}e_{{2u}_{i+1/2}^k}$ at the u-point cancels out with 
    68 the $1/e_{{3u}_{i+1/2}^k}$ associated with the vertical tracer 
     110$u$-point, calculated from the averaged surrounding vertical density 
     111gradients. The total area-integrated skew-flux (flux per unit area in 
     112$ijk$ space) from tracer cell $i,k$ 
     113to $i+1,k$, noting that the $e_{{3}_{i+1/2}^k}$ in the area 
     114$e{_{3}}_{i+1/2}^k{e_{2}}_{i+1/2}i^k$ at the $u$-point cancels out with 
     115the $1/{e_{3}}_{i+1/2}^k$ associated with the vertical tracer 
    69116gradient, is then \eqref{Eq_tra_ldf_iso} 
    70117\begin{equation*} 
    71   \left(F_u^{\mathrm{skew}} \right)_{i+\hhalf}^k = \kappa _{i+\hhalf}^k 
    72   e_{{2u}_{i+1/2}^k} \overline{\overline 
     118  \left(F_u^{13} \right)_{i+\hhalf}^k = \Alts_{i+\hhalf}^k 
     119  {e_{2}}_{i+1/2}^k \overline{\overline 
    73120    r_1} ^{\,i,k}\,\overline{\overline{\delta_k T}}^{\,i,k}, 
    74121\end{equation*} 
     
    76123\begin{equation*} 
    77124  \overline{\overline 
    78     r_1} ^{\,i,k} = -\frac{e_{{3u}_{i+1/2}^k}}{e_{{1u}_{i+1/2}^k}} 
    79   \frac{\delta_{i+1/2} [\rho]}{\overline{\overline{\delta_k \rho}}^{\,i,k}}. 
     125   r_1} ^{\,i,k} = -\frac{{e_{3u}}_{i+1/2}^k}{{e_{1u}}_{i+1/2}^k} 
     126  \frac{\delta_{i+1/2} [\rho]}{\overline{\overline{\delta_k \rho}}^{\,i,k}}, 
    80127\end{equation*} 
    81  
     128and here and in the following we drop the $^{lT}$ superscript from 
     129$\Alt$ for simplicity. 
    82130Unfortunately the resulting combination $\overline{\overline{\delta_k 
    83131    \bullet}}^{\,i,k}$ of a $k$ average and a $k$ difference %of the tracer 
     
    89137global-average variance. To correct this, we introduced a smoothing of 
    90138the slopes of the iso-neutral surfaces (see \S\ref{LDF}). This 
    91 technique works fine for $T$ and $S$ as they are active tracers 
     139technique works for $T$ and $S$ in so far as they are active tracers 
    92140($i.e.$ they enter the computation of density), but it does not work 
    93141for a passive tracer. 
     
    95143\citep{Griffies_al_JPO98} introduce a different discretization of the 
    96144off-diagonal terms that nicely solves the problem. 
    97 % Instead of multiplying the mean slope calculated at the u-point by 
    98 % the mean vertical gradient at the u-point, 
     145% Instead of multiplying the mean slope calculated at the $u$-point by 
     146% the mean vertical gradient at the $u$-point, 
    99147% >>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    100148\begin{figure}[h] \begin{center} 
    101149    \includegraphics[width=0.90\textwidth]{./TexFiles/Figures/Fig_triad_fluxes} 
    102     \caption{  \label{Fig_ISO_triad}   
     150    \caption{ \label{fig:triad:ISO_triad} 
    103151      (a) Arrangement of triads $S_i$ and tracer gradients to 
    104            give lateral tracer flux from box $i,k$ to $i+1,k$  
     152           give lateral tracer flux from box $i,k$ to $i+1,k$ 
    105153      (b) Triads $S'_i$ and tracer gradients to give vertical tracer flux from 
    106154            box $i,k$ to $i,k+1$.} 
    107     \label{Fig_triad} 
    108   \end{center} \end{figure} 
     155 \end{center} \end{figure} 
    109156% >>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    110157They get the skew flux from the products of the vertical gradients at 
    111 each w-point surrounding the u-point with the corresponding `triad' 
    112 slope calculated from the lateral density gradient across the u-point 
    113 divided by the vertical density gradient at the same w-point as the 
    114 tracer gradient. See Fig.~\ref{Fig_triad}a, where the thick lines 
     158each $w$-point surrounding the $u$-point with the corresponding `triad' 
     159slope calculated from the lateral density gradient across the $u$-point 
     160divided by the vertical density gradient at the same $w$-point as the 
     161tracer gradient. See Fig.~\ref{fig:triad:ISO_triad}a, where the thick lines 
    115162denote the tracer gradients, and the thin lines the corresponding 
    116163triads, with slopes $s_1, \dotsc s_4$. The total area-integrated 
    117164skew-flux from tracer cell $i,k$ to $i+1,k$ 
    118165\begin{multline} 
    119   \label{eq:i13} 
    120   \left( F_u^{13}  \right)_{i+\frac{1}{2}}^k = \kappa _{i+1}^k a_1 s_1 
     166  \label{eq:triad:i13} 
     167  \left( F_u^{13}  \right)_{i+\frac{1}{2}}^k = \Alts_{i+1}^k a_1 s_1 
    121168  \delta _{k+\frac{1}{2}} \left[ T^{i+1} 
    122   \right]/e_{{3w}_{i+1}}^{k+\frac{1}{2}}  + \kappa _i^k a_2 s_2 \delta 
     169  \right]/e_{{3w}_{i+1}}^{k+\frac{1}{2}}  + \Alts _i^k a_2 s_2 \delta 
    123170  _{k+\frac{1}{2}} \left[ T^i 
    124171  \right]/e_{{3w}_{i+1}}^{k+\frac{1}{2}} \\ 
    125    +\kappa _{i+1}^k a_3 s_3 \delta _{k-\frac{1}{2}} \left[ T^{i+1} 
    126   \right]/e_{{3w}_{i+1}}^{k+\frac{1}{2}}  +\kappa _i^k a_4 s_4 \delta 
     172   +\Alts _{i+1}^k a_3 s_3 \delta _{k-\frac{1}{2}} \left[ T^{i+1} 
     173  \right]/e_{{3w}_{i+1}}^{k+\frac{1}{2}}  +\Alts _i^k a_4 s_4 \delta 
    127174  _{k-\frac{1}{2}} \left[ T^i \right]/e_{{3w}_{i+1}}^{k+\frac{1}{2}}, 
    128175\end{multline} 
    129176where the contributions of the triad fluxes are weighted by areas 
    130 $a_1, \dotsc a_4$, and $\kappa$ is now defined at the tracer points 
    131 rather than the u-points. This discretization gives a much closer 
     177$a_1, \dotsc a_4$, and $\Alts$ is now defined at the tracer points 
     178rather than the $u$-points. This discretization gives a much closer 
    132179stencil, and disallows the two-point computational modes. 
    133180 
    134  The vertical skew flux \eqref{eq:i31c} from tracer cell $i,k$ to $i,k+1$ at the 
    135 w-point $i,k+\hhalf$ is constructed similarly (Fig.~\ref{Fig_triad}b) 
     181 The vertical skew flux \eqref{eq:triad:i31c} from tracer cell $i,k$ to $i,k+1$ at the 
     182$w$-point $i,k+\hhalf$ is constructed similarly (Fig.~\ref{fig:triad:ISO_triad}b) 
    136183by multiplying lateral tracer gradients from each of the four 
    137 surrounding u-points by the appropriate triad slope: 
     184surrounding $u$-points by the appropriate triad slope: 
    138185\begin{multline} 
    139   \label{eq:i31} 
    140   \left( F_w^{31} \right) _i ^{k+\frac{1}{2}} =  \kappa_i^{k+1} a_{1}' 
     186  \label{eq:triad:i31} 
     187  \left( F_w^{31} \right) _i ^{k+\frac{1}{2}} =  \Alts_i^{k+1} a_{1}' 
    141188  s_{1}' \delta _{i-\frac{1}{2}} \left[ T^{k+1} \right]/{e_{3u}}_{i-\frac{1}{2}}^{k+1} 
    142    +\kappa_i^{k+1} a_{2}' s_{2}' \delta _{i+\frac{1}{2}} \left[ T^{k+1} \right]/{e_{3u}}_{i+\frac{1}{2}}^{k+1}\\ 
    143   + \kappa_i^k a_{3}' s_{3}' \delta _{i-\frac{1}{2}} \left[ T^k\right]/{e_{3u}}_{i-\frac{1}{2}}^k 
    144   +\kappa_i^k a_{4}' s_{4}' \delta _{i+\frac{1}{2}} \left[ T^k \right]/{e_{3u}}_{i+\frac{1}{2}}^k. 
     189   +\Alts_i^{k+1} a_{2}' s_{2}' \delta _{i+\frac{1}{2}} \left[ T^{k+1} \right]/{e_{3u}}_{i+\frac{1}{2}}^{k+1}\\ 
     190  + \Alts_i^k a_{3}' s_{3}' \delta _{i-\frac{1}{2}} \left[ T^k\right]/{e_{3u}}_{i-\frac{1}{2}}^k 
     191  +\Alts_i^k a_{4}' s_{4}' \delta _{i+\frac{1}{2}} \left[ T^k \right]/{e_{3u}}_{i+\frac{1}{2}}^k. 
    145192\end{multline} 
    146   
    147 We notate the triad slopes in terms of the `anchor point' $i,k$ 
    148 (appearing in both the vertical and lateral gradient), and the u- and 
    149 w-points $(i+i_p,k)$, $(i,k+k_p)$ at the centres of the `arms' of the 
    150 triad as follows (see also Fig.~\ref{Fig_triad}): 
    151 \begin{equation} 
    152   \label{Gf_slopes} 
    153   _i^k \mathbb{R}_{i_p}^{k_p}  
    154   =\frac{ {e_{3w}}_{\,i}^{\,k+k_p}} { {e_{1u}}_{\,i+i_p}^{\,k}} 
     193 
     194We notate the triad slopes $s_i$ and $s'_i$ in terms of the `anchor point' $i,k$ 
     195(appearing in both the vertical and lateral gradient), and the $u$- and 
     196$w$-points $(i+i_p,k)$, $(i,k+k_p)$ at the centres of the `arms' of the 
     197triad as follows (see also Fig.~\ref{fig:triad:ISO_triad}): 
     198\begin{equation} 
     199  \label{eq:triad:R} 
     200  _i^k \mathbb{R}_{i_p}^{k_p} 
     201  =-\frac{ {e_{3w}}_{\,i}^{\,k+k_p}} { {e_{1u}}_{\,i+i_p}^{\,k}} 
    155202  \ 
    156   \frac  
     203  \frac 
    157204  {\left(\alpha / \beta \right)_i^k  \ \delta_{i + i_p}[T^k] - \delta_{i + i_p}[S^k] } 
    158205  {\left(\alpha / \beta \right)_i^k  \ \delta_{k+k_p}[T^i ] - \delta_{k+k_p}[S^i ] }. 
     
    160207In calculating the slopes of the local neutral 
    161208surfaces, the expansion coefficients $\alpha$ and $\beta$ are 
    162 evaluated at the anchor points of the triad \footnote{Note that in \eqref{Gf_slopes} we use the ratio $\alpha / \beta$ 
     209evaluated at the anchor points of the triad \footnote{Note that in \eqref{eq:triad:R} we use the ratio $\alpha / \beta$ 
    163210instead of multiplying the temperature derivative by $\alpha$ and the 
    164211salinity derivative by $\beta$. This is more efficient as the ratio 
    165212$\alpha / \beta$ can to be evaluated directly}, while the metrics are 
    166 calculated at the u- and w-points on the arms. 
     213calculated at the $u$- and $w$-points on the arms. 
    167214 
    168215% >>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    169216\begin{figure}[h] \begin{center} 
    170217    \includegraphics[width=0.60\textwidth]{./TexFiles/Figures/Fig_qcells} 
    171     \caption{   \label{Fig_ISO_triad_notation}   
    172     Triad notation for quarter cells.T-cells are inside 
    173       boxes, while the  $i+\half,k$ u-cell is shaded in green and the 
    174       $i,k+\half$ w-cell is shaded in pink.} 
    175     \label{qcells} 
     218    \caption{   \label{fig:triad:qcells} 
     219    Triad notation for quarter cells.$T$-cells are inside 
     220      boxes, while the  $i+\half,k$ $u$-cell is shaded in green and the 
     221      $i,k+\half$ $w$-cell is shaded in pink.} 
    176222  \end{center} \end{figure} 
    177223% >>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    178224 
    179 Each triad $\{_i^k\:_{i_p}^{k_p}\}$ is associated (Fig.~\ref{qcells}) with the quarter 
    180 cell that is the intersection of the $i,k$ T-cell, the $i+i_p,k$ 
    181 u-cell and the $i,k+k_p$ w-cell. Expressing the slopes $s_i$ and 
    182 $s'_i$ in \eqref{eq:i13} and \eqref{eq:i31} in this notation, we have 
     225Each triad $\{_i^k\:_{i_p}^{k_p}\}$ is associated (Fig.~\ref{fig:triad:qcells}) with the quarter 
     226cell that is the intersection of the $i,k$ $T$-cell, the $i+i_p,k$ 
     227$u$-cell and the $i,k+k_p$ $w$-cell. Expressing the slopes $s_i$ and 
     228$s'_i$ in \eqref{eq:triad:i13} and \eqref{eq:triad:i31} in this notation, we have 
    183229e.g.\ $s_1=s'_1={\:}_i^k \mathbb{R}_{1/2}^{1/2}$. Each triad slope $_i^k 
    184230\mathbb{R}_{i_p}^{k_p}$ is used once (as an $s$) to calculate the 
    185 lateral flux along its u-arm, at $(i+i_p,k)$, and then again as an 
    186 $s'$ to calculate the vertical flux along its w-arm at 
     231lateral flux along its $u$-arm, at $(i+i_p,k)$, and then again as an 
     232$s'$ to calculate the vertical flux along its $w$-arm at 
    187233$(i,k+k_p)$. Each vertical area $a_i$ used to calculate the lateral 
    188234flux and horizontal area $a'_i$ used to calculate the vertical flux 
    189 can also be identified as the area across the u- and w-arms of a 
    190 unique triad, and we can notate these areas, similarly to the triad 
     235can also be identified as the area across the $u$- and $w$-arms of a 
     236unique triad, and we notate these areas, similarly to the triad 
    191237slopes, as $_i^k{\mathbb{A}_u}_{i_p}^{k_p}$, 
    192 $_i^k{\mathbb{A}_w}_{i_p}^{k_p}$, where e.g. in \eqref{eq:i13} 
    193 $a_{1}={\:}_i^k{\mathbb{A}_u}_{1/2}^{1/2}$, and in \eqref{eq:i31} 
     238$_i^k{\mathbb{A}_w}_{i_p}^{k_p}$, where e.g. in \eqref{eq:triad:i13} 
     239$a_{1}={\:}_i^k{\mathbb{A}_u}_{1/2}^{1/2}$, and in \eqref{eq:triad:i31} 
    194240$a'_{1}={\:}_i^k{\mathbb{A}_w}_{1/2}^{1/2}$. 
    195241 
    196242\subsection{The full triad fluxes} 
    197 A key property of isoneutral diffusion is that it should not affect 
     243A key property of iso-neutral diffusion is that it should not affect 
    198244the (locally referenced) density. In particular there should be no 
    199245lateral or vertical density flux. The lateral density flux disappears so long as the 
     
    202248form 
    203249\begin{equation} 
    204   \label{eq:i11} 
     250  \label{eq:triad:i11} 
    205251  \left( F_u^{11} \right) _{i+\frac{1}{2}} ^{k} = 
    206   - \left( \kappa_i^{k+1} a_{1} + \kappa_i^{k+1} a_{2} + \kappa_i^k 
    207     a_{3} + \kappa_i^k a_{4} \right) 
     252  - \left( \Alts_i^{k+1} a_{1} + \Alts_i^{k+1} a_{2} + \Alts_i^k 
     253    a_{3} + \Alts_i^k a_{4} \right) 
    208254  \frac{\delta _{i+1/2} \left[ T^k\right]}{{e_{1u}}_{\,i+1/2}^{\,k}}, 
    209255\end{equation} 
    210 where the areas $a_i$ are as in \eqref{eq:i13}. In this case, 
    211 separating the total lateral flux, the sum of \eqref{eq:i13} and 
    212 \eqref{eq:i11}, into triad components, a lateral tracer 
     256where the areas $a_i$ are as in \eqref{eq:triad:i13}. In this case, 
     257separating the total lateral flux, the sum of \eqref{eq:triad:i13} and 
     258\eqref{eq:triad:i11}, into triad components, a lateral tracer 
    213259flux 
    214260\begin{equation} 
    215   \label{eq:latflux-triad} 
    216   _i^k {\mathbb{F}_u}_{i_p}^{k_p} (T) = -A_i^k{ \:}_i^k{\mathbb{A}_u}_{i_p}^{k_p} 
     261  \label{eq:triad:latflux-triad} 
     262  _i^k {\mathbb{F}_u}_{i_p}^{k_p} (T) = - \Alts_i^k{ \:}_i^k{\mathbb{A}_u}_{i_p}^{k_p} 
    217263  \left( 
    218264    \frac{ \delta_{i+ i_p}[T^k] }{ {e_{1u}}_{\,i + i_p}^{\,k} } 
     
    227273density flux associated with each triad separately disappears. 
    228274\begin{equation} 
    229   \label{eq:latflux-rho} 
     275  \label{eq:triad:latflux-rho} 
    230276  {\mathbb{F}_u}_{i_p}^{k_p} (\rho)=-\alpha _i^k {\:}_i^k {\mathbb{F}_u}_{i_p}^{k_p} (T) + \beta_i^k {\:}_i^k {\mathbb{F}_u}_{i_p}^{k_p} (S)=0 
    231277\end{equation} 
     
    234280to $i+1,k$ must also vanish since it is a sum of four such triad fluxes. 
    235281 
    236 The squared slope $r_1^2$ in the expression \eqref{eq:i33c} for the 
     282The squared slope $r_1^2$ in the expression \eqref{eq:triad:i33c} for the 
    237283$_{33}$ component is also expressed in terms of area-weighted 
    238284squared triad slopes, so the area-integrated vertical flux from tracer 
    239285cell $i,k$ to $i,k+1$ resulting from the $r_1^2$ term is 
    240286\begin{equation} 
    241   \label{eq:i33} 
     287  \label{eq:triad:i33} 
    242288  \left( F_w^{33} \right) _i^{k+\frac{1}{2}} = 
    243     - \left( \kappa_i^{k+1} a_{1}' s_{1}'^2 
    244     + \kappa_i^{k+1} a_{2}' s_{2}'^2 
    245     + \kappa_i^k a_{3}' s_{3}'^2 
    246     + \kappa_i^k a_{4}' s_{4}'^2 \right)\delta_{k+\frac{1}{2}} \left[ T^{i+1} \right], 
     289    - \left( \Alts_i^{k+1} a_{1}' s_{1}'^2 
     290    + \Alts_i^{k+1} a_{2}' s_{2}'^2 
     291    + \Alts_i^k a_{3}' s_{3}'^2 
     292    + \Alts_i^k a_{4}' s_{4}'^2 \right)\delta_{k+\frac{1}{2}} \left[ T^{i+1} \right], 
    247293\end{equation} 
    248294where the areas $a'$ and slopes $s'$ are the same as in 
    249 \eqref{eq:i31}. 
    250 Then, separating the total vertical flux, the sum of \eqref{eq:i31} and 
    251 \eqref{eq:i33}, into triad components,  a vertical flux  
     295\eqref{eq:triad:i31}. 
     296Then, separating the total vertical flux, the sum of \eqref{eq:triad:i31} and 
     297\eqref{eq:triad:i33}, into triad components,  a vertical flux 
    252298\begin{align} 
    253   \label{eq:vertflux-triad} 
     299  \label{eq:triad:vertflux-triad} 
    254300  _i^k {\mathbb{F}_w}_{i_p}^{k_p} (T) 
    255   &= A_i^k{\: }_i^k{\mathbb{A}_w}_{i_p}^{k_p} 
     301  &= \Alts_i^k{\: }_i^k{\mathbb{A}_w}_{i_p}^{k_p} 
    256302  \left( 
    257303    {_i^k\mathbb{R}_{i_p}^{k_p}}\frac{ \delta_{i+ i_p}[T^k] }{ {e_{1u}}_{\,i + i_p}^{\,k} } 
     
    260306  \right) \\ 
    261307  &= - \left(\left.{ }_i^k{\mathbb{A}_w}_{i_p}^{k_p}\right/{ }_i^k{\mathbb{A}_u}_{i_p}^{k_p}\right) 
    262    {_i^k\mathbb{R}_{i_p}^{k_p}}{\: }_i^k{\mathbb{F}_u}_{i_p}^{k_p} (T) \label{eq:vertflux-triad2} 
     308   {_i^k\mathbb{R}_{i_p}^{k_p}}{\: }_i^k{\mathbb{F}_u}_{i_p}^{k_p} (T) \label{eq:triad:vertflux-triad2} 
    263309\end{align} 
    264310may be associated with each triad. Each vertical density flux $_i^k {\mathbb{F}_w}_{i_p}^{k_p} (\rho)$ 
     
    270316fluxes. 
    271317 
    272 We can explicitly identify (Fig.~\ref{qcells}) the triads associated with the $s_i$, $a_i$, and $s'_i$, $a'_i$ used in the definition of 
    273 the u-fluxes and w-fluxes in 
    274 \eqref{eq:i31}, \eqref{eq:i13}, \eqref{eq:i11} \eqref{eq:i33} and 
    275 Fig.~\ref{Fig_triad} to  write out the iso-neutral fluxes at $u$- and 
     318We can explicitly identify (Fig.~\ref{fig:triad:qcells}) the triads associated with the $s_i$, $a_i$, and $s'_i$, $a'_i$ used in the definition of 
     319the $u$-fluxes and $w$-fluxes in 
     320\eqref{eq:triad:i31}, \eqref{eq:triad:i13}, \eqref{eq:triad:i11} \eqref{eq:triad:i33} and 
     321Fig.~\ref{fig:triad:ISO_triad} to  write out the iso-neutral fluxes at $u$- and 
    276322$w$-points as sums of the triad fluxes that cross the $u$- and $w$-faces: 
    277323%(Fig.~\ref{Fig_ISO_triad}): 
    278 \begin{flalign} \label{Eq_iso_flux} \textbf{F}_{iso}(T) &\equiv 
     324\begin{flalign} \label{Eq_iso_flux} \vect{F}_\mathrm{iso}(T) &\equiv 
    279325  \sum_{\substack{i_p,\,k_p}} 
    280326  \begin{pmatrix} 
     
    284330  \end{pmatrix}. 
    285331\end{flalign} 
    286 \subsection{Ensuring the scheme cannot increase tracer variance} 
    287 \label{sec:variance} 
    288  
    289 We now require that this operator cannot increase the 
     332\subsection{Ensuring the scheme does not increase tracer variance} 
     333\label{sec:triad:variance} 
     334 
     335We now require that this operator should not increase the 
    290336globally-integrated tracer variance. 
    291337%This changes according to 
    292338% \begin{align*} 
    293339% &\int_D  D_l^T \; T \;dv \equiv  \sum_{i,k} \left\{ T \ D_l^T \ b_T \right\}    \\ 
    294 % &\equiv + \sum_{i,k} \sum_{\substack{i_p,\,k_p}} \left\{   
    295 %     \delta_{i} \left[{_{i+1/2-i_p}^k {\mathbb{F}_u }_{i_p}^{k_p}} \right]  
     340% &\equiv + \sum_{i,k} \sum_{\substack{i_p,\,k_p}} \left\{ 
     341%     \delta_{i} \left[{_{i+1/2-i_p}^k {\mathbb{F}_u }_{i_p}^{k_p}} \right] 
    296342%       + \delta_{k} \left[ {_i^{k+1/2-k_p} {\mathbb{F}_w}_{i_p}^{k_p}} \right]  \ T \right\}    \\ 
    297 % &\equiv  - \sum_{i,k} \sum_{\substack{i_p,\,k_p}} \left\{   
     343% &\equiv  - \sum_{i,k} \sum_{\substack{i_p,\,k_p}} \left\{ 
    298344%                 {_{i+1/2-i_p}^k {\mathbb{F}_u }_{i_p}^{k_p}} \ \delta_{i+1/2} [T] 
    299345%              + {_i^{k+1/2-k_p} {\mathbb{F}_w}_{i_p}^{k_p}}  \ \delta_{k+1/2} [T]   \right\}      \\ 
    300346% \end{align*} 
    301347Each triad slope $_i^k\mathbb{R}_{i_p}^{k_p}$ drives a lateral flux 
    302 $_i^k{\mathbb{F}_u}_{i_p}^{k_p} (T)$ across the u-point $i+i_p,k$ and 
     348$_i^k{\mathbb{F}_u}_{i_p}^{k_p} (T)$ across the $u$-point $i+i_p,k$ and 
    303349a vertical flux $_i^k{\mathbb{F}_w}_{i_p}^{k_p} (T)$ across the 
    304 w-point $i,k+k_p$.  The lateral flux drives a net rate of change of 
    305 variance at points $i+i_p-\half,k$ and $i+i_p+\half,k$ of 
     350$w$-point $i,k+k_p$.  The lateral flux drives a net rate of change of 
     351variance, summed over the two $T$-points $i+i_p-\half,k$ and $i+i_p+\half,k$, of 
    306352\begin{multline} 
    307353  {b_T}_{i+i_p-1/2}^k\left(\frac{\partial T}{\partial t}T\right)_{i+i_p-1/2}^k+ 
     
    311357  &= -T_{i+i_p-1/2}^k{\;} _i^k{\mathbb{F}_u}_{i_p}^{k_p} (T) \quad + \quad  T_{i+i_p+1/2}^k 
    312358  {\;}_i^k{\mathbb{F}_u}_{i_p}^{k_p} (T) \\ 
    313   &={\;} _i^k{\mathbb{F}_u}_{i_p}^{k_p} (T)\,\delta_{i+ i_p}[T^k], \label{locFdtdx} 
     359  &={\;} _i^k{\mathbb{F}_u}_{i_p}^{k_p} (T)\,\delta_{i+ i_p}[T^k], \label{eq:triad:dvar_iso_i} 
    314360 \end{split} 
    315361\end{multline} 
    316 while the vertical flux similarly drives a net rate of change of variance at points $i,k+k_p-\half$ and 
    317 $i,k+k_p+\half$ of 
    318 \begin{equation} 
    319 \label{locFdtdz} 
     362while the vertical flux similarly drives a net rate of change of 
     363variance summed over the $T$-points $i,k+k_p-\half$ (above) and 
     364$i,k+k_p+\half$ (below) of 
     365\begin{equation} 
     366\label{eq:triad:dvar_iso_k} 
    320367  _i^k{\mathbb{F}_w}_{i_p}^{k_p} (T) \,\delta_{k+ k_p}[T^i]. 
    321368\end{equation} 
    322369The total variance tendency driven by the triad is the sum of these 
    323370two. Expanding $_i^k{\mathbb{F}_u}_{i_p}^{k_p} (T)$ and 
    324 $_i^k{\mathbb{F}_w}_{i_p}^{k_p} (T)$ with \eqref{eq:latflux-triad} and 
    325 \eqref{eq:vertflux-triad}, it is 
     371$_i^k{\mathbb{F}_w}_{i_p}^{k_p} (T)$ with \eqref{eq:triad:latflux-triad} and 
     372\eqref{eq:triad:vertflux-triad}, it is 
    326373\begin{multline*} 
    327 -A_i^k\left \{ 
     374-\Alts_i^k\left \{ 
    328375{ } _i^k{\mathbb{A}_u}_{i_p}^{k_p} 
    329376  \left( 
     
    343390to be related to a triad volume $_i^k\mathbb{V}_{i_p}^{k_p}$ by 
    344391\begin{equation} 
    345   \label{eq:V-A} 
     392  \label{eq:triad:V-A} 
    346393  _i^k\mathbb{V}_{i_p}^{k_p} 
    347394  ={\;}_i^k{\mathbb{A}_u}_{i_p}^{k_p}\,{e_{1u}}_{\,i + i_p}^{\,k} 
     
    350397the variance tendency reduces to the perfect square 
    351398\begin{equation} 
    352   \label{eq:perfect-square} 
    353   -A_i^k{\:} _i^k\mathbb{V}_{i_p}^{k_p} 
     399  \label{eq:triad:perfect-square} 
     400  -\Alts_i^k{\:} _i^k\mathbb{V}_{i_p}^{k_p} 
    354401  \left( 
    355402    \frac{ \delta_{i+ i_p}[T^k] }{ {e_{1u}}_{\,i + i_p}^{\,k} } 
     
    358405  \right)^2\leq 0. 
    359406\end{equation} 
    360 Thus, the constraint \eqref{eq:V-A} ensures that the fluxes associated 
     407Thus, the constraint \eqref{eq:triad:V-A} ensures that the fluxes (\ref{eq:triad:latflux-triad}, \ref{eq:triad:vertflux-triad}) associated 
    361408with a given slope triad $_i^k\mathbb{R}_{i_p}^{k_p}$ do not increase 
    362409the net variance. Since the total fluxes are sums of such fluxes from 
     
    365412increase. 
    366413 
    367 The expression \eqref{eq:V-A} can be interpreted as a discretization 
     414The expression \eqref{eq:triad:V-A} can be interpreted as a discretization 
    368415of the global integral 
    369416\begin{equation} 
    370   \label{eq:cts-var} 
    371   \frac{\partial}{\partial t}\int\half T^2\, dV = 
    372   \int\mathbf{F}\cdot\nabla T\, dV, 
     417  \label{eq:triad:cts-var} 
     418  \frac{\partial}{\partial t}\int\!\half T^2\, dV = 
     419  \int\!\mathbf{F}\cdot\nabla T\, dV, 
    373420\end{equation} 
    374421where, within each triad volume $_i^k\mathbb{V}_{i_p}^{k_p}$, the 
     
    376423\[ 
    377424\mathbf{F}=\left( 
    378 _i^k{\mathbb{F}_u}_{i_p}^{k_p} (T)/_i^k{\mathbb{A}_u}_{i_p}^{k_p}, 
    379 {\:}_i^k{\mathbb{F}_w}_{i_p}^{k_p} (T)/_i^k{\mathbb{A}_w}_{i_p}^{k_p} 
     425\left.{}_i^k{\mathbb{F}_u}_{i_p}^{k_p} (T)\right/{}_i^k{\mathbb{A}_u}_{i_p}^{k_p}, 
     426\left.{\:}_i^k{\mathbb{F}_w}_{i_p}^{k_p} (T)\right/{}_i^k{\mathbb{A}_w}_{i_p}^{k_p} 
    380427 \right) 
    381428\] 
    382429and the gradient 
    383430 \[\nabla T = \left( 
    384 \delta_{i+ i_p}[T^k] / {e_{1u}}_{\,i + i_p}^{\,k}, 
    385 \delta_{k+ k_p}[T^i] / {e_{3w}}_{\,i}^{\,k + k_p} 
     431\left.\delta_{i+ i_p}[T^k] \right/ {e_{1u}}_{\,i + i_p}^{\,k}, 
     432\left.\delta_{k+ k_p}[T^i] \right/ {e_{3w}}_{\,i}^{\,k + k_p} 
    386433\right) 
    387434\] 
     
    390437volumes $_i^k\mathbb{V}_{i_p}^{k_p}$. \citet{Griffies_al_JPO98} identify 
    391438these $_i^k\mathbb{V}_{i_p}^{k_p}$ as the volumes of the quarter 
    392 cells, defined in terms of the distances between T, u,f and 
    393 w-points. This is the natural discretization of 
    394 \eqref{eq:cts-var}. The \NEMO model, however, operates with scale 
     439cells, defined in terms of the distances between $T$, $u$,$f$ and 
     440$w$-points. This is the natural discretization of 
     441\eqref{eq:triad:cts-var}. The \NEMO model, however, operates with scale 
    395442factors instead of grid sizes, and scale factors for the quarter 
    396443cells are not defined. Instead, therefore we simply choose 
    397444\begin{equation} 
    398   \label{eq:V-NEMO} 
     445  \label{eq:triad:V-NEMO} 
    399446  _i^k\mathbb{V}_{i_p}^{k_p}=\quarter {b_u}_{i+i_p}^k, 
    400447\end{equation} 
    401 as a quarter of the volume of the u-cell inside which the triad 
     448as a quarter of the volume of the $u$-cell inside which the triad 
    402449quarter-cell lies. This has the nice property that when the slopes 
    403450$\mathbb{R}$ vanish, the lateral flux from tracer cell $i,k$ to 
    404451$i+1,k$ reduces to the classical form 
    405452\begin{equation} 
    406   \label{eq:lat-normal} 
    407 -\overline{A}_{\,i+1/2}^k\; 
     453  \label{eq:triad:lat-normal} 
     454-\overline\Alts_{\,i+1/2}^k\; 
    408455\frac{{b_u}_{i+1/2}^k}{{e_{1u}}_{\,i + i_p}^{\,k}} 
    409456\;\frac{\delta_{i+ 1/2}[T^k] }{{e_{1u}}_{\,i + i_p}^{\,k}} 
    410  = -\overline{A}_{\,i+1/2}^k\;\frac{{e_{1w}}_{\,i + 1/2}^{\,k}\:{e_{1v}}_{\,i + 1/2}^{\,k}}{{e_{1u}}_{\,i + 1/2}^{\,k}}. 
    411 \end{equation} 
    412 In fact if the diffusive coefficient is defined at u-points, so that 
    413 we employ $A_{i+i_p}^k$ instead of $A_i^k$ in the definitions of the 
    414 triad fluxes \eqref{eq:latflux-triad} and \eqref{eq:vertflux-triad}, 
     457 = -\overline\Alts_{\,i+1/2}^k\;\frac{{e_{1w}}_{\,i + 1/2}^{\,k}\:{e_{1v}}_{\,i + 1/2}^{\,k}\;\delta_{i+ 1/2}[T^k]}{{e_{1u}}_{\,i + 1/2}^{\,k}}. 
     458\end{equation} 
     459In fact if the diffusive coefficient is defined at $u$-points, so that 
     460we employ $\Alts_{i+i_p}^k$ instead of  $\Alts_i^k$ in the definitions of the 
     461triad fluxes \eqref{eq:triad:latflux-triad} and \eqref{eq:triad:vertflux-triad}, 
    415462we can replace $\overline{A}_{\,i+1/2}^k$ by $A_{i+1/2}^k$ in the above. 
    416463 
    417464\subsection{Summary of the scheme} 
    418 The divergence of the expression \eqref{Eq_iso_flux} for the fluxes gives the iso-neutral diffusion tendency at 
     465The iso-neutral fluxes at $u$- and 
     466$w$-points are the sums of the triad fluxes that cross the $u$- and 
     467$w$-faces \eqref{Eq_iso_flux}: 
     468\begin{subequations}\label{eq:triad:alltriadflux} 
     469  \begin{flalign}\label{eq:triad:vect_isoflux} 
     470    \vect{F}_\mathrm{iso}(T) &\equiv 
     471    \sum_{\substack{i_p,\,k_p}} 
     472    \begin{pmatrix} 
     473      {_{i+1/2-i_p}^k {\mathbb{F}_u}_{i_p}^{k_p} } (T)      \\ 
     474      \\ 
     475      {_i^{k+1/2-k_p} {\mathbb{F}_w}_{i_p}^{k_p} } (T)  
     476    \end{pmatrix}, 
     477  \end{flalign} 
     478  where \eqref{eq:triad:latflux-triad}: 
     479  \begin{align} 
     480    \label{eq:triad:triadfluxu} 
     481    _i^k {\mathbb{F}_u}_{i_p}^{k_p} (T) &= - \Alts_i^k{ 
     482      \:}\frac{{{}_i^k\mathbb{V}}_{i_p}^{k_p}}{{e_{1u}}_{\,i + i_p}^{\,k}} 
     483    \left( 
     484      \frac{ \delta_{i+ i_p}[T^k] }{ {e_{1u}}_{\,i + i_p}^{\,k} } 
     485      -\ {_i^k\mathbb{R}_{i_p}^{k_p}} \ 
     486      \frac{ \delta_{k+k_p} [T^i] }{{e_{3w}}_{\,i}^{\,k+k_p} } 
     487    \right),\\ 
     488    \intertext{and} 
     489    _i^k {\mathbb{F}_w}_{i_p}^{k_p} (T) 
     490    &= \Alts_i^k{\: }\frac{{{}_i^k\mathbb{V}}_{i_p}^{k_p}}{{e_{3w}}_{\,i}^{\,k+k_p}} 
     491    \left( 
     492      {_i^k\mathbb{R}_{i_p}^{k_p}}\frac{ \delta_{i+ i_p}[T^k] }{ {e_{1u}}_{\,i + i_p}^{\,k} } 
     493      -\ \left({_i^k\mathbb{R}_{i_p}^{k_p}}\right)^2 \ 
     494      \frac{ \delta_{k+k_p} [T^i] }{{e_{3w}}_{\,i}^{\,k+k_p} } 
     495    \right),\label{eq:triad:triadfluxw} 
     496  \end{align} 
     497  with \eqref{eq:triad:V-NEMO} 
     498  \begin{equation} 
     499    \label{eq:triad:V-NEMO2} 
     500    _i^k{\mathbb{V}}_{i_p}^{k_p}=\quarter {b_u}_{i+i_p}^k. 
     501  \end{equation} 
     502\end{subequations} 
     503 
     504 The divergence of the expression \eqref{Eq_iso_flux} for the fluxes gives the iso-neutral diffusion tendency at 
    419505each tracer point: 
    420 \begin{equation} \label{Gf_operator} D_l^T = \frac{1}{b_T} 
     506\begin{equation} \label{eq:triad:iso_operator} D_l^T = \frac{1}{b_T} 
    421507  \sum_{\substack{i_p,\,k_p}} \left\{ \delta_{i} \left[{_{i+1/2-i_p}^k 
    422508        {\mathbb{F}_u }_{i_p}^{k_p}} \right] + \delta_{k} \left[ 
     
    427513\begin{description} 
    428514\item[$\bullet$ horizontal diffusion] The discretization of the 
    429   diffusion operator recovers \eqref{eq:lat-normal} the traditional five-point Laplacian in 
     515  diffusion operator recovers \eqref{eq:triad:lat-normal} the traditional five-point Laplacian in 
    430516  the limit of flat iso-neutral direction : 
    431   \begin{equation} \label{Gf_property1a} D_l^T = \frac{1}{b_T} \ 
     517  \begin{equation} \label{eq:triad:iso_property0} D_l^T = \frac{1}{b_T} \ 
    432518    \delta_{i} \left[ \frac{e_{2u}\,e_{3u}}{e_{1u}} \; 
    433       \overline{A}^{\,i} \; \delta_{i+1/2}[T] \right] \qquad 
     519      \overline\Alts^{\,i} \; \delta_{i+1/2}[T] \right] \qquad 
    434520    \text{when} \quad { _i^k \mathbb{R}_{i_p}^{k_p} }=0 
    435521  \end{equation} 
     
    437523\item[$\bullet$ implicit treatment in the vertical] Only tracer values 
    438524  associated with a single water column appear in the expression 
    439   \eqref{eq:i33} for the $_{33}$ fluxes, vertical fluxes driven by 
     525  \eqref{eq:triad:i33} for the $_{33}$ fluxes, vertical fluxes driven by 
    440526  vertical gradients. This is of paramount importance since it means 
    441   that an implicit in time algorithm can be used to solve the vertical 
    442   diffusion equation. This is a necessity since the vertical eddy 
     527  that a time-implicit algorithm can be used to solve the vertical 
     528  diffusion equation. This is necessary 
     529 since the vertical eddy 
    443530  diffusivity associated with this term, 
    444531  \begin{equation} 
    445     \frac{1}{b_w}\sum_{\substack{i_p, \,k_p}} \left\{   
    446       {\:}_i^k\mathbb{V}_{i_p}^{k_p} \:A_i^k \: \left(_i^k \mathbb{R}_{i_p}^{k_p}\right)^2 
    447     \right\}  =  
    448     \frac{1}{4b_w}\sum_{\substack{i_p, \,k_p}} \left\{   
    449       {b_u}_{i+i_p}^k\:A_i^k \: \left(_i^k \mathbb{R}_{i_p}^{k_p}\right)^2 
     532    \frac{1}{b_w}\sum_{\substack{i_p, \,k_p}} \left\{ 
     533      {\:}_i^k\mathbb{V}_{i_p}^{k_p} \: \Alts_i^k \: \left(_i^k \mathbb{R}_{i_p}^{k_p}\right)^2 
     534    \right\}  = 
     535    \frac{1}{4b_w}\sum_{\substack{i_p, \,k_p}} \left\{ 
     536      {b_u}_{i+i_p}^k\: \Alts_i^k \: \left(_i^k \mathbb{R}_{i_p}^{k_p}\right)^2 
    450537    \right\}, 
    451538 \end{equation} 
     
    454541\item[$\bullet$ pure iso-neutral operator] The iso-neutral flux of 
    455542  locally referenced potential density is zero. See 
    456   \eqref{eq:latflux-rho} and \eqref{eq:vertflux-triad2}. 
     543  \eqref{eq:triad:latflux-rho} and \eqref{eq:triad:vertflux-triad2}. 
    457544 
    458545\item[$\bullet$ conservation of tracer] The iso-neutral diffusion 
    459546  conserves tracer content, $i.e.$ 
    460   \begin{equation} \label{Gf_property1} \sum_{i,j,k} \left\{ D_l^T \ 
     547  \begin{equation} \label{eq:triad:iso_property1} \sum_{i,j,k} \left\{ D_l^T \ 
    461548      b_T \right\} = 0 
    462549  \end{equation} 
     
    466553\item[$\bullet$ no increase of tracer variance] The iso-neutral diffusion 
    467554  does not increase the tracer variance, $i.e.$ 
    468   \begin{equation} \label{Gf_property1} \sum_{i,j,k} \left\{ T \ D_l^T 
     555  \begin{equation} \label{eq:triad:iso_property2} \sum_{i,j,k} \left\{ T \ D_l^T 
    469556      \ b_T \right\} \leq 0 
    470557  \end{equation} 
    471558  The property is demonstrated in 
    472   \ref{sec:variance} above. It is a key property for a diffusion 
    473   term. It means that it is also a dissipation term, $i.e.$ it is a 
    474   diffusion of the square of the quantity on which it is applied.  It 
     559  \S\ref{sec:triad:variance} above. It is a key property for a diffusion 
     560  term. It means that it is also a dissipation term, $i.e.$ it 
     561  dissipates the square of the quantity on which it is applied.  It 
    475562  therefore ensures that, when the diffusivity coefficient is large 
    476   enough, the field on which it is applied become free of grid-point 
     563  enough, the field on which it is applied becomes free of grid-point 
    477564  noise. 
    478565 
    479566\item[$\bullet$ self-adjoint operator] The iso-neutral diffusion 
    480567  operator is self-adjoint, $i.e.$ 
    481   \begin{equation} \label{Gf_property1} \sum_{i,j,k} \left\{ S \ D_l^T 
     568  \begin{equation} \label{eq:triad:iso_property3} \sum_{i,j,k} \left\{ S \ D_l^T 
    482569      \ b_T \right\} = \sum_{i,j,k} \left\{ D_l^S \ T \ b_T \right\} 
    483570  \end{equation} 
     
    486573  routine. This property can be demonstrated similarly to the proof of 
    487574  the `no increase of tracer variance' property. The contribution by a 
    488   single triad towards the left hand side of \eqref{Gf_property1}, can 
    489   be found by replacing $\delta[T]$ by $\delta[S]$ in \eqref{locFdtdx} 
    490   and \eqref{locFdtdx}. This results in a term similar to 
    491   \eqref{eq:perfect-square}, 
    492 \begin{equation} 
    493   \label{eq:TScovar} 
    494   -A_i^k{\:} _i^k\mathbb{V}_{i_p}^{k_p} 
     575  single triad towards the left hand side of \eqref{eq:triad:iso_property3}, can 
     576  be found by replacing $\delta[T]$ by $\delta[S]$ in \eqref{eq:triad:dvar_iso_i} 
     577  and \eqref{eq:triad:dvar_iso_k}. This results in a term similar to 
     578  \eqref{eq:triad:perfect-square}, 
     579\begin{equation} 
     580  \label{eq:triad:TScovar} 
     581  - \Alts_i^k{\:} _i^k\mathbb{V}_{i_p}^{k_p} 
    495582  \left( 
    496583    \frac{ \delta_{i+ i_p}[T^k] }{ {e_{1u}}_{\,i + i_p}^{\,k} } 
     
    506593This is symmetrical in $T $ and $S$, so exactly the same term arises 
    507594from the discretization of this triad's contribution towards the 
    508 RHS of \eqref{Gf_property1}. 
     595RHS of \eqref{eq:triad:iso_property3}. 
    509596\end{description} 
    510  
    511  
    512 $\ $\newline %force an empty line 
     597\subsection{Treatment of the triads at the boundaries}\label{sec:triad:iso_bdry} 
     598The triad slope can only be defined where both the grid boxes centred at 
     599the end of the arms exist. Triads that would poke up 
     600through the upper ocean surface into the atmosphere, or down into the 
     601ocean floor, must be masked out. See Fig.~\ref{fig:triad:bdry_triads}. Surface layer triads 
     602$\triad{i}{1}{R}{1/2}{-1/2}$ (magenta) and 
     603$\triad{i+1}{1}{R}{-1/2}{-1/2}$ (blue) that require density to be 
     604specified above the ocean surface are masked (Fig.~\ref{fig:triad:bdry_triads}a): this ensures that lateral 
     605tracer gradients produce no flux through the ocean surface. However, 
     606to prevent surface noise, it is customary to retain the $_{11}$ contributions towards 
     607the lateral triad fluxes $\triad[u]{i}{1}{F}{1/2}{-1/2}$ and 
     608$\triad[u]{i+1}{1}{F}{-1/2}{-1/2}$; this drives diapycnal tracer 
     609fluxes. Similar comments apply to triads that would intersect the 
     610ocean floor (Fig.~\ref{fig:triad:bdry_triads}b). Note that both near bottom 
     611triad slopes $\triad{i}{k}{R}{1/2}{1/2}$ and 
     612$\triad{i+1}{k}{R}{-1/2}{1/2}$ are masked when either of the $i,k+1$ 
     613or $i+1,k+1$ tracer points is masked, i.e.\ the $i,k+1$ $u$-point is 
     614masked. The associated lateral fluxes (grey-black dashed line) are 
     615masked if \nlv{ln\_botmix\_grif=.false.}, but left unmasked, 
     616giving bottom mixing, if \nlv{ln\_botmix\_grif=.true.}. 
     617 
     618The default option \nlv{ln\_botmix\_grif=.false.} is suitable when the 
     619bbl mixing option is enabled (\key{trabbl}, with \nlv{nn\_bbl\_ldf=1}), 
     620or  for simple idealized  problems. For setups with topography without 
     621bbl mixing, \nlv{ln\_botmix\_grif=.true.} may be necessary. 
     622% >>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     623\begin{figure}[h] \begin{center} 
     624    \includegraphics[width=0.60\textwidth]{./TexFiles/Figures/Fig_bdry_triads} 
     625    \caption{  \label{fig:triad:bdry_triads} 
     626      (a) Uppermost model layer $k=1$ with $i,1$ and $i+1,1$ tracer 
     627      points (black dots), and $i+1/2,1$ $u$-point (blue square). Triad 
     628      slopes $\triad{i}{1}{R}{1/2}{-1/2}$ (magenta) and $\triad{i+1}{1}{R}{-1/2}{-1/2}$ 
     629      (blue) poking through the ocean surface are masked (faded in 
     630      figure). However, the lateral $_{11}$ contributions towards 
     631      $\triad[u]{i}{1}{F}{1/2}{-1/2}$ and $\triad[u]{i+1}{1}{F}{-1/2}{-1/2}$ 
     632      (yellow line) are still applied, giving diapycnal diffusive 
     633      fluxes.\\ 
     634      (b) Both near bottom triad slopes $\triad{i}{k}{R}{1/2}{1/2}$ and 
     635      $\triad{i+1}{k}{R}{-1/2}{1/2}$ are masked when either of the $i,k+1$ 
     636      or $i+1,k+1$ tracer points is masked, i.e.\ the $i,k+1$ $u$-point 
     637      is masked. The associated lateral fluxes (grey-black dashed 
     638      line) are masked if \smnlv{ln\_botmix\_grif=.false.}, but left 
     639      unmasked, giving bottom mixing, if \smnlv{ln\_botmix\_grif=.true.}} 
     640 \end{center} \end{figure} 
     641% >>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     642\subsection{ Limiting of the slopes within the interior}\label{sec:triad:limit} 
     643As discussed in \S\ref{LDF_slp_iso}, iso-neutral slopes relative to 
     644geopotentials must be bounded everywhere, both for consistency with the small-slope 
     645approximation and for numerical stability \citep{Cox1987, 
     646  Griffies_Bk04}. The bound chosen in \NEMO is applied to each 
     647component of the slope separately and has a value of $1/100$ in the ocean interior. 
     648%, ramping linearly down above 70~m depth to zero at the surface 
     649It is of course relevant to the iso-neutral slopes $\tilde{r}_i=r_i+\sigma_i$ relative to 
     650geopotentials (here the $\sigma_i$ are the slopes of the coordinate surfaces relative to 
     651geopotentials) \eqref{Eq_PE_slopes_eiv} rather than the slope $r_i$ relative to coordinate 
     652surfaces, so we require 
     653\begin{equation*} 
     654  |\tilde{r}_i|\leq \tilde{r}_\mathrm{max}=0.01. 
     655\end{equation*} 
     656and then recalculate the slopes $r_i$ relative to coordinates. 
     657Each individual triad slope 
     658 \begin{equation} 
     659   \label{eq:triad:Rtilde} 
     660_i^k\tilde{\mathbb{R}}_{i_p}^{k_p} = {}_i^k\mathbb{R}_{i_p}^{k_p}  + \frac{\delta_{i+i_p}[z_T^k]}{{e_{1u}}_{\,i + i_p}^{\,k}} 
     661 \end{equation} 
     662is limited like this and then the corresponding 
     663$_i^k\mathbb{R}_{i_p}^{k_p} $ are recalculated and combined to form the fluxes. 
     664Note that where the slopes have been limited, there is now a non-zero 
     665iso-neutral density flux that drives dianeutral mixing.  In particular this iso-neutral density flux 
     666is always downwards, and so acts to reduce gravitational potential energy. 
     667\subsection{Tapering within the surface mixed layer} 
     668Additional tapering of the iso-neutral fluxes is necessary within the 
     669surface mixed layer. When the Griffies triads are used, we offer two 
     670options for this. 
     671\subsubsection{Linear slope tapering within the surface mixed layer}\label{sec:triad:lintaper} 
     672This is the option activated by the default choice 
     673\nlv{ln\_triad\_iso=.false.}. Slopes $\tilde{r}_i$ relative to 
     674geopotentials are tapered linearly from their value immediately below the mixed layer to zero at the 
     675surface, as described in option (c) of Fig.~\ref{Fig_eiv_slp}, to values 
     676\begin{subequations} 
     677  \begin{equation} 
     678   \label{eq:triad:rmtilde} 
     679     \rMLt = 
     680  -\frac{z}{h}\left.\tilde{r}_i\right|_{z=-h}\quad \text{ for  } z>-h, 
     681  \end{equation} 
     682and then the $r_i$ relative to vertical coordinate surfaces are appropriately 
     683adjusted to 
     684  \begin{equation} 
     685   \label{eq:triad:rm} 
     686 \rML =\rMLt -\sigma_i \quad \text{ for  } z>-h. 
     687  \end{equation} 
     688\end{subequations} 
     689Thus the diffusion operator within the mixed layer is given by: 
     690\begin{equation} \label{eq:triad:iso_tensor_ML} 
     691D^{lT}=\nabla {\rm {\bf .}}\left( {A^{lT}\;\Re \;\nabla T} \right) \qquad 
     692\mbox{with}\quad \;\;\Re =\left( {{\begin{array}{*{20}c} 
     693 1 \hfill & 0 \hfill & {-\rML[1]}\hfill \\ 
     694 0 \hfill & 1 \hfill & {-\rML[2]} \hfill \\ 
     695 {-\rML[1]}\hfill &   {-\rML[2]} \hfill & {\rML[1]^2+\rML[2]^2} \hfill 
     696\end{array} }} \right) 
     697\end{equation} 
     698 
     699This slope tapering gives a natural connection between tracer in the 
     700mixed-layer and in isopycnal layers immediately below, in the 
     701thermocline. It is consistent with the way the $\tilde{r}_i$ are 
     702tapered within the mixed layer (see \S\ref{sec:triad:taperskew} below) 
     703so as to ensure a uniform GM eddy-induced velocity throughout the 
     704mixed layer. However, it gives a downwards density flux and so acts so 
     705as to reduce potential energy in the same way as does the slope 
     706limiting discussed above in \S\ref{sec:triad:limit}. 
     707  
     708As in \S\ref{sec:triad:limit} above, the tapering 
     709\eqref{eq:triad:rmtilde} is applied separately to each triad 
     710$_i^k\tilde{\mathbb{R}}_{i_p}^{k_p}$, and the 
     711$_i^k\mathbb{R}_{i_p}^{k_p}$ adjusted. For clarity, we assume 
     712$z$-coordinates in the following; the conversion from 
     713$\mathbb{R}$ to $\tilde{\mathbb{R}}$ and back to $\mathbb{R}$ follows exactly as described 
     714above by \eqref{eq:triad:Rtilde}. 
     715\begin{enumerate} 
     716\item Mixed-layer depth is defined so as to avoid including regions of weak 
     717vertical stratification in the slope definition. 
     718 At each $i,j$ (simplified to $i$ in 
     719Fig.~\ref{fig:triad:MLB_triad}), we define the mixed-layer by setting 
     720the vertical index of the tracer point immediately below the mixed 
     721layer, $k_\mathrm{ML}$, as the maximum $k$ (shallowest tracer point) 
     722such that the potential density 
     723${\rho_0}_{i,k}>{\rho_0}_{i,k_{10}}+\Delta\rho_c$, where $i,k_{10}$ is 
     724the tracer gridbox within which the depth reaches 10~m. See the left 
     725side of Fig.~\ref{fig:triad:MLB_triad}. We use the $k_{10}$-gridbox 
     726instead of the surface gridbox to avoid problems e.g.\ with thin 
     727daytime mixed-layers. Currently we use the same 
     728$\Delta\rho_c=0.01\;\mathrm{kg\:m^{-3}}$ for ML triad tapering as is 
     729used to output the diagnosed mixed-layer depth 
     730$h_\mathrm{ML}=|z_{W}|_{k_\mathrm{ML}+1/2}$, the depth of the $w$-point 
     731above the $i,k_\mathrm{ML}$ tracer point. 
     732 
     733\item We define `basal' triad slopes 
     734${\:}_i{\mathbb{R}_\mathrm{base}}_{\,i_p}^{k_p}$ as the slopes 
     735of those triads whose vertical `arms' go down from the 
     736$i,k_\mathrm{ML}$ tracer point to the $i,k_\mathrm{ML}-1$ tracer point 
     737below. This is to ensure that the vertical density gradients 
     738associated with these basal triad slopes 
     739${\:}_i{\mathbb{R}_\mathrm{base}}_{\,i_p}^{k_p}$ are 
     740representative of the thermocline. The four basal triads defined in the bottom part 
     741of Fig.~\ref{fig:triad:MLB_triad} are then 
     742\begin{align} 
     743  {\:}_i{\mathbb{R}_\mathrm{base}}_{\,i_p}^{k_p} &= 
     744 {\:}^{k_\mathrm{ML}-k_p-1/2}_i{\mathbb{R}_\mathrm{base}}_{\,i_p}^{k_p}, \label{eq:triad:Rbase} 
     745\\ 
     746\intertext{with e.g.\ the green triad} 
     747{\:}_i{\mathbb{R}_\mathrm{base}}_{1/2}^{-1/2}&= 
     748{\:}^{k_\mathrm{ML}}_i{\mathbb{R}_\mathrm{base}}_{\,1/2}^{-1/2}. \notag 
     749\end{align} 
     750The vertical flux associated with each of these triads passes through the $w$-point 
     751$i,k_\mathrm{ML}-1/2$ lying \emph{below} the $i,k_\mathrm{ML}$ tracer point, 
     752so it is this depth 
     753\begin{equation} 
     754  \label{eq:triad:zbase} 
     755  {z_\mathrm{base}}_{\,i}={z_{w}}_{k_\mathrm{ML}-1/2} 
     756\end{equation} 
     757(one gridbox deeper than the 
     758diagnosed ML depth $z_\mathrm{ML})$ that sets the $h$ used to taper 
     759the slopes in \eqref{eq:triad:rmtilde}. 
     760\item Finally, we calculate the adjusted triads 
     761${\:}_i^k{\mathbb{R}_\mathrm{ML}}_{\,i_p}^{k_p}$ within the mixed 
     762layer, by multiplying the appropriate 
     763${\:}_i{\mathbb{R}_\mathrm{base}}_{\,i_p}^{k_p}$ by the ratio of 
     764the depth of the $w$-point ${z_w}_{k+k_p}$ to ${z_\mathrm{base}}_{\,i}$. For 
     765instance the green triad centred on $i,k$ 
     766\begin{align} 
     767  {\:}_i^k{\mathbb{R}_\mathrm{ML}}_{\,1/2}^{-1/2} &= 
     768\frac{{z_w}_{k-1/2}}{{z_\mathrm{base}}_{\,i}}{\:}_i{\mathbb{R}_\mathrm{base}}_{\,1/2}^{-1/2} 
     769\notag \\ 
     770\intertext{and more generally} 
     771 {\:}_i^k{\mathbb{R}_\mathrm{ML}}_{\,i_p}^{k_p} &= 
     772\frac{{z_w}_{k+k_p}}{{z_\mathrm{base}}_{\,i}}{\:}_i{\mathbb{R}_\mathrm{base}}_{\,i_p}^{k_p}.\label{eq:triad:RML} 
     773\end{align} 
     774\end{enumerate} 
     775 
     776% >>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     777\begin{figure}[h] 
     778  \fcapside {\caption{\label{fig:triad:MLB_triad} Definition of 
     779      mixed-layer depth and calculation of linearly tapered 
     780      triads. The figure shows a water column at a given $i,j$ 
     781      (simplified to $i$), with the ocean surface at the top. Tracer points are denoted by 
     782      bullets, and black lines the edges of the tracer cells; $k$ 
     783      increases upwards. \\ 
     784      \hspace{5 em}We define the mixed-layer by setting the vertical index 
     785      of the tracer point immediately below the mixed layer, 
     786      $k_\mathrm{ML}$, as the maximum $k$ (shallowest tracer point) 
     787      such that ${\rho_0}_{i,k}>{\rho_0}_{i,k_{10}}+\Delta\rho_c$, 
     788      where $i,k_{10}$ is the tracer gridbox within which the depth 
     789      reaches 10~m. We calculate the triad slopes within the mixed 
     790      layer by linearly tapering them from zero (at the surface) to 
     791      the `basal' slopes, the slopes of the four triads passing through the 
     792      $w$-point $i,k_\mathrm{ML}-1/2$ (blue square), 
     793      ${\:}_i{\mathbb{R}_\mathrm{base}}_{\,i_p}^{k_p}$. Triads with 
     794    different $i_p,k_p$, denoted by different colours, (e.g. the green 
     795    triad $i_p=1/2,k_p=-1/2$) are tapered to the appropriate basal triad.}} 
     796  {\includegraphics[width=0.60\textwidth]{./TexFiles/Figures/Fig_triad_MLB}} 
     797\end{figure} 
     798% >>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     799 
     800\subsubsection{Additional truncation of skew iso-neutral flux components} 
     801The alternative option is activated by setting \nlv{ln\_triad\_iso = 
     802  .true.}. This retains the same tapered slope $\rML$  described above for the 
     803calculation of the $_{33}$ term of the iso-neutral diffusion tensor (the 
     804vertical tracer flux driven by vertical tracer gradients), but 
     805replaces the $\rML$ in the skew term by 
     806\begin{equation} 
     807  \label{eq:triad:rm*} 
     808  \rML^*=\left.\rMLt^2\right/\tilde{r}_i-\sigma_i, 
     809\end{equation} 
     810giving a ML diffusive operator 
     811\begin{equation} \label{eq:triad:iso_tensor_ML2} 
     812D^{lT}=\nabla {\rm {\bf .}}\left( {A^{lT}\;\Re \;\nabla T} \right) \qquad 
     813\mbox{with}\quad \;\;\Re =\left( {{\begin{array}{*{20}c} 
     814 1 \hfill & 0 \hfill & {-\rML[1]^*}\hfill \\ 
     815 0 \hfill & 1 \hfill & {-\rML[2]^*} \hfill \\ 
     816 {-\rML[1]^*}\hfill &   {-\rML[2]^*} \hfill & {\rML[1]^2+\rML[2]^2} \hfill \\ 
     817\end{array} }} \right). 
     818\end{equation} 
     819This operator 
     820\footnote{To ensure good behaviour where horizontal density 
     821  gradients are weak, we in fact follow \citet{Gerdes1991} and set 
     822$\rML^*=\mathrm{sgn}(\tilde{r}_i)\min(|\rMLt^2/\tilde{r}_i|,|\tilde{r}_i|)-\sigma_i$.} 
     823then has the property it gives no vertical density flux, and so does 
     824not change the potential energy. 
     825This approach is similar to multiplying the iso-neutral  diffusion 
     826coefficient by $\tilde{r}_\mathrm{max}^{-2}\tilde{r}_i^{-2}$ for steep 
     827slopes, as suggested by \citet{Gerdes1991} (see also \citet{Griffies_Bk04}). 
     828Again it is applied separately to each triad $_i^k\mathbb{R}_{i_p}^{k_p}$ 
     829 
     830In practice, this approach gives weak vertical tracer fluxes through 
     831the mixed-layer, as well as vanishing density fluxes. While it is 
     832theoretically advantageous that it does not change the potential 
     833energy, it may give a discontinuity between the 
     834fluxes within the mixed-layer (purely horizontal) and just below (along 
     835iso-neutral surfaces). 
     836% This may give strange looking results, 
     837% particularly where the mixed-layer depth varies strongly laterally. 
    513838% ================================================================ 
    514839% Skew flux formulation for Eddy Induced Velocity : 
    515840% ================================================================ 
    516 \section{ Eddy induced velocity and Skew flux formulation} 
    517  
    518 When Gent and McWilliams's [1990] diffusion is used (\key{traldf\_eiv} defined),  
    519 an additional advection term is added. The associated velocity is the so called  
     841\section{Eddy induced advection and its formulation as a skew flux} 
     842 
     843\subsection{The continuous skew flux formulation}\label{sec:triad:continuous-skew-flux} 
     844 
     845 When Gent and McWilliams's [1990] diffusion is used (\key{traldf\_eiv} defined), 
     846an additional advection term is added. The associated velocity is the so called 
    520847eddy induced velocity, the formulation of which depends on the slopes of iso- 
    521 neutral surfaces. Contrary to the case of iso-neutral mixing, the slopes used  
    522 here are referenced to the geopotential surfaces, $i.e.$ \eqref{Eq_ldfslp_geo}  
     848neutral surfaces. Contrary to the case of iso-neutral mixing, the slopes used 
     849here are referenced to the geopotential surfaces, $i.e.$ \eqref{Eq_ldfslp_geo} 
    523850is used in $z$-coordinate, and the sum \eqref{Eq_ldfslp_geo} 
    524 + \eqref{Eq_ldfslp_iso} in $z^*$ or $s$-coordinates.  
    525  
    526 The eddy induced velocity is given by:  
    527 \begin{equation} \label{Eq_eiv_v} 
     851+ \eqref{Eq_ldfslp_iso} in $z^*$ or $s$-coordinates. 
     852 
     853The eddy induced velocity is given by: 
     854\begin{equation} \label{eq:triad:eiv_v} 
    528855\begin{split} 
    529  u^* & = - \frac{1}{e_{2}e_{3}}\;          \partial_k \left( e_{2} \, A_{e} \; r_i \right)   \\ 
    530  v^* & = - \frac{1}{e_{1}e_{3}}\;          \partial_k \left( e_{1} \, A_{e} \; r_j \right)   \\ 
    531 w^* & =    \frac{1}{e_{1}e_{2}}\; \left\{ \partial_i  \left( e_{2} \, A_{e} \; r_i \right)  
    532                          + \partial_j  \left( e_{1} \, A_{e} \;r_j \right) \right\} \\ 
     856 u^* & = - \frac{1}{e_{3}}\;          \partial_k \left( A_{e} \; \tilde{r}_1 \right)   \\ 
     857 v^* & = - \frac{1}{e_{3}}\;          \partial_k \left( A_{e} \; \tilde{r}_2 \right)   \\ 
     858w^* & =    \frac{1}{e_{1}e_{2}}\; \left\{ \partial_i  \left( e_{2} \, A_{e} \; \tilde{r}_1 \right) 
     859                         + \partial_j  \left( e_{1} \, A_{e} \;\tilde{r}_2 \right) \right\} 
    533860\end{split} 
    534861\end{equation} 
    535 where $A_{e}$ is the eddy induced velocity coefficient, and $r_i$ and $r_j$ the slopes between the iso-neutral and the geopotential surfaces.  
    536  
    537 The traditional way to implement this additional advection is to add it to the Eulerian  
    538 velocity prior to computing the tracer advection. This allows us to take advantage of  
    539 all the advection schemes offered for the tracers (see \S\ref{TRA_adv}) and not just  
    540 a $2^{nd}$ order advection scheme. This is particularly useful for passive tracers  
    541 where \emph{positivity} of the advection scheme is of paramount importance.  
    542  
    543 \citet{Griffies_JPO98} introduces another way to implement the eddy induced advection,  
    544 the so-called skew form. It is based on a transformation of the advective fluxes  
    545 using the non-divergent nature of the eddy induced velocity.  
    546 For example in the (\textbf{i},\textbf{k}) plane, the tracer advective fluxes can be  
     862where $A_{e}$ is the eddy induced velocity coefficient, and $\tilde{r}_1$ and $\tilde{r}_2$ the slopes between the iso-neutral and the geopotential surfaces. 
     863 
     864The traditional way to implement this additional advection is to add it to the Eulerian 
     865velocity prior to computing the tracer advection. This allows us to take advantage of 
     866all the advection schemes offered for the tracers (see \S\ref{TRA_adv}) and not just 
     867a $2^{nd}$ order advection scheme. This is particularly useful for passive tracers 
     868where \emph{positivity} of the advection scheme is of paramount importance. 
     869 
     870\citet{Griffies_JPO98} introduces another way to implement the eddy induced advection, 
     871the so-called skew form. It is based on a transformation of the advective fluxes 
     872using the non-divergent nature of the eddy induced velocity. 
     873For example in the (\textbf{i},\textbf{k}) plane, the tracer advective 
     874fluxes per unit area in $ijk$ space can be 
    547875transformed as follows: 
    548876\begin{flalign*} 
    549877\begin{split} 
    550 \textbf{F}_{eiv}^T =  
    551 \begin{pmatrix}  
     878\textbf{F}_\mathrm{eiv}^T = 
     879\begin{pmatrix} 
    552880           {e_{2}\,e_{3}\;  u^*}       \\ 
    553881      {e_{1}\,e_{2}\; w^*}  \\ 
    554882\end{pmatrix}   \;   T 
    555883&= 
    556 \begin{pmatrix}  
    557            { - \partial_k \left( e_{2} \, A_{e} \; r_i \right) \; T \;}       \\ 
    558       {+ \partial_i  \left( e_{2} \, A_{e} \; r_i \right) \; T \;}    \\ 
     884\begin{pmatrix} 
     885           { - \partial_k \left( e_{2} \, A_{e} \; \tilde{r}_1 \right) \; T \;}     \\ 
     886      {+ \partial_i  \left( e_{2} \, A_{e} \; \tilde{r}_1 \right) \; T \;}  \\ 
    559887\end{pmatrix}        \\ 
    560 &=        
    561 \begin{pmatrix}  
    562            { - \partial_k \left( e_{2} \, A_{e} \; r_i  \; T \right) \;}  \\ 
    563       {+ \partial_i  \left( e_{2} \, A_{e} \; r_i  \; T \right) \;}   \\ 
    564 \end{pmatrix}         
    565  +  
    566 \begin{pmatrix}  
    567            {+ e_{2} \, A_{e} \; r_i  \; \partial_k T}  \\ 
    568       { - e_{2} \, A_{e} \; r_i  \; \partial_i  T}  \\ 
    569 \end{pmatrix}    
     888&= 
     889\begin{pmatrix} 
     890           { - \partial_k \left( e_{2} \, A_{e} \; \tilde{r}_1  \; T \right) \;}  \\ 
     891      {+ \partial_i  \left( e_{2} \, A_{e} \; \tilde{r}_1  \; T \right) \;}    \\ 
     892\end{pmatrix} 
     893 + 
     894\begin{pmatrix} 
     895           {+ e_{2} \, A_{e} \; \tilde{r}_1  \; \partial_k T}  \\ 
     896      { - e_{2} \, A_{e} \; \tilde{r}_1  \; \partial_i  T}   \\ 
     897\end{pmatrix} 
    570898\end{split} 
    571899\end{flalign*} 
    572 and since the eddy induces velocity field is no-divergent, we end up with the skew  
    573 form of the eddy induced advective fluxes: 
    574 \begin{equation} \label{Eq_eiv_skew_continuous} 
    575 \textbf{F}_{eiv}^T = \begin{pmatrix}  
    576            {+ e_{2} \, A_{e} \; r_i  \; \partial_k T}   \\ 
    577       { - e_{2} \, A_{e} \; r_i  \; \partial_i  T}  \\ 
     900and since the eddy induced velocity field is non-divergent, we end up with the skew 
     901form of the eddy induced advective fluxes per unit area in $ijk$ space: 
     902\begin{equation} \label{eq:triad:eiv_skew_ijk} 
     903\textbf{F}_\mathrm{eiv}^T = \begin{pmatrix} 
     904           {+ e_{2} \, A_{e} \; \tilde{r}_1  \; \partial_k T}   \\ 
     905      { - e_{2} \, A_{e} \; \tilde{r}_1  \; \partial_i  T}   \\ 
    578906                                 \end{pmatrix} 
    579907\end{equation} 
    580 The tendency associated with eddy induced velocity is then simply the divergence  
    581 of the \eqref{Eq_eiv_skew_continuous} fluxes. It naturally conserves the tracer  
    582 content, as it is expressed in flux form. It also preserve the tracer variance. 
    583  
    584 The discrete form of  \eqref{Eq_eiv_skew_continuous} using the slopes \eqref{Gf_slopes} and defining $A_e$ at $T$-point is then given by: 
    585 \begin{flalign} \label{Eq_eiv_skew}   \begin{split} 
    586 \textbf{F}_{eiv}^T   \equiv                                    
    587                         \sum_{\substack{i_p,\,k_p}} \begin{pmatrix}  
    588 +{e_{2u}}_{i+1/2-i_p}^{k}                                    \ {A_{e}}_{i+1/2-i_p}^{k}  
    589 \ \ { _{i+1/2-i_p}^k \mathbb{R}_{i_p}^{k_p} }    \ \ \delta_{k+k_p}[T_{i+1/2-i_p}]      \\ 
    590     \\ 
    591 - {e_{2u}}_i^{k+1/2-k_p}                                      \ {A_{e}}_i^{k+1/2-k_p}  
    592 \ \ { _i^{k+1/2-k_p} \mathbb{R}_{i_p}^{k_p} }    \ \delta_{i+i_p}[T^{k+1/2-k_p}]    \\    
    593                                                                        \end{pmatrix}    
    594 \end{split}   \end{flalign} 
    595 Note that \eqref{Eq_eiv_skew} is valid in $z$-coordinate with or without partial cells. In $z^*$ or $s$-coordinate, the the slope between the level and the geopotential surfaces must be added to $\mathbb{R}$ for the discret form to be exact.  
    596  
    597 Such a choice of discretisation is consistent with the iso-neutral operator as it uses the same definition for the slopes. It also ensures the conservation of the tracer variance (see Appendix \ref{Apdx_eiv_skew}), $i.e.$ it does not include a diffusive component but is a `pure' advection term. 
    598  
    599  
    600  
     908The total fluxes per unit physical area are then 
     909\begin{equation}\label{eq:triad:eiv_skew_physical} 
     910\begin{split} 
     911 f^*_1 & = \frac{1}{e_{3}}\; A_{e} \; \tilde{r}_1 \partial_k T   \\ 
     912 f^*_2 & = \frac{1}{e_{3}}\; A_{e} \; \tilde{r}_2 \partial_k T   \\ 
     913 f^*_3 & =  -\frac{1}{e_{1}e_{2}}\; A_{e} \left\{ e_{2} \tilde{r}_1 \partial_i T 
     914   + e_{1} \tilde{r}_2 \partial_j T \right\}. \\ 
     915\end{split} 
     916\end{equation} 
     917Note that Eq.~ \eqref{eq:triad:eiv_skew_physical} takes the same form whatever the 
     918vertical coordinate, though of course the slopes 
     919$\tilde{r}_i$ are relative to geopotentials. 
     920The tendency associated with eddy induced velocity is then simply the convergence 
     921of the fluxes (\ref{eq:triad:eiv_skew_ijk}, \ref{eq:triad:eiv_skew_physical}), so 
     922\begin{equation} \label{eq:triad:skew_eiv_conv} 
     923\frac{\partial T}{\partial t}= -\frac{1}{e_1 \, e_2 \, e_3 }      \left[ 
     924  \frac{\partial}{\partial i} \left( e_2  A_{e} \; \tilde{r}_1 \partial_k T\right) 
     925  + \frac{\partial}{\partial j} \left( e_1  A_{e} \; 
     926    \tilde{r}_2 \partial_k T\right) 
     927 -  \frac{\partial}{\partial k} A_{e} \left( e_{2} \tilde{r}_1 \partial_i T 
     928   + e_{1} \tilde{r}_2 \partial_j T \right)  \right] 
     929\end{equation} 
     930 It naturally conserves the tracer content, as it is expressed in flux 
     931 form. Since it has the same divergence as the advective form it also 
     932 preserves the tracer variance. 
     933 
     934\subsection{The discrete skew flux formulation} 
     935The skew fluxes in (\ref{eq:triad:eiv_skew_physical}, \ref{eq:triad:eiv_skew_ijk}), like the off-diagonal terms 
     936(\ref{eq:triad:i13c}, \ref{eq:triad:i31c}) of the small angle diffusion tensor, are best 
     937expressed in terms of the triad slopes, as in Fig.~\ref{fig:triad:ISO_triad} 
     938and Eqs~(\ref{eq:triad:i13}, \ref{eq:triad:i31}); but now in terms of the triad slopes 
     939$\tilde{\mathbb{R}}$ relative to geopotentials instead of the 
     940$\mathbb{R}$ relative to coordinate surfaces. The discrete form of 
     941\eqref{eq:triad:eiv_skew_ijk} using the slopes \eqref{eq:triad:R} and 
     942defining $A_e$ at $T$-points is then given by: 
     943 
     944 
     945\begin{subequations}\label{eq:triad:allskewflux} 
     946  \begin{flalign}\label{eq:triad:vect_skew_flux} 
     947    \vect{F}_\mathrm{eiv}(T) &\equiv 
     948    \sum_{\substack{i_p,\,k_p}} 
     949    \begin{pmatrix} 
     950      {_{i+1/2-i_p}^k {\mathbb{S}_u}_{i_p}^{k_p} } (T)      \\ 
     951      \\ 
     952      {_i^{k+1/2-k_p} {\mathbb{S}_w}_{i_p}^{k_p} } (T)      \\ 
     953    \end{pmatrix}, 
     954  \end{flalign} 
     955  where the skew flux in the $i$-direction associated with a given 
     956  triad is (\ref{eq:triad:latflux-triad}, \ref{eq:triad:triadfluxu}): 
     957  \begin{align} 
     958    \label{eq:triad:skewfluxu} 
     959    _i^k {\mathbb{S}_u}_{i_p}^{k_p} (T) &= + \quarter {A_e}_i^k{ 
     960      \:}\frac{{b_u}_{i+i_p}^k}{{e_{1u}}_{\,i + i_p}^{\,k}} 
     961     \ {_i^k\tilde{\mathbb{R}}_{i_p}^{k_p}} \ 
     962      \frac{ \delta_{k+k_p} [T^i] }{{e_{3w}}_{\,i}^{\,k+k_p} }, 
     963   \\ 
     964    \intertext{and \eqref{eq:triad:triadfluxw} in the $k$-direction, changing the sign 
     965      to be consistent with \eqref{eq:triad:eiv_skew_ijk}:} 
     966    _i^k {\mathbb{S}_w}_{i_p}^{k_p} (T) 
     967    &= -\quarter {A_e}_i^k{\: }\frac{{b_u}_{i+i_p}^k}{{e_{3w}}_{\,i}^{\,k+k_p}} 
     968     {_i^k\tilde{\mathbb{R}}_{i_p}^{k_p}}\frac{ \delta_{i+ i_p}[T^k] }{ {e_{1u}}_{\,i + i_p}^{\,k} }.\label{eq:triad:skewfluxw} 
     969  \end{align} 
     970\end{subequations} 
     971 
     972Such a discretisation is consistent with the iso-neutral 
     973operator as it uses the same definition for the slopes.  It also 
     974ensures the following two key properties. 
     975\subsubsection{No change in tracer variance} 
     976The discretization conserves tracer variance, $i.e.$ it does not 
     977include a diffusive component but is a `pure' advection term. This can 
     978be seen either from Appendix \ref{Apdx_eiv_skew} or by considering the 
     979fluxes associated with a given triad slope 
     980$_i^k{\mathbb{R}}_{i_p}^{k_p} (T)$. For, following 
     981\S\ref{sec:triad:variance} and \eqref{eq:triad:dvar_iso_i}, the 
     982associated horizontal skew-flux $_i^k{\mathbb{S}_u}_{i_p}^{k_p} (T)$ 
     983drives a net rate of change of variance, summed over the two 
     984$T$-points $i+i_p-\half,k$ and $i+i_p+\half,k$, of 
     985\begin{equation} 
     986\label{eq:triad:dvar_eiv_i} 
     987  _i^k{\mathbb{S}_u}_{i_p}^{k_p} (T)\,\delta_{i+ i_p}[T^k], 
     988\end{equation} 
     989while the associated vertical skew-flux gives a variance change summed over the 
     990$T$-points $i,k+k_p-\half$ (above) and $i,k+k_p+\half$ (below) of 
     991\begin{equation} 
     992\label{eq:triad:dvar_eiv_k} 
     993  _i^k{\mathbb{S}_w}_{i_p}^{k_p} (T) \,\delta_{k+ k_p}[T^i]. 
     994\end{equation} 
     995Inspection of the definitions (\ref{eq:triad:skewfluxu}, \ref{eq:triad:skewfluxw}) 
     996shows that these two variance changes (\ref{eq:triad:dvar_eiv_i}, \ref{eq:triad:dvar_eiv_k}) 
     997sum to zero. Hence the two fluxes associated with each triad make no 
     998net contribution to the variance budget. 
     999 
     1000\subsubsection{Reduction in gravitational PE} 
     1001The vertical density flux associated with the vertical skew-flux 
     1002always has the same sign as the vertical density gradient; thus, so 
     1003long as the fluid is stable (the vertical density gradient is 
     1004negative) the vertical density flux is negative (downward) and hence 
     1005reduces the gravitational PE. 
     1006 
     1007For the change in gravitational PE driven by the $k$-flux is 
     1008\begin{align} 
     1009  \label{eq:triad:vert_densityPE} 
     1010  g {e_{3w}}_{\,i}^{\,k+k_p}{\mathbb{S}_w}_{i_p}^{k_p} (\rho) 
     1011  &=g {e_{3w}}_{\,i}^{\,k+k_p}\left[-\alpha _i^k {\:}_i^k 
     1012    {\mathbb{S}_w}_{i_p}^{k_p} (T) + \beta_i^k {\:}_i^k 
     1013    {\mathbb{S}_w}_{i_p}^{k_p} (S) \right]. \notag \\ 
     1014\intertext{Substituting  ${\:}_i^k {\mathbb{S}_w}_{i_p}^{k_p}$ from 
     1015  \eqref{eq:triad:skewfluxw}, gives} 
     1016% and separating out 
     1017% $\rtriadt{R}=\rtriad{R} + \delta_{i+i_p}[z_T^k]$, 
     1018% gives two terms. The 
     1019% first $\rtriad{R}$ term (the only term for $z$-coordinates) is: 
     1020 &=-\quarter g{A_e}_i^k{\: }{b_u}_{i+i_p}^k {_i^k\tilde{\mathbb{R}}_{i_p}^{k_p}} 
     1021\frac{ -\alpha _i^k\delta_{i+ i_p}[T^k]+ \beta_i^k\delta_{i+ i_p}[S^k]} { {e_{1u}}_{\,i + i_p}^{\,k} } \notag \\ 
     1022 &=+\quarter g{A_e}_i^k{\: }{b_u}_{i+i_p}^k 
     1023     \left({_i^k\mathbb{R}_{i_p}^{k_p}}+\frac{\delta_{i+i_p}[z_T^k]}{{e_{1u}}_{\,i + i_p}^{\,k}}\right) {_i^k\mathbb{R}_{i_p}^{k_p}} 
     1024\frac{-\alpha_i^k \delta_{k+ k_p}[T^i]+ \beta_i^k\delta_{k+ k_p}[S^i]} {{e_{3w}}_{\,i}^{\,k+k_p}}, 
     1025\end{align} 
     1026using the definition of the triad slope $\rtriad{R}$, 
     1027\eqref{eq:triad:R} to express $-\alpha _i^k\delta_{i+ i_p}[T^k]+ 
     1028\beta_i^k\delta_{i+ i_p}[S^k]$ in terms of  $-\alpha_i^k \delta_{k+ 
     1029  k_p}[T^i]+ \beta_i^k\delta_{k+ k_p}[S^i]$. 
     1030 
     1031Where the coordinates slope, the $i$-flux gives a PE change 
     1032\begin{multline} 
     1033  \label{eq:triad:lat_densityPE} 
     1034 g \delta_{i+i_p}[z_T^k] 
     1035\left[ 
     1036-\alpha _i^k {\:}_i^k {\mathbb{S}_u}_{i_p}^{k_p} (T) + \beta_i^k {\:}_i^k {\mathbb{S}_u}_{i_p}^{k_p} (S) 
     1037\right] \\ 
     1038= +\quarter g{A_e}_i^k{\: }{b_u}_{i+i_p}^k 
     1039     \frac{\delta_{i+i_p}[z_T^k]}{{e_{1u}}_{\,i + i_p}^{\,k}} 
     1040\left({_i^k\mathbb{R}_{i_p}^{k_p}}+\frac{\delta_{i+i_p}[z_T^k]}{{e_{1u}}_{\,i + i_p}^{\,k}}\right) 
     1041\frac{-\alpha_i^k \delta_{k+ k_p}[T^i]+ \beta_i^k\delta_{k+ k_p}[S^i]} {{e_{3w}}_{\,i}^{\,k+k_p}}, 
     1042\end{multline} 
     1043(using \eqref{eq:triad:skewfluxu}) and so the total PE change 
     1044\eqref{eq:triad:vert_densityPE} + \eqref{eq:triad:lat_densityPE} associated with the triad fluxes is 
     1045\begin{multline} 
     1046  \label{eq:triad:tot_densityPE} 
     1047  g{e_{3w}}_{\,i}^{\,k+k_p}{\mathbb{S}_w}_{i_p}^{k_p} (\rho) + 
     1048g\delta_{i+i_p}[z_T^k] {\:}_i^k {\mathbb{S}_u}_{i_p}^{k_p} (\rho) \\ 
     1049= +\quarter g{A_e}_i^k{\: }{b_u}_{i+i_p}^k 
     1050     \left({_i^k\mathbb{R}_{i_p}^{k_p}}+\frac{\delta_{i+i_p}[z_T^k]}{{e_{1u}}_{\,i + i_p}^{\,k}}\right)^2 
     1051\frac{-\alpha_i^k \delta_{k+ k_p}[T^i]+ \beta_i^k\delta_{k+ k_p}[S^i]} {{e_{3w}}_{\,i}^{\,k+k_p}}. 
     1052\end{multline} 
     1053Where the fluid is stable, with $-\alpha_i^k \delta_{k+ k_p}[T^i]+ 
     1054\beta_i^k\delta_{k+ k_p}[S^i]<0$, this PE change is negative. 
     1055 
     1056\subsection{Treatment of the triads at the boundaries}\label{sec:triad:skew_bdry} 
     1057Triad slopes \rtriadt{R} used for the calculation of the eddy-induced skew-fluxes 
     1058are masked at the boundaries in exactly the same way as are the triad 
     1059slopes \rtriad{R} used for the iso-neutral diffusive fluxes, as 
     1060described in \S\ref{sec:triad:iso_bdry} and 
     1061Fig.~\ref{fig:triad:bdry_triads}. Thus surface layer triads 
     1062$\triadt{i}{1}{R}{1/2}{-1/2}$ and $\triadt{i+1}{1}{R}{-1/2}{-1/2}$ are 
     1063masked, and both near bottom triad slopes $\triadt{i}{k}{R}{1/2}{1/2}$ 
     1064and $\triadt{i+1}{k}{R}{-1/2}{1/2}$ are masked when either of the 
     1065$i,k+1$ or $i+1,k+1$ tracer points is masked, i.e.\ the $i,k+1$ 
     1066$u$-point is masked. The namelist parameter \nlv{ln\_botmix\_grif} has 
     1067no effect on the eddy-induced skew-fluxes. 
     1068 
     1069\subsection{ Limiting of the slopes within the interior}\label{sec:triad:limitskew} 
     1070Presently, the iso-neutral slopes $\tilde{r}_i$ relative 
     1071to geopotentials are limited to be less than $1/100$, exactly as in 
     1072calculating the iso-neutral diffusion, \S \ref{sec:triad:limit}. Each 
     1073individual triad \rtriadt{R} is so limited. 
     1074 
     1075\subsection{Tapering within the surface mixed layer}\label{sec:triad:taperskew} 
     1076The slopes $\tilde{r}_i$ relative to 
     1077geopotentials (and thus the individual triads \rtriadt{R}) are always tapered linearly from their value immediately below the mixed layer to zero at the 
     1078surface \eqref{eq:triad:rmtilde}, as described in \S\ref{sec:triad:lintaper}. This is 
     1079option (c) of Fig.~\ref{Fig_eiv_slp}. This linear tapering for the 
     1080slopes used to calculate the eddy-induced fluxes is 
     1081unaffected by the value of \nlv{ln\_triad\_iso}. 
     1082 
     1083The justification for this linear slope tapering is that, for $A_e$ 
     1084that is constant or varies only in the horizontal (the most commonly 
     1085used options in \NEMO: see \S\ref{LDF_coef}), it is 
     1086equivalent to a horizontal eiv (eddy-induced velocity) that is uniform 
     1087within the mixed layer \eqref{eq:triad:eiv_v}. This ensures that the 
     1088eiv velocities do not restratify the mixed layer \citep{Treguier1997, 
     1089  Danabasoglu_al_2008}. Equivantly, in terms 
     1090of the skew-flux formulation we use here, the 
     1091linear slope tapering within the mixed-layer gives a linearly varying 
     1092vertical flux, and so a tracer convergence uniform in depth (the 
     1093horizontal flux convergence is relatively insignificant within the mixed-layer). 
     1094 
     1095\subsection{Streamfunction diagnostics}\label{sec:triad:sfdiag} 
     1096Where the namelist parameter \nlv{ln\_botmix\_grif=.true.}, diagnosed 
     1097mean eddy-induced velocities are output. Each time step, 
     1098streamfunctions are calculated in the $i$-$k$ and $j$-$k$ planes at 
     1099$uw$ (integer +1/2 $i$, integer $j$, integer +1/2 $k$) and $vw$ 
     1100(integer $i$, integer +1/2 $j$, integer +1/2 $k$) points (see Table 
     1101\ref{Tab_cell}) respectively. We follow \citep{Griffies_Bk04} and 
     1102calculate the streamfunction at a given $uw$-point from the 
     1103surrounding four triads according to: 
     1104\begin{equation} 
     1105  \label{eq:triad:sfdiagi} 
     1106  {\psi_{[i]}}_{i+1/2}^{k+1/2}={\quarter}\sum_{\substack{i_p,\,k_p}} 
     1107  {A_e}_{i+1/2-i_p}^{k+1/2-k_p}\:\triadd{i+1/2-i_p}{k+1/2-k_p}{R}{i_p}{k_p} 
     1108\end{equation} 
    6011109 
    6021110\newpage      %force an empty line 
     
    6081116 
    6091117 
    610 Demonstration for the conservation of the tracer variance in the (\textbf{i},\textbf{j}) plane.  
     1118Demonstration for the conservation of the tracer variance in the (\textbf{i},\textbf{j}) plane. 
    6111119 
    6121120This have to be moved in an Appendix. 
     
    6141122The continuous property to be demonstrated is : 
    6151123\begin{align*} 
    616 \int_D \nabla \cdot \textbf{F}_{eiv}(T) \; T \;dv  \equiv 0 
     1124\int_D \nabla \cdot \textbf{F}_\mathrm{eiv}(T) \; T \;dv  \equiv 0 
    6171125\end{align*} 
    618 The discrete form of its left hand side is obtained using \eqref{Eq_eiv_skew} 
     1126The discrete form of its left hand side is obtained using \eqref{eq:triad:allskewflux} 
    6191127\begin{align*} 
    6201128 \sum\limits_{i,k} \sum_{\substack{i_p,\,k_p}}  \Biggl\{   \;\; 
    621  \delta_i  &\left[                                                     
    622 {e_{2u}}_{i+i_p+1/2}^{k}                                  \;\ \ {A_{e}}_{i+i_p+1/2}^{k}  
    623 \ \ \ { _{i+i_p+1/2}^k \mathbb{R}_{-i_p}^{k_p} }   \quad \delta_{k+k_p}[T_{i+i_p+1/2}]          
     1129 \delta_i  &\left[ 
     1130{e_{2u}}_{i+i_p+1/2}^{k}                                  \;\ \ {A_{e}}_{i+i_p+1/2}^{k} 
     1131\ \ \ { _{i+i_p+1/2}^k \mathbb{R}_{-i_p}^{k_p} }   \quad \delta_{k+k_p}[T_{i+i_p+1/2}] 
    6241132   \right] \; T_i^k      \\ 
    625 - \delta_k &\left[  
    626 {e_{2u}}_i^{k+k_p+1/2}                                     \ \ {A_{e}}_i^{k+k_p+1/2}  
    627 \ \ { _i^{k+k_p+1/2} \mathbb{R}_{i_p}^{-k_p} }   \ \ \delta_{i+i_p}[T^{k+k_p+1/2}]    
    628    \right] \; T_i^k      \         \Biggr\}    
     1133- \delta_k &\left[ 
     1134{e_{2u}}_i^{k+k_p+1/2}                                     \ \ {A_{e}}_i^{k+k_p+1/2} 
     1135\ \ { _i^{k+k_p+1/2} \mathbb{R}_{i_p}^{-k_p} }   \ \ \delta_{i+i_p}[T^{k+k_p+1/2}] 
     1136   \right] \; T_i^k      \         \Biggr\} 
    6291137\end{align*} 
    6301138apply the adjoint of delta operator, it becomes 
    6311139\begin{align*} 
    6321140 \sum\limits_{i,k} \sum_{\substack{i_p,\,k_p}}  \Biggl\{   \;\; 
    633   &\left(                                                     
    634 {e_{2u}}_{i+i_p+1/2}^{k}                                  \;\ \ {A_{e}}_{i+i_p+1/2}^{k}  
    635 \ \ \ { _{i+i_p+1/2}^k \mathbb{R}_{-i_p}^{k_p} }   \quad \delta_{k+k_p}[T_{i+i_p+1/2}]          
     1141  &\left( 
     1142{e_{2u}}_{i+i_p+1/2}^{k}                                  \;\ \ {A_{e}}_{i+i_p+1/2}^{k} 
     1143\ \ \ { _{i+i_p+1/2}^k \mathbb{R}_{-i_p}^{k_p} }   \quad \delta_{k+k_p}[T_{i+i_p+1/2}] 
    6361144   \right) \; \delta_{i+1/2}[T^{k}]      \\ 
    637 - &\left(  
    638 {e_{2u}}_i^{k+k_p+1/2}                                     \ \ {A_{e}}_i^{k+k_p+1/2}  
    639 \ \ { _i^{k+k_p+1/2} \mathbb{R}_{i_p}^{-k_p} }   \ \ \delta_{i+i_p}[T^{k+k_p+1/2}]    
    640      \right) \; \delta_{k+1/2}[T_{i}]       \         \Biggr\}        
     1145- &\left( 
     1146{e_{2u}}_i^{k+k_p+1/2}                                     \ \ {A_{e}}_i^{k+k_p+1/2} 
     1147\ \ { _i^{k+k_p+1/2} \mathbb{R}_{i_p}^{-k_p} }   \ \ \delta_{i+i_p}[T^{k+k_p+1/2}] 
     1148     \right) \; \delta_{k+1/2}[T_{i}]       \         \Biggr\} 
    6411149\end{align*} 
    6421150Expending the summation on $i_p$ and $k_p$, it becomes: 
    6431151\begin{align*} 
    644  \begin{matrix}   
    645 &\sum\limits_{i,k}   \Bigl\{  
    646   &+{e_{2u}}_{i+1}^{k}                             &{A_{e}}_{i+1    }^{k}  
     1152 \begin{matrix} 
     1153&\sum\limits_{i,k}   \Bigl\{ 
     1154  &+{e_{2u}}_{i+1}^{k}                             &{A_{e}}_{i+1    }^{k} 
    6471155  &\ {_{i+1}^k \mathbb{R}_{- 1/2}^{-1/2}} &\delta_{k-1/2}[T_{i+1}]    &\delta_{i+1/2}[T^{k}]   &\\ 
    648 &&+{e_{2u}}_i^{k\ \ \ \:}                            &{A_{e}}_{i}^{k\ \ \ \:}       
     1156&&+{e_{2u}}_i^{k\ \ \ \:}                            &{A_{e}}_{i}^{k\ \ \ \:} 
    6491157  &\ {\ \ \;_i^k \mathbb{R}_{+1/2}^{-1/2}}  &\delta_{k-1/2}[T_{i\ \ \ \;}]  &\delta_{i+1/2}[T^{k}] &\\ 
    650 &&+{e_{2u}}_{i+1}^{k}                             &{A_{e}}_{i+1    }^{k}  
     1158&&+{e_{2u}}_{i+1}^{k}                             &{A_{e}}_{i+1    }^{k} 
    6511159  &\ {_{i+1}^k \mathbb{R}_{- 1/2}^{+1/2}} &\delta_{k+1/2}[T_{i+1}]     &\delta_{i+1/2}[T^{k}] &\\ 
    652 &&+{e_{2u}}_i^{k\ \ \ \:}                            &{A_{e}}_{i}^{k\ \ \ \:}        
     1160&&+{e_{2u}}_i^{k\ \ \ \:}                            &{A_{e}}_{i}^{k\ \ \ \:} 
    6531161    &\ {\ \ \;_i^k \mathbb{R}_{+1/2}^{+1/2}} &\delta_{k+1/2}[T_{i\ \ \ \;}] &\delta_{i+1/2}[T^{k}] &\\ 
    6541162% 
    655 &&-{e_{2u}}_i^{k+1}                                &{A_{e}}_i^{k+1}  
    656   &{_i^{k+1} \mathbb{R}_{-1/2}^{- 1/2}}   &\delta_{i-1/2}[T^{k+1}]      &\delta_{k+1/2}[T_{i}] &\\    
    657 &&-{e_{2u}}_i^{k\ \ \ \:}                             &{A_{e}}_i^{k\ \ \ \:}  
     1163&&-{e_{2u}}_i^{k+1}                                &{A_{e}}_i^{k+1} 
     1164  &{_i^{k+1} \mathbb{R}_{-1/2}^{- 1/2}}   &\delta_{i-1/2}[T^{k+1}]      &\delta_{k+1/2}[T_{i}] &\\ 
     1165&&-{e_{2u}}_i^{k\ \ \ \:}                             &{A_{e}}_i^{k\ \ \ \:} 
    6581166  &{\ \ \;_i^k  \mathbb{R}_{-1/2}^{+1/2}}   &\delta_{i-1/2}[T^{k\ \ \ \:}]  &\delta_{k+1/2}[T_{i}] &\\ 
    659 &&-{e_{2u}}_i^{k+1    }                             &{A_{e}}_i^{k+1}  
    660   &{_i^{k+1} \mathbb{R}_{+1/2}^{- 1/2}}   &\delta_{i+1/2}[T^{k+1}]      &\delta_{k+1/2}[T_{i}] &\\    
    661 &&-{e_{2u}}_i^{k\ \ \ \:}                             &{A_{e}}_i^{k\ \ \ \:}  
    662   &{\ \ \;_i^k  \mathbb{R}_{+1/2}^{+1/2}}   &\delta_{i+1/2}[T^{k\ \ \ \:}]  &\delta_{k+1/2}[T_{i}]  
     1167&&-{e_{2u}}_i^{k+1    }                             &{A_{e}}_i^{k+1} 
     1168  &{_i^{k+1} \mathbb{R}_{+1/2}^{- 1/2}}   &\delta_{i+1/2}[T^{k+1}]      &\delta_{k+1/2}[T_{i}] &\\ 
     1169&&-{e_{2u}}_i^{k\ \ \ \:}                             &{A_{e}}_i^{k\ \ \ \:} 
     1170  &{\ \ \;_i^k  \mathbb{R}_{+1/2}^{+1/2}}   &\delta_{i+1/2}[T^{k\ \ \ \:}]  &\delta_{k+1/2}[T_{i}] 
    6631171&\Bigr\}  \\ 
    664 \end{matrix}    
     1172\end{matrix} 
    6651173\end{align*} 
    666 The two terms associated with the triad ${_i^k \mathbb{R}_{+1/2}^{+1/2}}$ are the  
    667 same but of opposite signs, they cancel out.  
    668 Exactly the same thing occurs for the triad ${_i^k \mathbb{R}_{-1/2}^{-1/2}}$.  
    669 The two terms associated with the triad ${_i^k \mathbb{R}_{+1/2}^{-1/2}}$ are the  
    670 same but both of opposite signs and shifted by 1 in $k$ direction. When summing over $k$  
    671 they cancel out with the neighbouring grid points.  
    672 Exactly the same thing occurs for the triad ${_i^k \mathbb{R}_{-1/2}^{+1/2}}$ in the  
    673 $i$ direction. Therefore the sum over the domain is zero, $i.e.$ the variance of the  
     1174The two terms associated with the triad ${_i^k \mathbb{R}_{+1/2}^{+1/2}}$ are the 
     1175same but of opposite signs, they cancel out. 
     1176Exactly the same thing occurs for the triad ${_i^k \mathbb{R}_{-1/2}^{-1/2}}$. 
     1177The two terms associated with the triad ${_i^k \mathbb{R}_{+1/2}^{-1/2}}$ are the 
     1178same but both of opposite signs and shifted by 1 in $k$ direction. When summing over $k$ 
     1179they cancel out with the neighbouring grid points. 
     1180Exactly the same thing occurs for the triad ${_i^k \mathbb{R}_{-1/2}^{+1/2}}$ in the 
     1181$i$ direction. Therefore the sum over the domain is zero, $i.e.$ the variance of the 
    6741182tracer is preserved by the discretisation of the skew fluxes. 
    6751183 
    676 %%% Local Variables:  
    677 %%% TeX-master: "../../NEMO_book.tex" 
    678 %%% End:  
     1184%%% Local Variables: 
     1185%%% TeX-master: "../../NEMO_book-luatex.tex" 
     1186%%% End: 
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Chapters/Chap_ASM.tex

    r3116 r3218  
    100100 v^{n}_I = v^{n-1}_I + \frac{1}{e_{2v} } \delta _{j+1/2} \left( {A_D 
    101101\;\chi^{n-1}_I } \right) \\ 
    102 \end{aligned} \right, 
     102\end{aligned} \right., 
    103103\end{equation} 
    104104where 
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Chapters/Chap_CFG.tex

    r2541 r3218  
    219219at $\sim 30\deg$N and rotated by 45\deg, 3180~km long, 2120~km wide  
    220220and 4~km deep (Fig.~\ref{Fig_MISC_strait_hand}).  
    221 The domain is bounded by vertical walls and by a ßat bottom. The configuration is  
     221The domain is bounded by vertical walls and by a flat bottom. The configuration is  
    222222meant to represent an idealized North Atlantic or North Pacific basin.  
    223 The circulation is forced by analytical profiles of wind and buoyancy ßuxes.  
     223The circulation is forced by analytical profiles of wind and buoyancy fluxes.  
    224224The applied forcings vary seasonally in a sinusoidal manner between winter  
    225225and summer extrema \citep{Levy_al_OM10}.  
     
    227227It forces a subpolar gyre in the north, a subtropical gyre in the wider part of the domain  
    228228and a small recirculation gyre in the southern corner.  
    229 The net heat ßux takes the form of a restoring toward a zonal apparent air  
    230 temperature profile. A portion of the net heat ßux which comes from the solar radiation 
     229The net heat flux takes the form of a restoring toward a zonal apparent air  
     230temperature profile. A portion of the net heat flux which comes from the solar radiation 
    231231is allowed to penetrate within the water column.  
    232 The fresh water ßux is also prescribed and varies zonally.  
    233 It is determined such as, at each time step, the basin-integrated ßux is zero.  
     232The fresh water flux is also prescribed and varies zonally.  
     233It is determined such as, at each time step, the basin-integrated flux is zero.  
    234234The basin is initialised at rest with vertical profiles of temperature and salinity  
    235235uniformly applied to the whole domain. 
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Chapters/Chap_DIA.tex

    r3104 r3218  
    236236\item[group]: define a group of file or field. Accept the same attributes as file or field. 
    237237 
    238 \item[file]: define the output fileÕs characteristics. Accepted attributes are description, enable,  
     238\item[file]: define the output file's characteristics. Accepted attributes are description, enable,  
    239239output\_freq, output\_level, id, name, name\_suffix. Child of file\_definition or group of files tag. 
    240240 
     
    321321\item[output\_level]: file attribute. Integer from 0 to 10 defining the output priority of variables in a file:  
    322322all variables listed in the file with a level smaller or equal to output\_level will be output.  
    323 Other variables wonÕt be output even if they are listed in the file.   
     323Other variables won't be output even if they are listed in the file.   
    324324 
    325325\item[positive]: axis attribute (always .FALSE.). Logical defining the vertical axis convention used  
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Chapters/Chap_DOM.tex

    r3090 r3218  
    8181 
    8282%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    83 \begin{table}[!tb] \label{Tab_cell} 
     83\begin{table}[!tb] 
    8484\begin{center} \begin{tabular}{|p{46pt}|p{56pt}|p{56pt}|p{56pt}|} 
    8585\hline 
     
    9393fw & $i+1/2$   & $j+1/2$   & $k+1/2$   \\ \hline 
    9494\end{tabular} 
    95 \caption{ \label{Tab_cell}    
     95\caption{ \label{Tab_cell} 
    9696Location of grid-points as a function of integer or integer and a half value of the column,  
    9797line or level. This indexing is only used for the writing of the semi-discrete equation.  
     
    851851\item[ln\_tsd\_init = .false.] use constant salinity value of 35.5 psu and an analytical profile of temperature 
    852852(typical of the tropical ocean), see \rou{istate\_t\_s} subroutine called from \mdl{istate} module. 
     853\end{description} 
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Chapters/Chap_LDF.tex

    r2376 r3218  
    220220and either \np{ln\_traldf\_hor}=True or \np{ln\_dynldf\_hor}=True.  
    221221 
    222 \subsection{slopes for tracer iso-neutral mixing} 
     222\subsection{Slopes for tracer iso-neutral mixing}\label{LDF_slp_iso} 
    223223In iso-neutral mixing  $r_1$ and $r_2$ are the slopes between the iso-neutral  
    224224and computational surfaces. Their formulation does not depend on the vertical  
     
    369369 
    370370 
    371 In addition and also for numerical stability reasons \citep{Cox1987, Griffies_Bk04},  
    372 the slopes are bounded by $1/100$ everywhere. This limit is decreasing linearly  
    373 to zero fom $70$ meters depth and the surface (the fact that the eddies "feel" the  
    374 surface motivates this flattening of isopycnals near the surface). 
     371% In addition and also for numerical stability reasons \citep{Cox1987, Griffies_Bk04},  
     372% the slopes are bounded by $1/100$ everywhere. This limit is decreasing linearly  
     373% to zero fom $70$ meters depth and the surface (the fact that the eddies "feel" the  
     374% surface motivates this flattening of isopycnals near the surface). 
    375375 
    376376For numerical stability reasons \citep{Cox1987, Griffies_Bk04}, the slopes must also  
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Chapters/Chap_Model_Basics.tex

    r2376 r3218  
    10941094% Lateral Diffusive and Viscous Operators Formulation 
    10951095% ------------------------------------------------------------------------------------------------------------- 
    1096 \subsection{Lateral Diffusive and Viscous Operators Formulation} 
     1096\subsection{Formulation of the Lateral Diffusive and Viscous Operators} 
    10971097\label{PE_ldf} 
    10981098 
     
    11341134 
    11351135In eddy-resolving configurations, a second order operator can be used, but  
    1136 usually a more scale selective one (biharmonic operator) is preferred as the  
     1136usually the more scale selective biharmonic operator is preferred as the  
    11371137grid-spacing is usually not small enough compared to the scale of the  
    11381138eddies. The role devoted to the subgrid-scale physics is to dissipate the  
    1139 energy that cascades toward the grid scale and thus ensures the stability of  
    1140 the model while not interfering with the solved mesoscale activity. Another approach  
     1139energy that cascades toward the grid scale and thus to ensure the stability of  
     1140the model while not interfering with the resolved mesoscale activity. Another approach  
    11411141is becoming more and more popular: instead of specifying explicitly a sub-grid scale  
    11421142term in the momentum and tracer time evolution equations, one uses a advective  
    11431143scheme which is diffusive enough to maintain the model stability. It must be emphasised 
    1144 that then, all the sub-grid scale physics is in this case include in the formulation of the 
     1144that then, all the sub-grid scale physics is included in the formulation of the 
    11451145advection scheme.  
    11461146 
    1147 All these parameterisations of subgrid scale physics present advantages and  
     1147All these parameterisations of subgrid scale physics have advantages and  
    11481148drawbacks. There are not all available in \NEMO. In the $z$-coordinate  
    11491149formulation, five options are offered for active tracers (temperature and  
     
    11571157operator acting along $s-$surfaces (see \S\ref{LDF}). 
    11581158 
    1159 \subsubsection{lateral second order tracer diffusive operator} 
     1159\subsubsection{Lateral second order tracer diffusive operator} 
    11601160 
    11611161The lateral second order tracer diffusive operator is defined by (see Appendix~\ref{Apdx_B}): 
     
    11861186 
    11871187For \textit{isoneutral} diffusion $r_1$ and $r_2$ are the slopes between the isoneutral  
    1188 and computational surfaces. Therefore, they have a same expression in $z$- and $s$-coordinates: 
     1188and computational surfaces. Therefore, they are different quantities, 
     1189but have similar expressions in $z$- and $s$-coordinates. In $z$-coordinates: 
    11891190\begin{equation} \label{Eq_PE_iso_slopes} 
    11901191r_1 =\frac{e_3 }{e_1 }  \left( {\frac{\partial \rho }{\partial i}} \right) 
    11911192                  \left( {\frac{\partial \rho }{\partial k}} \right)^{-1} \ , \quad 
    11921193r_1 =\frac{e_3 }{e_1 }  \left( {\frac{\partial \rho }{\partial i}} \right) 
    1193                   \left( {\frac{\partial \rho }{\partial k}} \right)^{-1} 
    1194 \end{equation} 
    1195  
    1196 When the \textit{Eddy Induced Velocity} parametrisation (eiv) \citep{Gent1990} is used,  
     1194                  \left( {\frac{\partial \rho }{\partial k}} \right)^{-1}, 
     1195\end{equation} 
     1196while in $s$-coordinates $\partial/\partial k$ is replaced by 
     1197$\partial/\partial s$. 
     1198 
     1199\subsubsection{Eddy induced velocity} 
     1200 When the \textit{eddy induced velocity} parametrisation (eiv) \citep{Gent1990} is used,  
    11971201an additional tracer advection is introduced in combination with the isoneutral diffusion of tracers: 
    11981202\begin{equation} \label{Eq_PE_iso+eiv} 
     
    12131217where $A^{eiv}$ is the eddy induced velocity coefficient (or equivalently the isoneutral  
    12141218thickness diffusivity coefficient), and $\tilde{r}_1$ and $\tilde{r}_2$ are the slopes  
    1215 between isoneutral and \emph{geopotential} surfaces and thus depends on the coordinate  
    1216 considered:  
     1219between isoneutral and \emph{geopotential} surfaces. Their values are 
     1220thus independent of the vertical coordinate, but their expression depends on the coordinate:  
    12171221\begin{align} \label{Eq_PE_slopes_eiv} 
    12181222\tilde{r}_n = \begin{cases} 
     
    12271231to zero in the vicinity of the boundaries. The latter strategy is used in \NEMO (cf. Chap.~\ref{LDF}). 
    12281232 
    1229 \subsubsection{lateral fourth order tracer diffusive operator} 
     1233\subsubsection{Lateral fourth order tracer diffusive operator} 
    12301234 
    12311235The lateral fourth order tracer diffusive operator is defined by: 
     
    12391243 
    12401244 
    1241 \subsubsection{lateral second order momentum diffusive operator} 
     1245\subsubsection{Lateral second order momentum diffusive operator} 
    12421246 
    12431247The second order momentum diffusive operator along $z$- or $s$-surfaces is found by  
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Chapters/Chap_SBC.tex

    r3116 r3218  
    246246actual year/month/day, always coded with 4 or 2 digits. Note that (1) in mpp, if the file is split  
    247247over each subdomain, the suffix '.nc' is replaced by '\_PPPP.nc', where 'PPPP' is the  
    248 process number coded with 4 digits; (2) when using AGRIF, the prefix ÔN\_Õ is added to files,  
     248process number coded with 4 digits; (2) when using AGRIF, the prefix 
     249'\_N' is added to files,  
    249250where 'N'  is the child grid number.} 
    250251\end{table} 
     
    619620\item          2m Dew Point Temperature ($K$)  (\np{sn\_rhm}) 
    620621\item          Total Precipitation ${Kg} m^{-2} s^{-1}$ (\np{sn\_prec}) 
    621 \item          Mean Sea Level Pressure (${Pa}) (\np{sn\_msl}) 
     622\item          Mean Sea Level Pressure (${Pa}$) (\np{sn\_msl}) 
    622623\end{itemize} 
    623624% ------------------------------------------------------------------------------------------------------------- 
     
    862863%To do this we need to treat evaporation/precipitation fluxes and river runoff differently in the tra_sbc module.  We decided to separate them throughout the code, so that the variable emp represented solely evaporation minus precipitation fluxes, and a new 2d variable rnf was added which represents the volume flux of river runoff (in kg/m2s to remain consistent with emp).  This meant many uses of emp and emps needed to be changed, a list of all modules which use emp or emps and the changes made are below: 
    863864 
    864 } 
     865%} 
    865866 
    866867% ================================================================ 
     
    10781079\begin{description} 
    10791080 
    1080 In order to read a neutral drag coeff, from an external data source (i.e. a wave model), the  
     1081\item [??] In order to read a neutral drag coeff, from an external data source (i.e. a wave model), the  
    10811082logical variable \np{ln\_cdgw} 
    10821083 in $namsbc$ namelist must be defined ${.true.}$.  
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/Namelist/namtra_ldf

    r3116 r3218  
    11!----------------------------------------------------------------------- 
    2 &namtra_ldf    !   lateral diffusion scheme for tracer  
     2&namtra_ldf    !   lateral diffusion scheme for tracer 
    33!----------------------------------------------------------------------- 
    4    !                       !  Type of the operator :  
    5    ln_traldf_lap    =  .true.   !  laplacian operator        
    6    ln_traldf_bilap  =  .false.  !  bilaplacian operator      
     4   !                       !  Type of the operator : 
     5   ln_traldf_lap    =  .true.   !  laplacian operator 
     6   ln_traldf_bilap  =  .false.  !  bilaplacian operator 
    77   !                       !  Direction of action  : 
    8    ln_traldf_level  =  .false.  !  iso-level                 
    9    ln_traldf_hor    =  .false.  !  horizontal (geopotential)            (require "key_ldfslp" when ln_sco=T) 
    10    ln_traldf_iso    =  .true.   !  iso-neutral                          (require "key_ldfslp") 
    11    ln_traldf_grif   =  .false.  !  griffies skew flux formulation       (require "key_ldfslp") 
    12    ln_traldf_gdia   =  .false.  !  griffies operator strfn diagnostics  (require "key_ldfslp") 
    13    ln_triad_iso     =  .false.  !  griffies operator calculates triads twice => pure lateral mixing in ML (require "key_ldfslp") 
    14    ln_botmix_grif   =  .false.  !  griffies operator with lateral mixing on bottom (require "key_ldfslp") 
    15    !                       !  Coefficient 
     8   ln_traldf_level  =  .false.  !  iso-level 
     9   ln_traldf_hor    =  .false.  !  horizontal (geopotential)            (requires "key_ldfslp" when ln_sco=T) 
     10   ln_traldf_iso    =  .true.   !  iso-neutral                          (requires "key_ldfslp") 
     11   !                 !  Griffies parameters 
     12   ln_traldf_grif   =  .false.  !  use griffies triad formulation       (requires "key_ldfslp") 
     13   ln_traldf_gdia   =  .false.  !  output griffies strfn diagnostics    (requires "key_ldfslp") 
     14   ln_triad_iso     =  .false.  !  isoneutral diff'n triads => pure lateral mixing in ML (requires "key_ldfslp") 
     15   ln_botmix_grif   =  .false.  !  griffies operator with lateral mixing on bottom (requires "key_ldfslp") 
     16   !                       !  Coefficients 
     17   ! rn_aeiv_0 is ignored with Held-Larichev spatially varying aeiv (key_traldf_c2d & key_orca_r2, _r1 or _r05) 
     18   rn_aeiv_0        =  2000.    !  eddy induced velocity coefficient [m2/s]    (requires "key_traldf_eiv") 
    1619   rn_aht_0         =  2000.    !  horizontal eddy diffusivity for tracers [m2/s] 
    17    rn_ahtb_0        =     0.    !  background eddy diffusivity for ldf_iso [m2/s] 
    18    rn_aeiv_0        =  2000.    !  eddy induced velocity coefficient [m2/s]    (require "key_traldf_eiv") 
     20   rn_ahtb_0        =     0.    !  background eddy diffusivity for ldf_iso [m2/s] (normally=0; not used with Griffies) 
    1921/ 
  • branches/2011/dev_NEMO_MERGE_2011/DOC/TexFiles/math_abbrev.sty

    r2349 r3218  
    66\def\stwelfth{\sfrac{1}{12}} 
    77\def\sthirtysixth{\sfrac{1}{36}} 
    8 \def\grad{\boldsymbol{\nabla}} 
    9 \def\gradh{\boldsymbol{\nabla}_h} 
     8% \newcommand{\grad}{\boldsymbol{\nabla}} 
     9% \newcommand{\gradh}{\boldsymbol{\nabla}_h} 
     10\newcommand{\grad}{\nabla} 
     11\newcommand{\gradh}{\nabla_h} 
    1012\def\bgamma\boldsymbol{\gamma} 
    1113\def\rdt{\Delta t} 
    1214\newcommand{\ew}[3]{{e_{3#1}}_{\,#2}^{\,#3} } 
    13 \newcommand{\vect}[1]{ \rm{\textbf{#1}} }    % vector style: non-italic bold 
    14 \def\deg{\degres}                            % degrees  (NB: \r{} can also be used) 
     15\newcommand{\vect}[1]{\ensuremath{\mathbf{#1}}} % for vectors                                % non-italic bold 
     16\newcommand{\Div}{\grad\cdot} 
     17% \newcommand{\curl}{\boldsymbol{\nabla} \times} % for curl 
     18\newcommand{\curl}{\nabla \times} % for curl 
     19\newcommand{\pd}[2][]{\frac{\partial #1}{\partial #2}} 
     20\def\deg{\degres}                            % degrees  (NB: \r{} can % % also be used) 
     21\newcommand{\alpbet} {\left(\alpha / \beta \right)}   % alpha/beta  for slp computation 
     22\newcommand{\triad}[6][]{\ensuremath{{}_{#2}^{#3}{\mathbb{#4}_{#1}}_{#5}^{\,#6}}} 
     23\newcommand{\triadd}[5]{\ensuremath{{}_{#1}^{#2}{\mathbb{#3}}_{#4}^{\,#5}}} 
     24\newcommand{\triadt}[5]{\ensuremath{{}_{#1}^{#2}{\tilde{\mathbb{#3}}}_{#4}^{\,#5}}} 
     25\newcommand{\rtriad}[2][]{\ensuremath{\triad[#1]{i}{k}{#2}{i_p}{k_p}}} 
     26\newcommand{\rtriadt}[1]{\ensuremath{\triadt{i}{k}{#1}{i_p}{k_p}}} 
     27\newcommand{\Alts}{{A}} 
     28\newcommand{\Alt}{{A^{lT}}} 
     29\newcommand{\rMLt}[1][i]{\tilde{r}_{\mathrm{ML}\,#1}} 
     30\newcommand{\rML}[1][i]{r_{\mathrm{ML}\,#1}} 
     31\newcommand{\mygstrut}[2]{\rule[#1 em]{0pt}{#2 em}} 
     32\newcommand{\mystrut}{\rule[-.9 em]{0pt}{1.79 em}} 
Note: See TracChangeset for help on using the changeset viewer.