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

Ignore:
Timestamp:
2018-12-19T00:02:00+01:00 (5 years ago)
Author:
nicolasmartin
Message:
  • Comment \label commands on maths environments for unreferenced equations and adapt the unnumbered math container accordingly (mainly switch to shortanded LateX syntax with \[ ... \])
  • Add a code trick to build subfile with its own bibliography
  • Fix right path for main LaTeX document in first line of subfiles (\documentclass[...]{subfiles})
  • Rename abstract_foreword.tex to foreword.tex
  • Fix some non-ASCII codes inserted here or there in LaTeX (\[0-9]*)
  • Made a first iteration on the indentation and alignement within math, figure and table environments to improve source code readability
File:
1 edited

Legend:

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

    r10354 r10414  
    1 \documentclass[../tex_main/NEMO_manual]{subfiles} 
     1\documentclass[../main/NEMO_manual]{subfiles} 
     2 
    23\begin{document} 
    34% ================================================================ 
    4 % Appendix D Ñ Coding Rules 
     5% Appendix D Coding Rules 
    56% ================================================================ 
    67\chapter{Coding Rules} 
    78\label{apdx:D} 
     9 
    810\minitoc 
    911 
    1012\newpage 
    11 $\ $\newline    % force a new ligne 
    12 $\ $\newline    % force a new ligne 
    13  
    1413 
    1514A "model life" is more than ten years. 
     
    102101- use call to ctl\_stop routine instead of just a STOP. 
    103102 
    104  
    105103\newpage 
     104 
    106105% ================================================================ 
    107106% Naming Conventions 
     
    116115 
    117116%--------------------------------------------------TABLE-------------------------------------------------- 
    118 \begin{table}[htbp]  \label{tab:VarName} 
    119 \begin{center} 
    120 \begin{tabular}{|p{45pt}|p{35pt}|p{45pt}|p{40pt}|p{40pt}|p{40pt}|p{40pt}|p{40pt}|} 
    121 \hline  Type \par / Status &   integer&   real&   logical &   character  & structure &   double \par precision&   complex \\   
    122 \hline 
    123 public  \par or  \par module variable&  
    124 \textbf{m n} \par \textit{but not} \par \textbf{nn\_ np\_}&  
    125 \textbf{a b e f g h o q r} \par \textbf{t} \textit{to} \textbf{x} \par but not \par \textbf{fs rn\_}&  
    126 \textbf{l} \par \textit{but not} \par \textbf{lp ld} \par \textbf{ ll ln\_}&  
    127 \textbf{c} \par \textit{but not} \par \textbf{cp cd} \par \textbf{cl cn\_}&  
    128 \textbf{s} \par \textit{but not} \par \textbf{sd sd} \par \textbf{sl sn\_}&  
    129 \textbf{d} \par \textit{but not} \par \textbf{dp dd} \par \textbf{dl dn\_}&  
    130 \textbf{y} \par \textit{but not} \par \textbf{yp yd} \par \textbf{yl yn} \\ 
    131 \hline 
    132 dummy \par argument&  
    133 \textbf{k} \par \textit{but not} \par \textbf{kf}&  
    134 \textbf{p} \par \textit{but not} \par \textbf{pp pf}&  
    135 \textbf{ld}&  
    136 \textbf{cd}&  
    137 \textbf{sd}&  
    138 \textbf{dd}&  
    139 \textbf{yd} \\ 
    140 \hline 
    141 local \par variable&  
    142 \textbf{i}&  
    143 \textbf{z}&  
    144 \textbf{ll}&  
    145 \textbf{cl}&  
    146 \textbf{sl}&  
    147 \textbf{dl}&  
    148 \textbf{yl} \\ 
    149 \hline 
    150 loop \par control&  
    151 \textbf{j} \par \textit{but not} \par \textbf{jp}&  
    152 &  
    153 &  
    154 & 
    155 &  
    156 &  
    157  \\ 
    158 \hline 
    159 parameter&  
    160 \textbf{jp np\_}&  
    161 \textbf{pp}&  
    162 \textbf{lp}&  
    163 \textbf{cp}&  
    164 \textbf{sp}&  
    165 \textbf{dp}&  
    166 \textbf{yp} \\ 
    167 \hline 
    168  
    169 namelist& 
    170 \textbf{nn\_}&  
    171 \textbf{rn\_}&  
    172 \textbf{ln\_}&  
    173 \textbf{cn\_}&  
    174 \textbf{sn\_}&  
    175 \textbf{dn\_}&  
    176 \textbf{yn\_} 
    177 \\ 
    178 \hline 
    179 CPP \par macro&  
    180 \textbf{kf}&  
    181 \textbf{fs} \par &  
    182 &  
    183 & 
    184 &  
    185 &  
    186  \\ 
    187 \hline 
    188 \end{tabular} 
    189 \label{tab:tab1} 
    190 \end{center} 
     117\begin{table}[htbp] 
     118  \label{tab:VarName} 
     119  \begin{center} 
     120    \begin{tabular}{|p{45pt}|p{35pt}|p{45pt}|p{40pt}|p{40pt}|p{40pt}|p{40pt}|p{40pt}|} 
     121      \hline 
     122      Type \par / Status 
     123      & integer 
     124      & real 
     125      & logical 
     126      & character 
     127      & structure 
     128      & double \par precision 
     129      & complex \\ 
     130      \hline 
     131      public  \par or  \par module variable 
     132      & \textbf{m n} \par \textit{but not} \par \textbf{nn\_ np\_} 
     133      & \textbf{a b e f g h o q r} \par \textbf{t} \textit{to} \textbf{x} \par but not \par \textbf{fs rn\_} 
     134      & \textbf{l} \par \textit{but not} \par \textbf{lp ld} \par \textbf{ ll ln\_} 
     135      & \textbf{c} \par \textit{but not} \par \textbf{cp cd} \par \textbf{cl cn\_} 
     136      & \textbf{s} \par \textit{but not} \par \textbf{sd sd} \par \textbf{sl sn\_} 
     137      & \textbf{d} \par \textit{but not} \par \textbf{dp dd} \par \textbf{dl dn\_} 
     138      & \textbf{y} \par \textit{but not} \par \textbf{yp yd} \par \textbf{yl yn} \\ 
     139      \hline 
     140      dummy \par argument 
     141      & \textbf{k} \par \textit{but not} \par \textbf{kf} 
     142      & \textbf{p} \par \textit{but not} \par \textbf{pp pf} 
     143      & \textbf{ld} 
     144      & \textbf{cd} 
     145      & \textbf{sd} 
     146      & \textbf{dd} 
     147      & \textbf{yd} \\ 
     148      \hline 
     149      local \par variable 
     150      & \textbf{i} 
     151      & \textbf{z} 
     152      & \textbf{ll} 
     153      & \textbf{cl} 
     154      & \textbf{sl} 
     155      & \textbf{dl} 
     156      & \textbf{yl} \\ 
     157      \hline 
     158      loop \par control 
     159      & \textbf{j} \par \textit{but not} \par \textbf{jp} &&&&&& \\ 
     160      \hline 
     161      parameter 
     162      & \textbf{jp np\_} 
     163      & \textbf{pp} 
     164      & \textbf{lp} 
     165      & \textbf{cp} 
     166      & \textbf{sp} 
     167      & \textbf{dp} 
     168      & \textbf{yp} \\ 
     169      \hline 
     170      namelist 
     171      & \textbf{nn\_} 
     172      & \textbf{rn\_} 
     173      & \textbf{ln\_} 
     174      & \textbf{cn\_} 
     175      & \textbf{sn\_} 
     176      & \textbf{dn\_} 
     177      & \textbf{yn\_} 
     178      \\ 
     179      \hline 
     180      CPP \par macro 
     181      & \textbf{kf} 
     182      & \textbf{fs} \par &&&&& \\ 
     183      \hline 
     184    \end{tabular} 
     185    \label{tab:tab1} 
     186  \end{center} 
    191187\end{table} 
    192188%-------------------------------------------------------------------------------------------------------------- 
     
    197193 
    198194\newpage 
     195 
    199196% ================================================================ 
    200197% The program structure 
    201198% ================================================================ 
    202199%\section{Program structure} 
    203 %abel{sec:Apdx_D_structure} 
     200%\label{sec:Apdx_D_structure} 
    204201 
    205202%To be done.... 
     203\biblio 
     204 
    206205\end{document} 
Note: See TracChangeset for help on using the changeset viewer.