Ignore:
Timestamp:
12/11/18 17:58:35 (5 years ago)
Author:
oabramkina
Message:

Updating reference guide.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/doc/XIOS_user_guide.lyx

    r1526 r1623  
    40514051\end_inset 
    40524052 
    4053 , field_A) 
     4053, field_B) 
    40544054\end_layout 
    40554055 
     
    40574057 
    40584058. 
     4059\end_layout 
     4060 
     4061\begin_layout Standard 
     4062XIOS also provides the means to define an expression in a Fortran code via 
     4063 the field attribute  
     4064\begin_inset Quotes eld 
     4065\end_inset 
     4066 
     4067expr 
     4068\begin_inset Quotes erd 
     4069\end_inset 
     4070 
     4071. 
     4072 The example above can rewritten as 
     4073\begin_inset listings 
     4074lstparams "language=XML,breaklines=true,tabsize=2,frame=tb,postbreak={\raisebox{0ex}[0ex][0ex]{\ensuremath{\rcurvearrowse\space}}}" 
     4075inline false 
     4076status open 
     4077 
     4078\begin_layout Plain Layout 
     4079 
     4080<?xml version="1.0"?> 
     4081\end_layout 
     4082 
     4083\begin_layout Plain Layout 
     4084 
     4085<simulation> 
     4086\end_layout 
     4087 
     4088\begin_layout Plain Layout 
     4089 
     4090        <context id="test"> 
     4091\end_layout 
     4092 
     4093\begin_layout Plain Layout 
     4094 
     4095                <calendar type="Gregorian" timestep="1h" /> 
     4096\end_layout 
     4097 
     4098\begin_layout Plain Layout 
     4099 
     4100\end_layout 
     4101 
     4102\begin_layout Plain Layout 
     4103 
     4104                <grid_definition> 
     4105\end_layout 
     4106 
     4107\begin_layout Plain Layout 
     4108 
     4109                        <grid id="grid_A"><!-- Definition ommited --></grid> 
     4110\end_layout 
     4111 
     4112\begin_layout Plain Layout 
     4113 
     4114                </grid_definition> 
     4115\end_layout 
     4116 
     4117\begin_layout Plain Layout 
     4118 
     4119\end_layout 
     4120 
     4121\begin_layout Plain Layout 
     4122 
     4123                <file_definition> 
     4124\end_layout 
     4125 
     4126\begin_layout Plain Layout 
     4127 
     4128                        <file name="output" output_freq="1d"> 
     4129\end_layout 
     4130 
     4131\begin_layout Plain Layout 
     4132 
     4133                        <field id="field_B" grid_ref="grid_A" operation="average"> 
     4134\end_layout 
     4135 
     4136\begin_layout Plain Layout 
     4137 
     4138                        <field id="field_C" field_ref="field_B"> 
     4139\end_layout 
     4140 
     4141\begin_layout Plain Layout 
     4142 
     4143                        </file> 
     4144\end_layout 
     4145 
     4146\begin_layout Plain Layout 
     4147 
     4148                </file_definition> 
     4149\end_layout 
     4150 
     4151\begin_layout Plain Layout 
     4152 
     4153        </context> 
     4154\end_layout 
     4155 
     4156\begin_layout Plain Layout 
     4157 
     4158</simulation> 
     4159\end_layout 
     4160 
     4161\end_inset 
     4162 
     4163 
     4164\end_layout 
     4165 
     4166\begin_layout Standard 
     4167while the two expressions can be specified with the following calls:  
     4168\begin_inset Flex Code 
     4169status open 
     4170 
     4171\begin_layout Plain Layout 
     4172xios_set_field_attr( 
     4173\begin_inset Quotes eld 
     4174\end_inset 
     4175 
     4176field_B 
     4177\begin_inset Quotes erd 
     4178\end_inset 
     4179 
     4180, expr= 
     4181\begin_inset Quotes erd 
     4182\end_inset 
     4183 
     4184@this + 273.15 
     4185\begin_inset Quotes erd 
     4186\end_inset 
     4187 
     4188 
     4189\end_layout 
     4190 
     4191\end_inset 
     4192 
     4193 and  
     4194\begin_inset Flex Code 
     4195status open 
     4196 
     4197\begin_layout Plain Layout 
     4198xios_set_field_attr( 
     4199\begin_inset Quotes eld 
     4200\end_inset 
     4201 
     4202field_C 
     4203\begin_inset Quotes erd 
     4204\end_inset 
     4205 
     4206, expr= 
     4207\begin_inset Quotes erd 
     4208\end_inset 
     4209 
     4210log10(field_B) 
     4211\begin_inset Quotes erd 
     4212\end_inset 
     4213 
     4214 
     4215\end_layout 
     4216 
     4217\end_inset 
     4218 
     4219. 
     4220  
    40594221\end_layout 
    40604222 
     
    50065168\begin_layout Standard 
    50075169Some of XIOS behaviors can be configured using options. 
    5008  Those options must be expressed as variables in a specific context whose 
     5170 Those options must be exprhessed as variables in a specific context whose 
    50095171  
    50105172\series bold 
     
    51005262 
    51015263\begin_layout Standard 
    5102 To improve I/O performance and to be able to use HDF5 compression with the 
    5103   
    5104 \series bold 
    5105 \emph on 
    5106  
    5107 \begin_inset Quotes eld 
    5108 \end_inset 
    5109  
    5110 multiple_file 
    5111 \begin_inset Quotes erd 
    5112 \end_inset 
    5113  
    5114  
    5115 \series default 
    5116 \emph default 
    5117  mode, it is possible to separate servers into two levels: intermediaries 
    5118  (level one) and writers (level two). 
    5119  A single MPI communicator will be created for the intermediaries, while 
    5120  multiple communicators will be created for the writers according to the 
    5121  number of  
    5122 \begin_inset Quotes eld 
    5123 \end_inset 
    5124  
    5125 pools 
    5126 \begin_inset Quotes erd 
    5127 \end_inset 
    5128  
    5129  which can be set by a user. 
     5264To improve I/O performance, it is possible to separate servers into two 
     5265 levels: intermediaries (level one) and writers (level two). 
    51305266 Level-one servers will receive data from clients and will redistribute 
    5131  it to be sent to pools of level-two servers whilst level-two servers will 
    5132  do the I/O (important: for now level-two servers only do writing data). 
    5133  Secondary servers can be launched by means of three parameters: 
     5267 and send the data to subsets of level-two servers (called “pools”), whilst 
     5268 level-two servers will do the I/O. 
     5269 Each file is written by only one pool. 
     5270 If one process is assigned per pool (which is the default option), the 
     5271 I/O is sequential and HDF5 compression can be used even in the “multiple_file” 
     5272 mode. 
     5273 Level-two servers can be launched and controlled by means of three parameters: 
    51345274\end_layout 
    51355275 
     
    52835423 
    52845424\begin_layout Standard 
    5285 Note that with one server per pool, the I/O is actually sequential and thus 
    5286  the use of HDF5 compression is possible. 
    5287   
    5288 \end_layout 
    5289  
    5290 \begin_layout Standard 
    52915425By default file distribution among server-two pools is optimized for bandwidth. 
    52925426 An alternative way of distributing files is possible in order to minimize 
     
    54385572\begin_inset Formula  
    54395573\[ 
    5440 {\scriptstyle used\_size\;=\;\min\left(minimum\_buffer\_size,\; detected\_size\;\times\; buffer\_size\_factor\right)} 
     5574{\scriptstyle used\_size\;=\;\min\left(minimum\_buffer\_size,\;detected\_size\;\times\;buffer\_size\_factor\right)} 
    54415575\] 
    54425576 
Note: See TracChangeset for help on using the changeset viewer.