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 9392 for branches/2017/dev_merge_2017/DOC/tex_sub/chap_DIA.tex – NEMO

Ignore:
Timestamp:
2018-03-09T16:57:00+01:00 (6 years ago)
Author:
nicolasmartin
Message:

Global replacement of patterns \np{id}=value by \forcode{id = value} for integer and booleans

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/DOC/tex_sub/chap_DIA.tex

    r9389 r9392  
    217217For example: 
    218218\vspace{-20pt} 
    219 \begin{xmlcode} 
     219\begin{xmllines} 
    220220   <field_definition> 
    221221      <!-- T grid --> 
     
    226226      ... 
    227227   </field_definition>  
    228 \end{xmlcode} 
     228\end{xmllines} 
    229229Note your definition must be added to the field\_group whose reference grid is consistent  
    230230with the size of the array passed to iomput.  
     
    233233or defined in the domain\_def.xml file. $e.g.$: 
    234234\vspace{-20pt} 
    235 \begin{xmlcode} 
     235\begin{xmllines} 
    236236     <grid id="grid_T_3D" domain_ref="grid_T" axis_ref="deptht"/> 
    237 \end{xmlcode} 
     237\end{xmllines} 
    238238Note, if your array is computed within the surface module each nn\_fsbc time\_step,  
    239239add the field definition within the field\_group defined with the id ''SBC'': $<$field\_group id=''SBC''...$>$  
     
    242242\item[4.] add your field in one of the output files defined in iodef.xml (again see subsequent sections for syntax and rules)   \\ 
    243243\vspace{-20pt} 
    244 \begin{xmlcode} 
     244\begin{xmllines} 
    245245   <file id="file1" .../>    
    246246      ... 
     
    248248      ... 
    249249   </file>    
    250 \end{xmlcode} 
     250\end{xmllines} 
    251251 
    252252\end{description} 
     
    398398example 1: Direct inheritance. 
    399399\vspace{-20pt} 
    400 \begin{xmlcode} 
     400\begin{xmllines} 
    401401   <field_definition operation="average" > 
    402402     <field id="sst"                    />   <!-- averaged      sst -->  
    403403     <field id="sss" operation="instant"/>   <!-- instantaneous sss -->  
    404404   </field_definition>  
    405 \end{xmlcode} 
     405\end{xmllines} 
    406406The field ''sst'' which is part (or a child) of the field\_definition will inherit the value ''average''  
    407407of the attribute ''operation'' from its parent. Note that a child can overwrite  
     
    411411example 2: Inheritance by reference. 
    412412\vspace{-20pt} 
    413 \begin{xmlcode} 
     413\begin{xmllines} 
    414414   <field_definition> 
    415415     <field id="sst" long_name="sea surface temperature" />    
     
    423423     </file>    
    424424   </file_definition>  
    425 \end{xmlcode} 
     425\end{xmllines} 
    426426Inherit (and overwrite, if needed) the attributes of a tag you are refering to. 
    427427 
     
    433433Note that for the field ''toce'', we overwrite the grid definition inherited from the group by ''grid\_T\_3D''. 
    434434\vspace{-20pt} 
    435 \begin{xmlcode} 
     435\begin{xmllines} 
    436436   <field_group id="grid_T" grid_ref="grid_T_2D"> 
    437437    <field id="toce" long_name="temperature"             unit="degC" grid_ref="grid_T_3D"/> 
     
    440440    <field id="ssh"  long_name="sea surface height"      unit="m"                        /> 
    441441         ... 
    442 \end{xmlcode} 
     442\end{xmllines} 
    443443 
    444444Secondly, the group can be used to replace a list of elements.  
     
    446446For example, a short list of the usual variables related to the U grid: 
    447447\vspace{-20pt} 
    448 \begin{xmlcode} 
     448\begin{xmllines} 
    449449   <field_group id="groupU" > 
    450450    <field field_ref="uoce"  /> 
     
    452452    <field field_ref="utau"  /> 
    453453   </field_group> 
    454 \end{xmlcode} 
     454\end{xmllines} 
    455455that can be directly included in a file through the following syntax: 
    456456\vspace{-20pt} 
    457 \begin{xmlcode} 
     457\begin{xmllines} 
    458458   <file id="myfile_U" output_freq="1d" />    
    459459    <field_group group_ref="groupU"/>   
    460460    <field field_ref="uocetr_eff"  />  <!-- add another field --> 
    461461   </file>    
    462 \end{xmlcode} 
     462\end{xmllines} 
    463463 
    464464\subsection{Detailed functionalities } 
     
    473473of a 5 by 5 box with the bottom left corner at point (10,10). 
    474474\vspace{-20pt} 
    475 \begin{xmlcode} 
     475\begin{xmllines} 
    476476   <domain_group id="grid_T"> 
    477477    <domain id="myzoom" zoom_ibegin="10" zoom_jbegin="10" zoom_ni="5" zoom_nj="5" /> 
    478 \end{xmlcode} 
     478\end{xmllines} 
    479479The use of this subdomain is done through the redefinition of the attribute domain\_ref of the tag family field. For example: 
    480480\vspace{-20pt} 
    481 \begin{xmlcode} 
     481\begin{xmllines} 
    482482   <file id="myfile_vzoom" output_freq="1d" > 
    483483      <field field_ref="toce" domain_ref="myzoom"/> 
    484484   </file> 
    485 \end{xmlcode} 
     485\end{xmllines} 
    486486Moorings are seen as an extrem case corresponding to a 1 by 1 subdomain.  
    487487The Equatorial section, the TAO, RAMA and PIRATA moorings are alredy registered in the code  
     
    491491by ''T'' (for example: ''8s137eT'', ''1.5s80.5eT'' ...) 
    492492\vspace{-20pt} 
    493 \begin{xmlcode} 
     493\begin{xmllines} 
    494494   <file id="myfile_vzoom" output_freq="1d" > 
    495495      <field field_ref="toce" domain_ref="0n180wT"/> 
    496496   </file> 
    497 \end{xmlcode} 
     497\end{xmllines} 
    498498Note that if the domain decomposition used in XIOS cuts the subdomain in several parts and if you use the ''multiple\_file'' type for your output files, you will endup with several files you will need to rebuild using unprovided tools (like ncpdq and ncrcat, \href{http://nco.sourceforge.net/nco.html#Concatenation}{see nco manual}). We are therefore advising to use the ''one\_file'' type in this case. 
    499499 
     
    501501Vertical zooms are defined through the attributs zoom\_begin and zoom\_end of the tag family axis. It must therefore be done in the axis part of the XML file. For example, in NEMOGCM/CONFIG/ORCA2\_LIM/iodef\_demo.xml, we provide the following example: 
    502502\vspace{-20pt} 
    503 \begin{xmlcode} 
     503\begin{xmllines} 
    504504   <axis_group id="deptht" long_name="Vertical T levels" unit="m" positive="down" > 
    505505      <axis id="deptht" /> 
    506506      <axis id="deptht_myzoom" zoom_begin="1" zoom_end="10" /> 
    507 \end{xmlcode} 
     507\end{xmllines} 
    508508The use of this vertical zoom is done through the redefinition of the attribute axis\_ref of the tag family field. For example: 
    509509\vspace{-20pt} 
    510 \begin{xmlcode} 
     510\begin{xmllines} 
    511511   <file id="myfile_hzoom" output_freq="1d" > 
    512512      <field field_ref="toce" axis_ref="deptht_myzoom"/> 
    513513   </file> 
    514 \end{xmlcode} 
     514\end{xmllines} 
    515515 
    516516\subsubsection{Control of the output file names} 
     
    518518The output file names are defined by the attributs ''name'' and ''name\_suffix'' of the tag family file. for example: 
    519519\vspace{-20pt} 
    520 \begin{xmlcode} 
     520\begin{xmllines} 
    521521   <file_group id="1d" output_freq="1d" name="myfile_1d" >  
    522522      <file id="myfileA" name_suffix="_AAA" > <!-- will create file "myfile_1d_AAA"  --> 
     
    527527      </file> 
    528528   </file_group> 
    529 \end{xmlcode} 
     529\end{xmllines} 
    530530However it is often very convienent to define the file name with the name of the experiment, the output file frequency and the date of the beginning and the end of the simulation (which are informations stored either in the namelist or in the XML file). To do so, we added the following rule: if the id of the tag file is ''fileN''(where N = 1 to 999 on 1 to 3 digits) or one of the predefined sections or moorings (see next subsection), the following part of the name and the name\_suffix (that can be inherited) will be automatically replaced by:\\ 
    531531\\ 
     
    589589   \hline 
    590590   \hline 
    591     \multicolumn{2}{|c|}{field\_definition} & freq\_op & \np{rn\_rdt} \\ 
    592    \hline 
    593     \multicolumn{2}{|c|}{SBC}               & freq\_op & \np{rn\_rdt} $\times$ \np{nn\_fsbc}  \\ 
    594    \hline 
    595     \multicolumn{2}{|c|}{ptrc\_T}           & freq\_op & \np{rn\_rdt} $\times$ \np{nn\_dttrc} \\ 
    596    \hline 
    597     \multicolumn{2}{|c|}{diad\_T}           & freq\_op & \np{rn\_rdt} $\times$ \np{nn\_dttrc} \\ 
     591    \multicolumn{2}{|c|}{field\_definition} & freq\_op & \np{rn_rdt} \\ 
     592   \hline 
     593    \multicolumn{2}{|c|}{SBC}               & freq\_op & \np{rn_rdt} $\times$ \np{nn_fsbc}  \\ 
     594   \hline 
     595    \multicolumn{2}{|c|}{ptrc\_T}           & freq\_op & \np{rn_rdt} $\times$ \np{nn_dttrc} \\ 
     596   \hline 
     597    \multicolumn{2}{|c|}{diad\_T}           & freq\_op & \np{rn_rdt} $\times$ \np{nn_dttrc} \\ 
    598598   \hline 
    599599    \multicolumn{2}{|c|}{EqT, EqU, EqW} & jbegin, ni,      & according to the grid    \\ 
     
    613613 
    614614\vspace{-20pt} 
    615 \begin{xmlcode} 
     615\begin{xmllines} 
    616616 <field field\_ref="sst"  name="tosK"  unit="degK" > sst + 273.15 </field> 
    617617 <field field\_ref="taum" name="taum2" unit="N2/m4" long\_name="square of wind stress module" > taum * taum </field> 
    618618 <field field\_ref="qt"   name="stupid\_check" > qt - qsr - qns </field> 
    619 \end{xmlcode} 
     619\end{xmllines} 
    620620 
    621621(2) Simple computation: define a new variable and use it in the file definition. 
     
    623623in field\_definition: 
    624624\vspace{-20pt} 
    625 \begin{xmlcode} 
     625\begin{xmllines} 
    626626 <field id="sst2" long\_name="square of sea surface temperature" unit="degC2" >  sst * sst </field > 
    627 \end{xmlcode} 
     627\end{xmllines} 
    628628in file\_definition: 
    629629\vspace{-20pt} 
    630 \begin{xmlcode} 
     630\begin{xmllines} 
    631631 <field field\_ref="sst2" > sst2 </field> 
    632 \end{xmlcode} 
     632\end{xmllines} 
    633633Note that in this case, the following syntaxe $<$field field\_ref="sst2" /$>$ is not working as sst2 won't be evaluated. 
    634634 
     
    636636 
    637637\vspace{-20pt} 
    638 \begin{xmlcode} 
     638\begin{xmllines} 
    639639     <!-- force to keep real 8 --> 
    640640 <field field\_ref="sst" name="tos\_r8" prec="8" /> 
    641641      <!-- integer 2  with add\_offset and scale\_factor attributes --> 
    642642 <field field\_ref="sss" name="sos\_i2" prec="2" add\_offset="20." scale\_factor="1.e-3" /> 
    643 \end{xmlcode} 
     643\end{xmllines} 
    644644Note that, then the code is crashing, writting real4 variables forces a numerical convection from real8 to real4 which will create an internal error in NetCDF and will avoid the creation of the output files. Forcing double precision outputs with prec="8" (for example in the field\_definition) will avoid this problem. 
    645645 
     
    647647 
    648648\vspace{-20pt} 
    649 \begin{xmlcode} 
     649\begin{xmllines} 
    650650      <file\_group id="1d" output\_freq="1d" output\_level="10" enabled=".TRUE."> <!-- 1d files -->  
    651651   <file id="file1" name\_suffix="\_grid\_T" description="ocean T grid variables" > 
     
    658658       </file> 
    659659     </file\_group>  
    660 \end{xmlcode} 
     660\end{xmllines} 
    661661 
    662662(5) use of the ``@'' function: example 1, weighted temporal average 
     
    664664 - define a new variable in field\_definition 
    665665\vspace{-20pt} 
    666 \begin{xmlcode} 
     666\begin{xmllines} 
    667667 <field id="toce\_e3t" long\_name="temperature * e3t" unit="degC*m" grid\_ref="grid\_T\_3D" > toce * e3t </field > 
    668 \end{xmlcode} 
     668\end{xmllines} 
    669669 - use it when defining your file.   
    670670\vspace{-20pt} 
    671 \begin{xmlcode} 
     671\begin{xmllines} 
    672672<file\_group id="5d" output\_freq="5d"  output\_level="10" enabled=".TRUE." >  <!-- 5d files -->   
    673673 <file id="file1" name\_suffix="\_grid\_T" description="ocean T grid variables" > 
     
    675675 </file> 
    676676</file\_group>  
    677 \end{xmlcode} 
     677\end{xmllines} 
    678678The freq\_op="5d" attribute is used to define the operation frequency of the ``@'' function: here 5 day. The temporal operation done by the ``@'' is the one defined in the field definition: here we use the default, average. So, in the above case, @toce\_e3t will do the 5-day mean of toce*e3t. Operation="instant" refers to the temporal operation to be performed on the field''@toce\_e3t / @e3t'': here the temporal average is alreday done by the ``@'' function so we just use instant to do the ratio of the 2 mean values. field\_ref="toce" means that attributes not explicitely defined, are inherited from toce field. Note that in this case, freq\_op must be equal to the file output\_freq. 
    679679 
     
    682682 - define a new variable in field\_definition 
    683683\vspace{-20pt} 
    684 \begin{xmlcode} 
     684\begin{xmllines} 
    685685 <field id="ssh2" long\_name="square of sea surface temperature" unit="degC2" >  ssh * ssh </field > 
    686 \end{xmlcode} 
     686\end{xmllines} 
    687687 - use it when defining your file.   
    688688\vspace{-20pt} 
    689 \begin{xmlcode} 
     689\begin{xmllines} 
    690690<file\_group id="1m" output\_freq="1m"  output\_level="10" enabled=".TRUE." >  <!-- 1m files -->   
    691691 <file id="file1" name\_suffix="\_grid\_T" description="ocean T grid variables" > 
     
    693693 </file> 
    694694</file\_group>  
    695 \end{xmlcode} 
     695\end{xmllines} 
    696696The freq\_op="1m" attribute is used to define the operation frequency of the ``@'' function: here 1 month. The temporal operation done by the ``@'' is the one defined in the field definition: here we use the default, average. So, in the above case, @ssh2 will do the monthly mean of ssh*ssh. Operation="instant" refers to the temporal operation to be performed on the field ''sqrt( @ssh2 - @ssh * @ssh )'': here the temporal average is alreday done by the ``@'' function so we just use instant. field\_ref="ssh" means that attributes not explicitely defined, are inherited from ssh field. Note that in this case, freq\_op must be equal to the file output\_freq. 
    697697 
     
    700700 - define 2 new variables in field\_definition 
    701701\vspace{-20pt} 
    702 \begin{xmlcode} 
     702\begin{xmllines} 
    703703 <field id="sstmax" field\_ref="sst" long\_name="max of sea surface temperature" operation="maximum" /> 
    704704 <field id="sstmin" field\_ref="sst" long\_name="min of sea surface temperature" operation="minimum" /> 
    705 \end{xmlcode} 
     705\end{xmllines} 
    706706 - use these 2 new variables when defining your file.   
    707707\vspace{-20pt} 
    708 \begin{xmlcode} 
     708\begin{xmllines} 
    709709<file\_group id="1m" output\_freq="1m"  output\_level="10" enabled=".TRUE." >  <!-- 1m files -->   
    710710 <file id="file1" name\_suffix="\_grid\_T" description="ocean T grid variables" > 
     
    712712 </file> 
    713713</file\_group>  
    714 \end{xmlcode} 
     714\end{xmllines} 
    715715The freq\_op="1d" attribute is used to define the operation frequency of the ``@'' function: here 1 day. The temporal operation done by the ``@'' is the one defined in the field definition: here maximum for sstmax and minimum for sstmin. So, in the above case, @sstmax will do the daily max and @sstmin the daily min. Operation="average" refers to the temporal operation to be performed on the field ``@sstmax - @sstmin'': here monthly mean (of daily max - daily min of the sst). field\_ref="sst" means that attributes not explicitely defined, are inherited from sst field. 
    716716 
     
    10241024Output from the XIOS-1.0 IO server is compliant with \href{http://cfconventions.org/Data/cf-conventions/cf-conventions-1.5/build/cf-conventions.html}{version 1.5} of the CF metadata standard. Therefore while a user may wish to add their own metadata to the output files (as demonstrated in example 4 of section \ref{IOM_xmlref}) the metadata should, for the most part, comply with the CF-1.5 standard. 
    10251025 
    1026 Some metadata that may significantly increase the file size (horizontal cell areas and vertices) are controlled by the namelist parameter \np{ln\_cfmeta} in the \ngn{namrun} namelist. This must be set to true if these metadata are to be included in the output files. 
     1026Some metadata that may significantly increase the file size (horizontal cell areas and vertices) are controlled by the namelist parameter \np{ln_cfmeta} in the \ngn{namrun} namelist. This must be set to true if these metadata are to be included in the output files. 
    10271027 
    10281028 
     
    10481048new libraries and will then read both NetCDF3 and NetCDF4 files. NEMO 
    10491049executables linked with NetCDF4 libraries can be made to produce NetCDF3 
    1050 files by setting the \np{ln\_nc4zip} logical to false in the \textit{namnc4}  
     1050files by setting the \np{ln_nc4zip} logical to false in the \textit{namnc4}  
    10511051namelist: 
    10521052 
     
    10561056 
    10571057If \key{netcdf4} has not been defined, these namelist parameters are not read.  
    1058 In this case, \np{ln\_nc4zip} is set false and dummy routines for a few 
     1058In this case, \np{ln_nc4zip} is set false and dummy routines for a few 
    10591059NetCDF4-specific functions are defined. These functions will not be used but 
    10601060need to be included so that compilation is possible with NetCDF3 libraries. 
     
    11061106         &filesize & filesize & \% \\ 
    11071107         &(KB)     & (KB)     & \\ 
    1108 ORCA2\_restart\_0000.nc & 16420 & 8860 & 47\%\\ 
    1109 ORCA2\_restart\_0001.nc & 16064 & 11456 & 29\%\\ 
    1110 ORCA2\_restart\_0002.nc & 16064 & 9744 & 40\%\\ 
    1111 ORCA2\_restart\_0003.nc & 16420 & 9404 & 43\%\\ 
    1112 ORCA2\_restart\_0004.nc & 16200 & 5844 & 64\%\\ 
    1113 ORCA2\_restart\_0005.nc & 15848 & 8172 & 49\%\\ 
    1114 ORCA2\_restart\_0006.nc & 15848 & 8012 & 50\%\\ 
    1115 ORCA2\_restart\_0007.nc & 16200 & 5148 & 69\%\\ 
    1116 ORCA2\_2d\_grid\_T\_0000.nc & 2200 & 1504 & 32\%\\ 
    1117 ORCA2\_2d\_grid\_T\_0001.nc & 2200 & 1748 & 21\%\\ 
    1118 ORCA2\_2d\_grid\_T\_0002.nc & 2200 & 1592 & 28\%\\ 
    1119 ORCA2\_2d\_grid\_T\_0003.nc & 2200 & 1540 & 30\%\\ 
    1120 ORCA2\_2d\_grid\_T\_0004.nc & 2200 & 1204 & 46\%\\ 
    1121 ORCA2\_2d\_grid\_T\_0005.nc & 2200 & 1444 & 35\%\\ 
    1122 ORCA2\_2d\_grid\_T\_0006.nc & 2200 & 1428 & 36\%\\ 
    1123 ORCA2\_2d\_grid\_T\_0007.nc & 2200 & 1148 & 48\%\\ 
    1124              ...            &  ... &  ... & ..  \\ 
    1125 ORCA2\_2d\_grid\_W\_0000.nc & 4416 & 2240 & 50\%\\ 
    1126 ORCA2\_2d\_grid\_W\_0001.nc & 4416 & 2924 & 34\%\\ 
    1127 ORCA2\_2d\_grid\_W\_0002.nc & 4416 & 2512 & 44\%\\ 
    1128 ORCA2\_2d\_grid\_W\_0003.nc & 4416 & 2368 & 47\%\\ 
    1129 ORCA2\_2d\_grid\_W\_0004.nc & 4416 & 1432 & 68\%\\ 
    1130 ORCA2\_2d\_grid\_W\_0005.nc & 4416 & 1972 & 56\%\\ 
    1131 ORCA2\_2d\_grid\_W\_0006.nc & 4416 & 2028 & 55\%\\ 
    1132 ORCA2\_2d\_grid\_W\_0007.nc & 4416 & 1368 & 70\%\\ 
     1108\ifile{ORCA2\_restart\_0000} & 16420 & 8860 & 47\%\\ 
     1109\ifile{ORCA2\_restart\_0001} & 16064 & 11456 & 29\%\\ 
     1110\ifile{ORCA2\_restart\_0002} & 16064 & 9744 & 40\%\\ 
     1111\ifile{ORCA2\_restart\_0003} & 16420 & 9404 & 43\%\\ 
     1112\ifile{ORCA2\_restart\_0004} & 16200 & 5844 & 64\%\\ 
     1113\ifile{ORCA2\_restart\_0005} & 15848 & 8172 & 49\%\\ 
     1114\ifile{ORCA2\_restart\_0006} & 15848 & 8012 & 50\%\\ 
     1115\ifile{ORCA2\_restart\_0007} & 16200 & 5148 & 69\%\\ 
     1116\ifile{ORCA2\_2d\_grid\_T\_0000} & 2200 & 1504 & 32\%\\ 
     1117\ifile{ORCA2\_2d\_grid\_T\_0001} & 2200 & 1748 & 21\%\\ 
     1118\ifile{ORCA2\_2d\_grid\_T\_0002} & 2200 & 1592 & 28\%\\ 
     1119\ifile{ORCA2\_2d\_grid\_T\_0003} & 2200 & 1540 & 30\%\\ 
     1120\ifile{ORCA2\_2d\_grid\_T\_0004} & 2200 & 1204 & 46\%\\ 
     1121\ifile{ORCA2\_2d\_grid\_T\_0005} & 2200 & 1444 & 35\%\\ 
     1122\ifile{ORCA2\_2d\_grid\_T\_0006} & 2200 & 1428 & 36\%\\ 
     1123\ifile{ORCA2\_2d\_grid\_T\_0007} & 2200 & 1148 & 48\%\\ 
     1124            ...         & ...  &  ... & ...  \\ 
     1125\ifile{ORCA2\_2d\_grid\_W\_0000} & 4416 & 2240 & 50\%\\ 
     1126\ifile{ORCA2\_2d\_grid\_W\_0001} & 4416 & 2924 & 34\%\\ 
     1127\ifile{ORCA2\_2d\_grid\_W\_0002} & 4416 & 2512 & 44\%\\ 
     1128\ifile{ORCA2\_2d\_grid\_W\_0003} & 4416 & 2368 & 47\%\\ 
     1129\ifile{ORCA2\_2d\_grid\_W\_0004} & 4416 & 1432 & 68\%\\ 
     1130\ifile{ORCA2\_2d\_grid\_W\_0005} & 4416 & 1972 & 56\%\\ 
     1131\ifile{ORCA2\_2d\_grid\_W\_0006} & 4416 & 2028 & 55\%\\ 
     1132\ifile{ORCA2\_2d\_grid\_W\_0007} & 4416 & 1368 & 70\%\\ 
    11331133\end{tabular} 
    11341134\caption{   \protect\label{Tab_NC4}  
     
    11381138 
    11391139When \key{iomput} is activated with \key{netcdf4} chunking and 
    1140 compression parameters for fields produced via \np{iom\_put} calls are 
     1140compression parameters for fields produced via \np{iom_put} calls are 
    11411141set via an equivalent and identically named namelist to \textit{namnc4}  
    11421142in \np{xmlio\_server.def}. Typically this namelist serves the mean files 
     
    11671167What is done depends on the \ngn{namtrd} logical set to \textit{true}: 
    11681168\begin{description} 
    1169 \item[\np{ln\_glo\_trd}] : at each \np{nn\_trd} time-step a check of the basin averaged properties  
     1169\item[\np{ln_glo_trd}] : at each \np{nn_trd} time-step a check of the basin averaged properties  
    11701170of the momentum and tracer equations is performed. This also includes a check of $T^2$, $S^2$,  
    11711171$\tfrac{1}{2} (u^2+v2)$, and potential energy time evolution equations properties ;  
    1172 \item[\np{ln\_dyn\_trd}] : each 3D trend of the evolution of the two momentum components is output ;  
    1173 \item[\np{ln\_dyn\_mxl}] : each 3D trend of the evolution of the two momentum components averaged  
     1172\item[\np{ln_dyn_trd}] : each 3D trend of the evolution of the two momentum components is output ;  
     1173\item[\np{ln_dyn_mxl}] : each 3D trend of the evolution of the two momentum components averaged  
    11741174                           over the mixed layer is output  ;  
    1175 \item[\np{ln\_vor\_trd}] : a vertical summation of the moment tendencies is performed,  
     1175\item[\np{ln_vor_trd}] : a vertical summation of the moment tendencies is performed,  
    11761176                           then the curl is computed to obtain the barotropic vorticity tendencies which are output ; 
    1177 \item[\np{ln\_KE\_trd}]  : each 3D trend of the Kinetic Energy equation is output ; 
    1178 \item[\np{ln\_tra\_trd}] : each 3D trend of the evolution of temperature and salinity is output ; 
    1179 \item[\np{ln\_tra\_mxl}] : each 2D trend of the evolution of temperature and salinity averaged  
     1177\item[\np{ln_KE_trd}]  : each 3D trend of the Kinetic Energy equation is output ; 
     1178\item[\np{ln_tra_trd}] : each 3D trend of the evolution of temperature and salinity is output ; 
     1179\item[\np{ln_tra_mxl}] : each 2D trend of the evolution of temperature and salinity averaged  
    11801180                           over the mixed layer is output ; 
    11811181\end{description} 
     
    11851185 
    11861186\textbf{Note that} in the current version (v3.6), many changes has been introduced but not fully tested.  
    1187 In particular, options associated with \np{ln\_dyn\_mxl}, \np{ln\_vor\_trd}, and \np{ln\_tra\_mxl}  
     1187In particular, options associated with \np{ln_dyn_mxl}, \np{ln_vor_trd}, and \np{ln_tra_mxl}  
    11881188are not working, and none of the option have been tested with variable volume ($i.e.$ \key{vvl} defined). 
    11891189 
     
    12031203namelis variables. The algorithm used is based  
    12041204either on the work of \cite{Blanke_Raynaud_JPO97} (default option), or on a $4^th$ 
    1205 Runge-Hutta algorithm (\np{ln\_flork4}=true). Note that the \cite{Blanke_Raynaud_JPO97}  
     1205Runge-Hutta algorithm (\forcode{ln_flork4 = .true.}). Note that the \cite{Blanke_Raynaud_JPO97}  
    12061206algorithm have the advantage of providing trajectories which are consistent with the  
    12071207numeric of the code, so that the trajectories never intercept the bathymetry.  
     
    12091209\subsubsection{ Input data: initial coordinates } 
    12101210 
    1211 Initial coordinates can be given with Ariane Tools convention ( IJK coordinates ,(\np{ln\_ariane}=true) ) 
     1211Initial coordinates can be given with Ariane Tools convention ( IJK coordinates ,(\forcode{ln_ariane = .true.}) ) 
    12121212or with longitude and latitude. 
    12131213 
    12141214 
    1215 In case of Ariane convention, input filename is \np{init\_float\_ariane}. Its format is: 
     1215In case of Ariane convention, input filename is \np{init_float_ariane}. Its format is: 
    12161216 
    12171217\texttt{ I J K nisobfl itrash itrash } 
     
    12581258 
    12591259\np{jpnfl} is the total number of floats during the run. 
    1260 When initial positions are read in a restart file ( \np{ln\_rstflo}= .TRUE. ),  \np{jpnflnewflo} 
     1260When initial positions are read in a restart file ( \np{ln_rstflo}= .TRUE. ),  \np{jpnflnewflo} 
    12611261can be added in the initialization file.  
    12621262 
    12631263\subsubsection{ Output data } 
    12641264 
    1265 \np{nn\_writefl} is the frequency of writing in float output file and \np{nn\_stockfl}  
     1265\np{nn_writefl} is the frequency of writing in float output file and \np{nn_stockfl}  
    12661266is the frequency of creation of the float restart file. 
    12671267 
    1268 Output data can be written in ascii files (\np{ln\_flo\_ascii} = .TRUE. ). In that case,  
     1268Output data can be written in ascii files (\np{ln_flo_ascii} = .TRUE. ). In that case,  
    12691269output filename is trajec\_float. 
    12701270 
    1271 Another possiblity of writing format is Netcdf (\np{ln\_flo\_ascii} = .FALSE. ). There are 2 possibilities: 
     1271Another possiblity of writing format is Netcdf (\np{ln_flo_ascii} = .FALSE. ). There are 2 possibilities: 
    12721272 
    12731273 - if (\key{iomput}) is used, outputs are selected in  iodef.xml. Here it is an example of specification  
     
    12751275 
    12761276\vspace{-30pt} 
    1277 \begin{xmlcode} 
     1277\begin{xmllines} 
    12781278     <group id="1d\_grid\_T" name="auto" description="ocean T grid variables" >   } 
    12791279       <file id="floats"  description="floats variables"> }\\ 
     
    12871287       </file>} 
    12881288  </group>} 
    1289 \end{xmlcode} 
    1290  
    1291  
    1292  -  if (\key{iomput}) is not used, a file called trajec\_float.nc will be created by IOIPSL library. 
     1289\end{xmllines} 
     1290 
     1291 
     1292 -  if (\key{iomput}) is not used, a file called \ifile{trajec\_float} will be created by IOIPSL library. 
    12931293 
    12941294 
     
    13121312Some parameters are available in namelist \ngn{namdia\_harm} : 
    13131313 
    1314 - \np{nit000\_han} is the first time step used for harmonic analysis 
    1315  
    1316 - \np{nitend\_han} is the last time step used for harmonic analysis 
    1317  
    1318 - \np{nstep\_han} is the time step frequency for harmonic analysis 
    1319  
    1320 - \np{nb\_ana} is the number of harmonics to analyse 
     1314- \np{nit000_han} is the first time step used for harmonic analysis 
     1315 
     1316- \np{nitend_han} is the last time step used for harmonic analysis 
     1317 
     1318- \np{nstep_han} is the time step frequency for harmonic analysis 
     1319 
     1320- \np{nb_ana} is the number of harmonics to analyse 
    13211321 
    13221322- \np{tname} is an array with names of tidal constituents to analyse 
    13231323 
    1324 \np{nit000\_han} and \np{nitend\_han} must be between \np{nit000} and \np{nitend} of the simulation. 
     1324\np{nit000_han} and \np{nitend_han} must be between \np{nit000} and \np{nitend} of the simulation. 
    13251325The restart capability is not implemented. 
    13261326 
     
    13691369and the time scales over which they are averaged, as well as the level of output for debugging: 
    13701370 
    1371 \np{nn\_dct}: frequency of instantaneous transports computing 
    1372  
    1373 \np{nn\_dctwri}: frequency of writing ( mean of instantaneous transports ) 
    1374  
    1375 \np{nn\_debug}: debugging of the section 
     1371\np{nn_dct}: frequency of instantaneous transports computing 
     1372 
     1373\np{nn_dctwri}: frequency of writing ( mean of instantaneous transports ) 
     1374 
     1375\np{nn_debug}: debugging of the section 
    13761376 
    13771377\subsubsection{ Creating a binary file containing the pathway of each section } 
     
    16811681The poleward heat and salt transports, their advective and diffusive component, and  
    16821682the meriodional stream function can be computed on-line in \mdl{diaptr}  
    1683 \np{ln\_diaptr} to true (see the \textit{\ngn{namptr} } namelist below).   
    1684 When \np{ln\_subbas}~=~true, transports and stream function are computed  
     1683\np{ln_diaptr} to true (see the \textit{\ngn{namptr} } namelist below).   
     1684When \np{ln_subbas}~=~true, transports and stream function are computed  
    16851685for the Atlantic, Indian, Pacific and Indo-Pacific Oceans (defined north of 30\deg S)  
    16861686as well as for the World Ocean. The sub-basin decomposition requires an input file  
     
    17561756in the zonal, meridional and vertical directions respectively. The vertical component is included although it is not strictly valid as the vertical velocity is calculated from the continuity equation rather than as a prognostic variable. Physically this represents the rate at which information is propogated across a grid cell. Values greater than 1 indicate that information is propagated across more than one grid cell in a single time step. 
    17571757 
    1758 The variables can be activated by setting the \np{nn\_diacfl} namelist parameter to 1 in the \ngn{namctl} namelist. The diagnostics will be written out to an ascii file named cfl\_diagnostics.ascii. In this file the maximum value of $C_u$, $C_v$, and $C_w$ are printed at each timestep along with the coordinates of where the maximum value occurs. At the end of the model run the maximum value of $C_u$, $C_v$, and $C_w$ for the whole model run is printed along with the coordinates of each. The maximum values from the run are also copied to the ocean.output file.  
     1758The variables can be activated by setting the \np{nn_diacfl} namelist parameter to 1 in the \ngn{namctl} namelist. The diagnostics will be written out to an ascii file named cfl\_diagnostics.ascii. In this file the maximum value of $C_u$, $C_v$, and $C_w$ are printed at each timestep along with the coordinates of where the maximum value occurs. At the end of the model run the maximum value of $C_u$, $C_v$, and $C_w$ for the whole model run is printed along with the coordinates of each. The maximum values from the run are also copied to the ocean.output file.  
    17591759 
    17601760 
Note: See TracChangeset for help on using the changeset viewer.