Index: /XIOS/dev/branch_openmp/Note/domain.svg
===================================================================
--- /XIOS/dev/branch_openmp/Note/domain.svg	(revision 1551)
+++ /XIOS/dev/branch_openmp/Note/domain.svg	(revision 1551)
@@ -0,0 +1,191 @@
+<?xml version="1.1" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg"
+    xmlns:latexdraw="http://latexdraw.sourceforge.net/namespaces/latexdraw"
+    version="1.1" baseProfile="full">
+    <g>
+        <g latexdraw:type="rectangle" id="id207385928">
+            <rect x="581.0" y="301.0" width="118.0" height="78.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="#cccccc" fill="#cccccc"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id595922276">
+            <rect x="461.0" y="301.0" width="118.0" height="78.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="#ff6600" fill="#ff6600"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id1274722514">
+            <rect x="341.0" y="301.0" width="118.0" height="78.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="#cc00cc" fill="#cc00cc"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id88937648">
+            <rect x="221.0" y="301.0" width="118.0" height="78.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="#6666ff" fill="#6666ff"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id1084854847">
+            <rect x="581.0" y="221.0" width="118.0" height="78.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="#ff6666" fill="#ff6666"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id5409285">
+            <rect x="461.0" y="221.0" width="118.0" height="78.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="#ccffcc" fill="#ccffcc"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id878369571">
+            <rect x="341.0" y="221.0" width="118.0" height="78.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="#ffffcc" fill="#ffffcc"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id822761510">
+            <rect x="221.0" y="221.0" width="118.0" height="78.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="#ffccff" fill="#ffccff"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id563949119">
+            <rect x="581.0" y="141.0" width="118.0" height="78.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="#99ccff" fill="#99ccff"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id2037269341">
+            <rect x="461.0" y="141.0" width="118.0" height="78.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="#ffcccc" fill="#ffcccc"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id334730993">
+            <rect x="341.0" y="141.0" width="118.0" height="78.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="#ccccff" fill="#ccccff"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id1885885396">
+            <rect x="221.0" y="141.0" width="118.0" height="78.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="#ccffff" fill="#ccffff"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id1873592340">
+            <rect x="221.0" y="141.0" width="478.0" height="238.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="none"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id821767091">
+            <polyline points="220.0,220.0 700.0,220.0 700.0,220.0 "
+                stroke-width="2.0" stroke="black" fill="none" latexdraw:rotationAngle="0.0"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id786293129">
+            <polyline points="220.0,300.0 700.0,300.0 "
+                stroke-width="2.0" stroke="black" latexdraw:rotationAngle="0.0"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id1548340807">
+            <polyline points="340.0,140.0 340.0,380.0 "
+                stroke-width="2.0" stroke="black" latexdraw:rotationAngle="0.0"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id536039325">
+            <polyline points="460.0,140.0 460.0,380.0 "
+                stroke-width="2.0" stroke="black" latexdraw:rotationAngle="0.0"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id1343800288">
+            <polyline points="580.0,140.0 580.0,380.0 "
+                stroke-width="2.0" stroke="black" latexdraw:rotationAngle="0.0"/>
+        </g>
+        <g latexdraw:type="text" id="id1408670084" fill="black" latexdraw:position="bl">
+            <text x="260.0" y="180.0">P0</text>
+        </g>
+        <g latexdraw:type="text" id="id1638683318" fill="#ccccff" latexdraw:position="bl">
+            <text x="400.0" y="180.0">P1</text>
+        </g>
+        <g latexdraw:type="text" id="id299534813" fill="black" latexdraw:position="bl">
+            <text x="500.0" y="180.0">P2</text>
+        </g>
+        <g latexdraw:type="text" id="id1575525696" fill="black" latexdraw:position="bl">
+            <text x="380.0" y="180.0">P1</text>
+        </g>
+        <g latexdraw:type="text" id="id1391947391" fill="black" latexdraw:position="bl">
+            <text x="620.0" y="180.0">P3</text>
+        </g>
+        <g latexdraw:type="text" id="id297091958" fill="black" latexdraw:position="bl">
+            <text x="260.0" y="260.0">P4</text>
+        </g>
+        <g latexdraw:type="text" id="id285136010" fill="black" latexdraw:position="bl">
+            <text x="380.0" y="260.0">P5</text>
+        </g>
+        <g latexdraw:type="text" id="id1642480134" fill="black" latexdraw:position="bl">
+            <text x="500.0" y="260.0">P6</text>
+        </g>
+        <g latexdraw:type="text" id="id641433698" fill="black" latexdraw:position="bl">
+            <text x="620.0" y="260.0">P7</text>
+        </g>
+        <g latexdraw:type="text" id="id2067849914" fill="black" latexdraw:position="bl">
+            <text x="380.0" y="340.0">P9</text>
+        </g>
+        <g latexdraw:type="text" id="id904241632" fill="black" latexdraw:position="bl">
+            <text x="260.0" y="340.0">P8</text>
+        </g>
+        <g latexdraw:type="text" id="id559931392" fill="black" latexdraw:position="bl">
+            <text x="500.0" y="340.0">P10</text>
+        </g>
+        <g latexdraw:type="text" id="id1379325955" fill="black" latexdraw:position="bl">
+            <text x="620.0" y="340.0">P11</text>
+        </g>
+        <g latexdraw:type="text" id="id2074035948" fill="black" latexdraw:position="bl">
+            <text x="880.0" y="160.0">P5</text>
+        </g>
+        <g latexdraw:type="drawing" id="id1525344607">
+            <g latexdraw:type="rectangle" id="id995501680">
+                <rect x="781.0" y="181.0" width="258.0" height="158.0"
+                    latexdraw:borderPos="outer" stroke-width="2.0"
+                    stroke="black" fill="#ffffcc"/>
+            </g>
+            <g latexdraw:type="joinedLines" id="id1970111022">
+                <polyline points="800.0,200.0 800.0,200.0 "
+                    stroke-width="2.0" stroke="#ccccff" latexdraw:rotationAngle="0.0"/>
+            </g>
+            <g latexdraw:type="joinedLines" id="id725289487">
+                <polyline points="780.0,220.0 1040.0,220.0 "
+                    stroke-width="2.0" stroke="black" latexdraw:rotationAngle="0.0"/>
+            </g>
+            <g latexdraw:type="joinedLines" id="id813568117">
+                <polyline points="780.0,260.0 1040.0,260.0 "
+                    stroke-width="2.0" stroke="black" latexdraw:rotationAngle="0.0"/>
+            </g>
+            <g latexdraw:type="joinedLines" id="id577386326">
+                <polyline points="780.0,300.0 1040.0,300.0 "
+                    stroke-width="2.0" stroke="black" latexdraw:rotationAngle="0.0"/>
+            </g>
+            <g latexdraw:type="text" id="id287576526" fill="black" latexdraw:position="bl">
+                <text x="860.0" y="200.0">Thread 0</text>
+            </g>
+            <g latexdraw:type="text" id="id981227167" fill="black" latexdraw:position="bl">
+                <text x="860.0" y="240.0">Thread 1</text>
+            </g>
+            <g latexdraw:type="text" id="id201748001" fill="black" latexdraw:position="bl">
+                <text x="860.0" y="320.0">Thread 3</text>
+            </g>
+            <g latexdraw:type="text" id="id1922264412" fill="black" latexdraw:position="bl">
+                <text x="860.0" y="280.0">Thread 2</text>
+            </g>
+        </g>
+    </g>
+    <defs/>
+    <metadata>
+        <latexdraw:metadata>
+            <latexdraw:latexIncludes/>
+            <latexdraw:displayXScale>true</latexdraw:displayXScale>
+            <latexdraw:displayYScale>true</latexdraw:displayYScale>
+            <latexdraw:unit>CM</latexdraw:unit>
+            <latexdraw:zoom>1.0</latexdraw:zoom>
+            <latexdraw:magneticGridStyle>CUSTOMISED</latexdraw:magneticGridStyle>
+            <latexdraw:gridGap>20</latexdraw:gridGap>
+            <latexdraw:magneticGrid>true</latexdraw:magneticGrid>
+            <latexdraw:version>3.3.8</latexdraw:version>
+            <latexdraw:size>
+                <latexdraw:width>1227</latexdraw:width>
+                <latexdraw:height>777</latexdraw:height>
+            </latexdraw:size>
+            <latexdraw:position>
+                <latexdraw:x>53.0</latexdraw:x>
+                <latexdraw:y>23.0</latexdraw:y>
+            </latexdraw:position>
+        </latexdraw:metadata>
+    </metadata>
+</svg>
Index: /XIOS/dev/branch_openmp/Note/omp.svg
===================================================================
--- /XIOS/dev/branch_openmp/Note/omp.svg	(revision 1551)
+++ /XIOS/dev/branch_openmp/Note/omp.svg	(revision 1551)
@@ -0,0 +1,246 @@
+<?xml version="1.1" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg"
+    xmlns:latexdraw="http://latexdraw.sourceforge.net/namespaces/latexdraw"
+    version="1.1" baseProfile="full">
+    <g>
+        <g latexdraw:type="rectangle" id="id459221815">
+            <rect x="681.0" y="101.0" width="98.0" height="18.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="#ffff99"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id1818204147">
+            <rect x="581.0" y="101.0" width="98.0" height="18.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="#ffcccc"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id1650441069">
+            <rect x="481.0" y="101.0" width="98.0" height="18.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="#ccccff"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id318207462">
+            <rect x="381.0" y="101.0" width="98.0" height="18.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="#ccffff"/>
+        </g>
+        <g latexdraw:type="text" id="id920746579" fill="black" latexdraw:position="bl">
+            <text x="139.0909090909094" y="233.63636363636323">thread3</text>
+        </g>
+        <g latexdraw:type="text" id="id1300596269" fill="black" latexdraw:position="bl">
+            <text x="139.99999999999994" y="195.45454545454535">thread2</text>
+        </g>
+        <g latexdraw:type="text" id="id346424802" fill="black" latexdraw:position="bl">
+            <text x="139.99999999999994" y="155.45454545454547">thread1</text>
+        </g>
+        <g latexdraw:type="text" id="id1466050477" fill="black" latexdraw:position="bl">
+            <text x="139.09090909090895" y="115.45454545454544">thread0</text>
+        </g>
+        <g latexdraw:type="text" id="id1288026923" fill="black" latexdraw:position="bl">
+            <text x="79.09090909090921" y="175.45454545454547">Proc</text>
+        </g>
+        <g latexdraw:type="joinedLines" id="id840323805">
+            <polyline
+                points="319.09090909090907,230.90909090909088 698.1818181818181,230.90909090909088 699.090909090909,120.9090909090909 "
+                stroke-width="2.0" stroke="#999999" fill="none"
+                stroke-dasharray="8.819444444444445, 5.291666666666667"
+                latexdraw:rotationAngle="0.0" marker-end="url(#arrow1-840323805)"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id808598047">
+            <polyline
+                points="319.09090909090907,190.90909090909088 599.090909090909,191.8181818181818 600.0,120.9090909090909 "
+                stroke-width="2.0" stroke="#999999" fill="none"
+                stroke-dasharray="8.819444444444445, 5.291666666666667"
+                latexdraw:rotationAngle="0.0" marker-end="url(#arrow1-808598047)"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id1632018395">
+            <polyline
+                points="319.09090909090907,150.9090909090909 498.18181818181813,150.9090909090909 499.09090909090907,120.9090909090909 "
+                stroke-width="2.0" stroke="#999999" fill="none"
+                stroke-dasharray="8.819444444444445, 5.291666666666667"
+                latexdraw:rotationAngle="0.0" marker-end="url(#arrow1-1632018395)"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id1869161380">
+            <polyline
+                points="320.00000000000006,110.00000000000011 382.0,109.99999999999989 "
+                stroke-width="2.0" stroke="#999999"
+                stroke-dasharray="8.819444444444445, 5.291666666666667"
+                latexdraw:rotationAngle="0.0" marker-end="url(#arrow1-1869161380)"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id1655972420">
+            <rect x="221.0" y="101.0" width="98.0" height="18.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="#ccffff"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id850000822">
+            <rect x="221.0" y="141.0" width="98.0" height="18.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="#ccccff"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id231351160">
+            <rect x="221.0" y="181.0" width="98.0" height="18.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="#ffcccc"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id1037819829">
+            <rect x="221.0" y="221.0" width="98.0" height="18.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="#ffff99"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id386413300">
+            <polyline
+                points="779.090909090909,110.00000000000011 841.090909090909,109.99999999999989 "
+                stroke-width="2.0" stroke="#999999"
+                stroke-dasharray="8.819444444444445, 5.291666666666667"
+                latexdraw:rotationAngle="0.0" marker-end="url(#arrow1-386413300)"/>
+        </g>
+        <g latexdraw:type="text" id="id1072424365" fill="black" latexdraw:position="bl">
+            <text x="847.272727272727" y="115.45454545454528">MPI Send</text>
+        </g>
+        <g latexdraw:type="text" id="id1152682758" fill="black" latexdraw:position="bl">
+            <text x="362.7272727272726" y="185.45454545454552">Gather data to master thread</text>
+        </g>
+        <g latexdraw:type="rectangle" id="id377014633">
+            <rect x="221.0" y="321.0" width="98.0" height="18.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="#ccffff"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id194475805">
+            <polyline
+                points="320.00000000000006,330.0000000000001 382.0,329.9999999999999 "
+                stroke-width="2.0" stroke="#999999"
+                stroke-dasharray="8.819444444444445, 5.291666666666667"
+                latexdraw:rotationAngle="0.0" marker-end="url(#arrow1-194475805)"/>
+        </g>
+        <g latexdraw:type="text" id="id656688926" fill="black" latexdraw:position="bl">
+            <text x="79.09090909090921" y="395.4545454545455">Proc</text>
+        </g>
+        <g latexdraw:type="text" id="id1871708965" fill="black" latexdraw:position="bl">
+            <text x="139.09090909090895" y="334.54545454545445">thread0</text>
+        </g>
+        <g latexdraw:type="text" id="id1359648927" fill="black" latexdraw:position="bl">
+            <text x="140.90909090909093" y="376.3636363636365">thread1</text>
+        </g>
+        <g latexdraw:type="text" id="id932044243" fill="black" latexdraw:position="bl">
+            <text x="140.0000000000004" y="416.3636363636359">thread2</text>
+        </g>
+        <g latexdraw:type="text" id="id2136288675" fill="black" latexdraw:position="bl">
+            <text x="139.0909090909094" y="456.36363636363626">thread3</text>
+        </g>
+        <g latexdraw:type="rectangle" id="id1414445053">
+            <rect x="221.0" y="361.0" width="98.0" height="18.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="#ccccff"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id1506889173">
+            <rect x="221.0" y="401.0" width="98.0" height="18.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="#ffcccc"/>
+        </g>
+        <g latexdraw:type="rectangle" id="id16386845">
+            <rect x="221.0" y="441.0" width="98.0" height="18.0"
+                latexdraw:borderPos="outer" stroke-width="2.0"
+                stroke="black" fill="#ffff99"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id1447566993">
+            <polyline
+                points="320.00000000000006,370.9090909090911 382.0,370.9090909090909 "
+                stroke-width="2.0" stroke="#999999"
+                stroke-dasharray="8.819444444444445, 5.291666666666667"
+                latexdraw:rotationAngle="0.0" marker-end="url(#arrow1-1447566993)"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id850818637">
+            <polyline
+                points="319.09090909090907,410.0000000000001 381.090909090909,409.9999999999999 "
+                stroke-width="2.0" stroke="#999999"
+                stroke-dasharray="8.819444444444445, 5.291666666666667"
+                latexdraw:rotationAngle="0.0" marker-end="url(#arrow1-850818637)"/>
+        </g>
+        <g latexdraw:type="joinedLines" id="id819606156">
+            <polyline
+                points="319.09090909090907,450.0000000000001 381.090909090909,449.9999999999999 "
+                stroke-width="2.0" stroke="#999999"
+                stroke-dasharray="8.819444444444445, 5.291666666666667"
+                latexdraw:rotationAngle="0.0" marker-end="url(#arrow1-819606156)"/>
+        </g>
+        <g latexdraw:type="text" id="id296750195" fill="black" latexdraw:position="bl">
+            <text x="388.181818181818" y="335.45454545454527">MPI Send</text>
+        </g>
+        <g latexdraw:type="text" id="id1157217909" fill="black" latexdraw:position="bl">
+            <text x="388.181818181818" y="376.36363636363626">MPI Send</text>
+        </g>
+        <g latexdraw:type="text" id="id1366700220" fill="black" latexdraw:position="bl">
+            <text x="388.181818181818" y="415.45454545454527">MPI Send</text>
+        </g>
+        <g latexdraw:type="text" id="id395366622" fill="black" latexdraw:position="bl">
+            <text x="388.181818181818" y="456.36363636363626">MPI Send</text>
+        </g>
+    </g>
+    <defs>
+        <marker overflow="visible" orient="auto" id="arrow1-840323805">
+            <path
+                d="M 0.0 0.0 L -4.652083333333334 1.6614583333333335 L -4.652083333333334 0.0 L -4.652083333333334 -1.6614583333333335 z "
+                latexdraw:arrSizeNum="2.0" fill="#999999"/>
+        </marker>
+        <marker overflow="visible" orient="auto" id="arrow1-808598047">
+            <path
+                d="M 0.0 0.0 L -4.652083333333334 1.6614583333333335 L -4.652083333333334 0.0 L -4.652083333333334 -1.6614583333333335 z "
+                latexdraw:arrSizeNum="2.0" fill="#999999"/>
+        </marker>
+        <marker overflow="visible" orient="auto" id="arrow1-1632018395">
+            <path
+                d="M 0.0 0.0 L -4.652083333333334 1.6614583333333335 L -4.652083333333334 0.0 L -4.652083333333334 -1.6614583333333335 z "
+                latexdraw:arrSizeNum="2.0" fill="#999999"/>
+        </marker>
+        <marker overflow="visible" orient="auto" id="arrow1-1869161380">
+            <path
+                d="M 0.0 0.0 L -4.652083333333334 1.6614583333333335 L -4.652083333333334 0.0 L -4.652083333333334 -1.6614583333333335 z "
+                latexdraw:arrSizeNum="2.0" fill="#999999"/>
+        </marker>
+        <marker overflow="visible" orient="auto" id="arrow1-386413300">
+            <path
+                d="M 0.0 0.0 L -4.652083333333334 1.6614583333333335 L -4.652083333333334 0.0 L -4.652083333333334 -1.6614583333333335 z "
+                latexdraw:arrSizeNum="2.0" fill="#999999"/>
+        </marker>
+        <marker overflow="visible" orient="auto" id="arrow1-194475805">
+            <path
+                d="M 0.0 0.0 L -4.652083333333334 1.6614583333333335 L -4.652083333333334 0.0 L -4.652083333333334 -1.6614583333333335 z "
+                latexdraw:arrSizeNum="2.0" fill="#999999"/>
+        </marker>
+        <marker overflow="visible" orient="auto" id="arrow1-1447566993">
+            <path
+                d="M 0.0 0.0 L -4.652083333333334 1.6614583333333335 L -4.652083333333334 0.0 L -4.652083333333334 -1.6614583333333335 z "
+                latexdraw:arrSizeNum="2.0" fill="#999999"/>
+        </marker>
+        <marker overflow="visible" orient="auto" id="arrow1-850818637">
+            <path
+                d="M 0.0 0.0 L -4.652083333333334 1.6614583333333335 L -4.652083333333334 0.0 L -4.652083333333334 -1.6614583333333335 z "
+                latexdraw:arrSizeNum="2.0" fill="#999999"/>
+        </marker>
+        <marker overflow="visible" orient="auto" id="arrow1-819606156">
+            <path
+                d="M 0.0 0.0 L -4.652083333333334 1.6614583333333335 L -4.652083333333334 0.0 L -4.652083333333334 -1.6614583333333335 z "
+                latexdraw:arrSizeNum="2.0" fill="#999999"/>
+        </marker>
+    </defs>
+    <metadata>
+        <latexdraw:metadata>
+            <latexdraw:latexIncludes/>
+            <latexdraw:displayXScale>true</latexdraw:displayXScale>
+            <latexdraw:displayYScale>true</latexdraw:displayYScale>
+            <latexdraw:unit>CM</latexdraw:unit>
+            <latexdraw:zoom>1.1</latexdraw:zoom>
+            <latexdraw:magneticGridStyle>CUSTOMISED</latexdraw:magneticGridStyle>
+            <latexdraw:gridGap>20</latexdraw:gridGap>
+            <latexdraw:magneticGrid>false</latexdraw:magneticGrid>
+            <latexdraw:version>3.3.8</latexdraw:version>
+            <latexdraw:size>
+                <latexdraw:width>1227</latexdraw:width>
+                <latexdraw:height>777</latexdraw:height>
+            </latexdraw:size>
+            <latexdraw:position>
+                <latexdraw:x>53.0</latexdraw:x>
+                <latexdraw:y>23.0</latexdraw:y>
+            </latexdraw:position>
+        </latexdraw:metadata>
+    </metadata>
+</svg>
Index: /XIOS/dev/branch_openmp/Note/rapport ESIWACE.aux
===================================================================
--- /XIOS/dev/branch_openmp/Note/rapport ESIWACE.aux	(revision 1550)
+++ /XIOS/dev/branch_openmp/Note/rapport ESIWACE.aux	(revision 1551)
@@ -1,7 +1,19 @@
 \relax 
 \@writefile{toc}{\contentsline {section}{\numberline {1}Context}{1}}
-\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces On the left, each peak of computing power corresponds to the vallay of memory bandwidth which shows that the computing resources are alternating between calculates and IO. ON the right, both curves are smooth which means that the computing resources have a stable charge of work, either calculates or IO.}}{1}}
-\@writefile{toc}{\contentsline {section}{\numberline {2}Developpement of a thread-friendly MPI for XIOS}{2}}
-\@writefile{toc}{\contentsline {section}{\numberline {3}Performance of LMDZ using EP\_XIOS}{3}}
-\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces Speedup obtained by using EP in LMDZ simulations.}}{4}}
-\@writefile{toc}{\contentsline {section}{\numberline {4}Perspectives of EP\_XIOS}{4}}
+\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces On the left, each peak of computing power corresponds to the valley of memory bandwidth which shows that the computing resources are alternating between calculates and I/O. ON the right, both curves are smooth which means that the computing resources have a stable charge of work, either calculates or I/O.}}{1}}
+\@writefile{toc}{\contentsline {section}{\numberline {2}Development of thread-friendly XIOS}{2}}
+\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces Illustration of the domain decomposition used in LMDZ.}}{2}}
+\citation{Dinan:2013}
+\citation{Sridharan:2014}
+\@writefile{lof}{\contentsline {figure}{\numberline {3}{\ignorespaces }}{3}}
+\newlabel{fig:omp}{{3}{3}}
+\@writefile{lof}{\contentsline {figure}{\numberline {4}{\ignorespaces }}{3}}
+\newlabel{fig:scheme}{{4}{3}}
+\@writefile{toc}{\contentsline {section}{\numberline {3}Performance of LMDZ using EP\_XIOS}{5}}
+\@writefile{lof}{\contentsline {figure}{\numberline {5}{\ignorespaces Speedup obtained by using EP in LMDZ simulations.}}{5}}
+\bibstyle{plain}
+\bibdata{reference}
+\bibcite{Dinan:2013}{1}
+\bibcite{Sridharan:2014}{2}
+\@writefile{toc}{\contentsline {section}{\numberline {4}Performance of EP\_XIOS}{6}}
+\@writefile{toc}{\contentsline {section}{\numberline {5}Perspectives of EP\_XIOS}{6}}
Index: /XIOS/dev/branch_openmp/Note/rapport ESIWACE.bbl
===================================================================
--- /XIOS/dev/branch_openmp/Note/rapport ESIWACE.bbl	(revision 1550)
+++ /XIOS/dev/branch_openmp/Note/rapport ESIWACE.bbl	(revision 1551)
@@ -0,0 +1,16 @@
+\begin{thebibliography}{1}
+
+\bibitem{Dinan:2013}
+J.~Dinan, Pavan Balaji, D.~Goodell, D.~Miller, M.~Snir, and Rajeev Thakur.
+\newblock Enabling mpi interoperability through flexible communication
+  endpoints.
+\newblock In {\em EuroMPI 2013}, Madrid, Spain, 2013.
+
+\bibitem{Sridharan:2014}
+S.~Sridharan, J.~Dinan, and D.~D. Kalamkar.
+\newblock Enabling efficient multithreaded mpi communication through a
+  library-based implementation of mpi endpoints.
+\newblock In {\em SC14: International Conference for High Performance
+  Computing, Networking, Storage and Analysis}, pages 487--498, Nov 2014.
+
+\end{thebibliography}
Index: /XIOS/dev/branch_openmp/Note/rapport ESIWACE.blg
===================================================================
--- /XIOS/dev/branch_openmp/Note/rapport ESIWACE.blg	(revision 1550)
+++ /XIOS/dev/branch_openmp/Note/rapport ESIWACE.blg	(revision 1551)
@@ -1,48 +1,46 @@
-This is BibTeX, Version 0.99d (TeX Live 2015/Debian)
+This is BibTeX, Version 0.99d (TeX Live 2016)
 Capacity: max_strings=35307, hash_size=35307, hash_prime=30011
 The top-level auxiliary file: rapport ESIWACE.aux
-I found no \citation commands---while reading file rapport ESIWACE.aux
-I found no \bibdata command---while reading file rapport ESIWACE.aux
-I found no \bibstyle command---while reading file rapport ESIWACE.aux
-You've used 0 entries,
-            0 wiz_defined-function locations,
-            83 strings with 504 characters,
-and the built_in function-call counts, 0 in all, are:
-= -- 0
-> -- 0
-< -- 0
-+ -- 0
-- -- 0
-* -- 0
-:= -- 0
-add.period$ -- 0
-call.type$ -- 0
-change.case$ -- 0
+The style file: plain.bst
+Database file #1: reference.bib
+You've used 2 entries,
+            2118 wiz_defined-function locations,
+            512 strings with 4502 characters,
+and the built_in function-call counts, 893 in all, are:
+= -- 80
+> -- 51
+< -- 1
++ -- 20
+- -- 18
+* -- 63
+:= -- 146
+add.period$ -- 6
+call.type$ -- 2
+change.case$ -- 15
 chr.to.int$ -- 0
-cite$ -- 0
-duplicate$ -- 0
-empty$ -- 0
-format.name$ -- 0
-if$ -- 0
+cite$ -- 2
+duplicate$ -- 37
+empty$ -- 68
+format.name$ -- 18
+if$ -- 192
 int.to.chr$ -- 0
-int.to.str$ -- 0
-missing$ -- 0
-newline$ -- 0
-num.names$ -- 0
-pop$ -- 0
-preamble$ -- 0
-purify$ -- 0
+int.to.str$ -- 2
+missing$ -- 2
+newline$ -- 13
+num.names$ -- 4
+pop$ -- 22
+preamble$ -- 1
+purify$ -- 13
 quote$ -- 0
-skip$ -- 0
+skip$ -- 25
 stack$ -- 0
-substring$ -- 0
-swap$ -- 0
-text.length$ -- 0
+substring$ -- 38
+swap$ -- 12
+text.length$ -- 1
 text.prefix$ -- 0
 top$ -- 0
-type$ -- 0
+type$ -- 8
 warning$ -- 0
-while$ -- 0
-width$ -- 0
-write$ -- 0
-(There were 3 error messages)
+while$ -- 6
+width$ -- 3
+write$ -- 24
Index: /XIOS/dev/branch_openmp/Note/rapport ESIWACE.log
===================================================================
--- /XIOS/dev/branch_openmp/Note/rapport ESIWACE.log	(revision 1550)
+++ /XIOS/dev/branch_openmp/Note/rapport ESIWACE.log	(revision 1551)
@@ -1,3 +1,3 @@
-This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex 2017.8.24)  22 JUN 2018 17:31
+This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2016.7.25)  25 JUN 2018 17:20
 entering extended mode
  restricted \write18 enabled.
@@ -5,9 +5,9 @@
 **"rapport ESIWACE.tex"
 (./rapport ESIWACE.tex
-LaTeX2e <2016/02/01>
-Babel <3.9q> and hyphenation patterns for 3 language(s) loaded.
-(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
+LaTeX2e <2016/03/31>
+Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
+(/usr/local/texlive/2016/texmf-dist/tex/latex/base/article.cls
 Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
-(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
+(/usr/local/texlive/2016/texmf-dist/tex/latex/base/size10.clo
 File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
 )
@@ -24,11 +24,11 @@
 \bibindent=\dimen102
 )
-(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
+(/usr/local/texlive/2016/texmf-dist/tex/latex/base/inputenc.sty
 Package: inputenc 2015/03/17 v1.2c Input encoding file
 \inpenc@prehook=\toks14
 \inpenc@posthook=\toks15
 
-(/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def
-File: utf8.def 2015/12/03 v1.1r UTF-8 support for inputenc
+(/usr/local/texlive/2016/texmf-dist/tex/latex/base/utf8.def
+File: utf8.def 2016/02/28 v1.1s UTF-8 support for inputenc
 Now handling font encoding OML ...
 ... no UTF-8 mapping file for font encoding OML
@@ -36,6 +36,6 @@
 ... processing UTF-8 mapping file for font encoding T1
 
-(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu
-File: t1enc.dfu 2015/12/03 v1.1r UTF-8 support for inputenc
+(/usr/local/texlive/2016/texmf-dist/tex/latex/base/t1enc.dfu
+File: t1enc.dfu 2016/02/28 v1.1s UTF-8 support for inputenc
    defining Unicode char U+00A0 (decimal 160)
    defining Unicode char U+00A1 (decimal 161)
@@ -249,9 +249,13 @@
    defining Unicode char U+021A (decimal 538)
    defining Unicode char U+021B (decimal 539)
-   defining Unicode char U+01E02 (decimal 7682)
-   defining Unicode char U+01E03 (decimal 7683)
+   defining Unicode char U+1E02 (decimal 7682)
+   defining Unicode char U+1E03 (decimal 7683)
    defining Unicode char U+200C (decimal 8204)
+   defining Unicode char U+2010 (decimal 8208)
+   defining Unicode char U+2011 (decimal 8209)
+   defining Unicode char U+2012 (decimal 8210)
    defining Unicode char U+2013 (decimal 8211)
    defining Unicode char U+2014 (decimal 8212)
+   defining Unicode char U+2015 (decimal 8213)
    defining Unicode char U+2018 (decimal 8216)
    defining Unicode char U+2019 (decimal 8217)
@@ -269,6 +273,6 @@
 ... processing UTF-8 mapping file for font encoding OT1
 
-(/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu
-File: ot1enc.dfu 2015/12/03 v1.1r UTF-8 support for inputenc
+(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ot1enc.dfu
+File: ot1enc.dfu 2016/02/28 v1.1s UTF-8 support for inputenc
    defining Unicode char U+00A0 (decimal 160)
    defining Unicode char U+00A1 (decimal 161)
@@ -310,6 +314,6 @@
 ... processing UTF-8 mapping file for font encoding OMS
 
-(/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu
-File: omsenc.dfu 2015/12/03 v1.1r UTF-8 support for inputenc
+(/usr/local/texlive/2016/texmf-dist/tex/latex/base/omsenc.dfu
+File: omsenc.dfu 2016/02/28 v1.1s UTF-8 support for inputenc
    defining Unicode char U+00A7 (decimal 167)
    defining Unicode char U+00B6 (decimal 182)
@@ -334,30 +338,30 @@
    defining Unicode char U+2423 (decimal 9251)
 ))
-(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
+(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
 Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
 
-(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
+(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty
 Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
 \KV@toks@=\toks16
 )
-(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
-Package: graphics 2016/01/03 v1.0q Standard LaTeX Graphics (DPC,SPQR)
-
-(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
+(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
+Package: graphics 2016/05/09 v1.0r Standard LaTeX Graphics (DPC,SPQR)
+
+(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty
 Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
 )
-(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg
-File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
-)
-Package graphics Info: Driver file: pdftex.def on input line 95.
-
-(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
+(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
+File: graphics.cfg 2016/01/02 v1.10 sample graphics configuration
+)
+Package graphics Info: Driver file: pdftex.def on input line 96.
+
+(/usr/local/texlive/2016/texmf-dist/tex/latex/pdftex-def/pdftex.def
 File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
 
-(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
-Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
-)
-(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
-Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
+(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty
+Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
+)
+(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
+Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
 )
 \Gread@gobject=\count87
@@ -366,5 +370,5 @@
 \Gin@req@width=\dimen104
 )
-(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty
+(/usr/local/texlive/2016/texmf-dist/tex/latex/listings/listings.sty
 \lst@mode=\count88
 \lst@gtempboxa=\box26
@@ -380,5 +384,5 @@
 \lst@maxwidth=\dimen108
 
-(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty
+(/usr/local/texlive/2016/texmf-dist/tex/latex/listings/lstmisc.sty
 File: lstmisc.sty 2015/06/04 1.6 (Carsten Heinz)
 \c@lstnumber=\count94
@@ -386,22 +390,22 @@
 \lst@framebox=\box27
 )
-(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg
+(/usr/local/texlive/2016/texmf-dist/tex/latex/listings/listings.cfg
 File: listings.cfg 2015/06/04 1.6 listings configuration
 ))
 Package: listings 2015/06/04 1.6 (Carsten Heinz)
 
-(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
-Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)
-
-(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg
-File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
+(/usr/local/texlive/2016/texmf-dist/tex/latex/xcolor/xcolor.sty
+Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
+
+(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/color.cfg
+File: color.cfg 2016/01/02 v1.6 sample color configuration
 )
 Package xcolor Info: Package option `usenames' ignored on input line 216.
 Package xcolor Info: Driver file: pdftex.def on input line 225.
 
-(/usr/share/texlive/texmf-dist/tex/latex/colortbl/colortbl.sty
+(/usr/local/texlive/2016/texmf-dist/tex/latex/colortbl/colortbl.sty
 Package: colortbl 2012/02/13 v1.0a Color table columns (DPC)
 
-(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty
+(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/array.sty
 Package: array 2014/10/28 v2.4c Tabular extension package (FMi)
 \col@sep=\dimen109
@@ -415,39 +419,39 @@
 )
 \rownum=\count96
-Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.
-Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341.
-Package xcolor Info: Model `RGB' extended on input line 1353.
-Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.
-Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.
-Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.
-Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.
-Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.
-Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.
-
-(/usr/share/texlive/texmf-dist/tex/latex/graphics/dvipsnam.def
+Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
+Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
+Package xcolor Info: Model `RGB' extended on input line 1364.
+Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
+Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
+Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
+Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
+Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
+Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
+
+(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/dvipsnam.def
 File: dvipsnam.def 2015/12/30 v3.0k Driver-dependent file (DPC,SPQR)
 )
-(/usr/share/texlive/texmf-dist/tex/latex/xcolor/svgnam.def
-File: svgnam.def 2007/01/21 v2.11 Predefined colors according to SVG 1.1 (UK)
+(/usr/local/texlive/2016/texmf-dist/tex/latex/xcolor/svgnam.def
+File: svgnam.def 2016/05/11 v2.12 Predefined colors according to SVG 1.1 (UK)
 ))
-(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
-Package: amsmath 2016/03/03 v2.15a AMS math features
+(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsmath.sty
+Package: amsmath 2016/03/10 v2.15b AMS math features
 \@mathmargin=\skip46
 
 For additional information on amsmath, use the `?' option.
-(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
+(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amstext.sty
 Package: amstext 2000/06/29 v2.01 AMS text
 
-(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
+(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsgen.sty
 File: amsgen.sty 1999/11/30 v2.0 generic functions
 \@emptytoks=\toks20
 \ex@=\dimen111
 ))
-(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
+(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy.sty
 Package: amsbsy 1999/11/29 v1.2d Bold Symbols
 \pmbraise@=\dimen112
 )
-(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
-Package: amsopn 1999/12/14 v2.01 operator names
+(/usr/local/texlive/2016/texmf-dist/tex/latex/amsmath/amsopn.sty
+Package: amsopn 2016/03/08 v2.02 operator names
 )
 \inf@bad=\count97
@@ -464,6 +468,6 @@
 \strutbox@=\box29
 \big@size=\dimen113
-LaTeX Font Info:    Redeclaring font encoding OML on input line 630.
-LaTeX Font Info:    Redeclaring font encoding OMS on input line 631.
+LaTeX Font Info:    Redeclaring font encoding OML on input line 634.
+LaTeX Font Info:    Redeclaring font encoding OMS on input line 635.
 \macc@depth=\count102
 \c@MaxMatrixCols=\count103
@@ -486,11 +490,12 @@
 \multlinetaggap=\skip48
 \mathdisplay@stack=\toks24
-LaTeX Info: Redefining \[ on input line 2735.
-LaTeX Info: Redefining \] on input line 2736.
-)
-(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty
+LaTeX Info: Redefining \[ on input line 2739.
+LaTeX Info: Redefining \] on input line 2740.
+)
+(/usr/local/texlive/2016/texmf-dist/tex/latex/url/url.sty
 \Urlmuskip=\muskip11
 Package: url 2013/09/16  ver 3.4  Verb mode for urls, etc.
-) (./rapport ESIWACE.aux)
+)
+(./rapport ESIWACE.aux)
 \openout1 = `"rapport ESIWACE.aux"'.
 
@@ -508,5 +513,5 @@
 LaTeX Font Info:    ... okay on input line 16.
 
-(/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
+(/usr/local/texlive/2016/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
 [Loading MPS to PDF converter (version 2006.09.02).]
 \scratchcounter=\count109
@@ -521,15 +526,14 @@
 \makeMPintoPDFobject=\count114
 \everyMPtoPDFconversion=\toks26
-) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
-Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO
-)
-
-(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty
-Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
+) (/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
+Package: pdftexcmds 2016/05/10 v0.21 Utility functions of pdfTeX for LuaTeX (HO
+)
+
+(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty
+Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
 Package ifluatex Info: LuaTeX not detected.
 )
-(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty
-Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
-Package ifpdf Info: pdfTeX in PDF mode is detected.
+(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty
+Package: ifpdf 2016/05/14 v3.1 Provides the ifpdf switch
 )
 Package pdftexcmds Info: LuaTeX not detected.
@@ -538,21 +542,21 @@
 Package pdftexcmds Info: \pdfdraftmode found.
 )
-(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
-Package: epstopdf-base 2010/02/09 v2.5 Base part for package epstopdf
-
-(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
-Package: grfext 2010/08/19 v1.1 Manage graphics extensions (HO)
-
-(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty
-Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO)
+(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
+Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf
+
+(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/grfext.sty
+Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO)
+
+(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty
+Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
 ))
-(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
-Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)
-
-(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
-Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)
-
-(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty
-Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
+(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty
+Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
+
+(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
+Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
+
+(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/etexcmds.sty
+Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
 Package etexcmds Info: Could not find \expanded.
 (etexcmds)             That can mean that you are not using pdfTeX 1.50 or
@@ -563,7 +567,7 @@
 (grfext)             [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE
 G,.JBIG2,.JB2,.eps]
-(grfext)             \AppendGraphicsExtensions on input line 452.
-
-(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
+(grfext)             \AppendGraphicsExtensions on input line 456.
+
+(/usr/local/texlive/2016/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
 File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
 e
@@ -584,39 +588,60 @@
  [1
 
-{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <./Charge1.png> <./Charge2.
-png>] [2]
-[3] <LMDZ_perf.png, id=24, 530.73282pt x 255.95625pt>
+{/usr/local/texlive/2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map} <./Charg
+e1.png> <./Charge2.png>] <domain.pdf, id=16, 472.31454pt x 142.26149pt>
+File: domain.pdf Graphic file (type pdf)
+ <use domain.pdf>
+Package pdftex.def Info: domain.pdf used on input line 59.
+(pdftex.def)             Requested size: 236.1567pt x 71.13055pt.
+
+<omp.pdf, id=17, 486.07599pt x 210.5466pt>
+File: omp.pdf Graphic file (type pdf)
+ <use omp.pdf>
+Package pdftex.def Info: omp.pdf used on input line 67.
+(pdftex.def)             Requested size: 291.64784pt x 126.32893pt.
+
+
+LaTeX Warning: `!h' float specifier changed to `!ht'.
+
+[2 <./domain.pdf>] <scheme.png, id=27, 665.48625pt x 517.935pt>
+File: scheme.png Graphic file (type png)
+
+<use scheme.png>
+Package pdftex.def Info: scheme.png used on input line 79.
+(pdftex.def)             Requested size: 266.18977pt x 207.17032pt.
+ [3 <./omp.pdf> <./scheme.png (PNG copy)>] [4]
+<LMDZ_perf.png, id=39, 530.73282pt x 255.95625pt>
 File: LMDZ_perf.png Graphic file (type png)
  <use LMDZ_perf.png>
-Package pdftex.def Info: LMDZ_perf.png used on input line 122.
+Package pdftex.def Info: LMDZ_perf.png used on input line 144.
 (pdftex.def)             Requested size: 318.44214pt x 153.57492pt.
-
-[4 <./LMDZ_perf.png (PNG copy)>] (./rapport ESIWACE.aux) ) 
+ [5 <./LMDZ_perf.png (PNG copy)>] (./rapport ESIWACE.bbl) [6] (./rapport ESIWAC
+E.aux) ) 
 Here is how much of TeX's memory you used:
- 4569 strings out of 494953
- 60237 string characters out of 6180977
- 137800 words of memory out of 5000000
- 7791 multiletter control sequences out of 15000+600000
+ 4595 strings out of 493014
+ 61054 string characters out of 6133351
+ 142700 words of memory out of 5000000
+ 8068 multiletter control sequences out of 15000+600000
  9090 words of font info for 34 fonts, out of 8000000 for 9000
- 14 hyphenation exceptions out of 8191
- 41i,8n,35p,426b,262s stack positions out of 5000i,500n,10000p,200000b,80000s
-</usr/share/texlive/t
-exmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texlive/texmf-d
-ist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/texlive/texmf-dist/fo
-nts/type1/public/amsfonts/cm/cmmi7.pfb></usr/share/texlive/texmf-dist/fonts/typ
-e1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf-dist/fonts/type1/publ
-ic/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsf
-onts/cm/cmr17.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm
-/cmr6.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pf
-b></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb></usr/
-share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/
-texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmti10.pfb></usr/share/texliv
-e/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb></usr/share/texlive/texm
-f-dist/fonts/type1/public/amsfonts/cm/cmtt8.pfb>
-Output written on "rapport ESIWACE.pdf" (4 pages, 178489 bytes).
+ 1141 hyphenation exceptions out of 8191
+ 41i,8n,35p,1270b,264s stack positions out of 5000i,500n,10000p,200000b,80000s
+</usr/local/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx
+12.pfb></usr/local/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi1
+0.pfb></usr/local/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.
+pfb></usr/local/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pf
+b></usr/local/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb>
+</usr/local/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb></
+usr/local/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmr6.pfb></usr
+/local/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb></usr/lo
+cal/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb></usr/local
+/texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/local/
+texlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmti10.pfb></usr/local/t
+exlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb></usr/local/te
+xlive/2016/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt8.pfb>
+Output written on "rapport ESIWACE.pdf" (6 pages, 229957 bytes).
 PDF statistics:
- 72 PDF objects out of 1000 (max. 8388607)
- 49 compressed objects within 1 object stream
+ 90 PDF objects out of 1000 (max. 8388607)
+ 62 compressed objects within 1 object stream
  0 named destinations out of 1000 (max. 500000)
- 16 words of extra memory for PDF output out of 10000 (max. 10000000)
-
+ 31 words of extra memory for PDF output out of 10000 (max. 10000000)
+
Index: /XIOS/dev/branch_openmp/Note/rapport ESIWACE.tex
===================================================================
--- /XIOS/dev/branch_openmp/Note/rapport ESIWACE.tex	(revision 1550)
+++ /XIOS/dev/branch_openmp/Note/rapport ESIWACE.tex	(revision 1551)
@@ -9,5 +9,5 @@
 % Title Page
 
-\title{Developping XIOS with multithread : to accelerate the IO of climate models}
+\title{Developing XIOS with multi-thread : to accelerate the I/O of climate models}
 
 \author{}
@@ -20,11 +20,11 @@
 
 The simulation models of climate systems, running on a large number of computing resources can produce an important volume of data. At this 
-scale, the IO and the post-treatement of data becomes a bottle-neck for the performance. In order to manage efficiently the data flux 
-generated by the simulations, we use XIOS developped by the Institut Pierre Simon Laplace and Maison de la simulation.
+scale, the I/O and the post-treatment of data becomes a bottle-neck for the performance. In order to manage efficiently the data flux 
+generated by the simulations, we use XIOS developed by the Institut Pierre Simon Laplace and Maison de la simulation.
 
-XIOS, a libarary dedicated to intense calculates, allows us to easily and efficiently manage the parallel IO on the storage systems. XIOS 
+XIOS, a library dedicated to intense calculates, allows us to easily and efficiently manage the parallel I/O on the storage systems. XIOS 
 uses the client/server scheme in which computing resources (server) are reserved exclusively for IO in order to minimize their impact on 
-the performance of the climate models (client). The clients and servers are executed in parallel and communicate asynchronuously. In this 
-way, the IO peaks can be smoothed out as data fluxes are send to server constantly throughout the simulation and the time spent on data 
+the performance of the climate models (client). The clients and servers are executed in parallel and communicate asynchronously. In this 
+way, the I/O peaks can be smoothed out as data fluxes are send to server constantly throughout the simulation and the time spent on data 
 writing on the server side can be overlapped completely by calculates on the client side. 
 
@@ -32,38 +32,61 @@
 \includegraphics[scale=0.4]{Charge1.png}
 \includegraphics[scale=0.4]{Charge2.png}
-\caption{On the left, each peak of computing power corresponds to the vallay of memory bandwidth which shows that the computing resources 
-are alternating between calculates and IO. ON the right, both curves are smooth which means that the computing resources have a stable 
-charge of work, either calculates or IO.}
+\caption{On the left, each peak of computing power corresponds to the valley of memory bandwidth which shows that the computing resources 
+are alternating between calculates and I/O. ON the right, both curves are smooth which means that the computing resources have a stable 
+charge of work, either calculates or I/O.}
 \end{figure}
 
 
 XIOS works well with many climate simulation codes. For example, LMDZ\footnote{LMDZ is a general circulation model (or global climate model) 
-developped since the 70s at the "Laboratoire de MÃ©tÃ©orologie Dynamique", which includes various variants for the Earth and other planets 
+developed since the 70s at the "Laboratoire de MÃ©tÃ©orologie Dynamique", which includes various variants for the Earth and other planets 
 (Mars, Titan, Venus, Exoplanets). The 'Z' in LMDZ stands for "zoom" (and the 'LMD' is for  'Laboratoire de MÃ©tÃ©orologie Dynamique"). 
-\url{http://lmdz.lmd.jussieu.fr}}, NENO\footnote{Nucleus for European Modelling of the Ocean alias NEMO is a 
+\url{http://lmdz.lmd.jussieu.fr}}, NENO\footnote{Nucleus for European Modeling of the Ocean alias NEMO is a 
 state-of-the-art modelling framework of ocean related engines. \url{https://www.nemo-ocean.eu}}, ORCHIDEE\footnote{the land surface 
 model of the IPSL (Institut Pierre Simon Laplace) Earth System Model. \url{https://orchidee.ipsl.fr}}, and DYNAMICO\footnote{The DYNAMICO 
 project develops a new dynamical core for LMD-Z, the atmospheric general circulation model (GCM) part of IPSL-CM Earth System Model. 
-\url{http://www.lmd.polytechnique.fr/~dubos/DYNAMICO/}} all use XIOS as the output backend. M\'et\'eoFrance and MetOffice also choose XIOS 
-to manege the IO for their models.
+\url{http://www.lmd.polytechnique.fr/~dubos/DYNAMICO/}} all use XIOS as the output back end. M\'et\'eoFrance and MetOffice also choose XIOS 
+to manege the I/O for their models.
 
 
-\section{Developpement of thread-friendly XIOS}
+\section{Development of thread-friendly XIOS}
+
+Although XIOS copes well with many models, there is one potential optimization in XIOS which needs to be investigated: making XIOS thread-friendly.
+
+This topic comes along with the configuration of the climate models. Take LMDZ as example, it is designed with the 2-level parallelization scheme. To be more specific, LMDZ uses the domain decomposition method in which each sub-domain is associated with one MPI process. Inside of the sub-domain, the model also uses OpenMP derivatives to accelerate the computation. We can imagine that the sub-domain be divided into sub-sub-domain and is managed by threads. 
+
+\begin{figure}[h]
+\centering
+\includegraphics[scale=0.5]{domain.pdf}
+\caption{Illustration of the domain decomposition used in LMDZ.}
+\end{figure}
+
+As we know, each sub-domain, or in another word, each MPI process is a XIOS client. The data exchange between client and XIOS servers is handled by MPI communications. In order to write an output field, all threads must gather the data to the master thread who acts as MPI process in order to call MPI routines. There are two disadvantages about this method : first, we have to spend time on gathering information to the master thread which not only increases the memory use, but also implies an OpenMP barrier; second, while the master thread calls MPI routine, other threads are in the idle state thus a waster of computing resources. What we want obtain with the thread-friendly XIOS is that all threads can act like MPI processes. They can call directly the MPI routine thus no waste in memory nor in computing resources as shown in Figure \ref{fig:omp}.
+
+\begin{figure}[h!]
+\centering
+\includegraphics[scale=0.6]{omp.pdf}
+\caption{}
+\label{fig:omp}
+\end{figure}
+
+There are two ways to make XIOS thread-friendly. First of all, change the structure of XIOS which demands a lot of modification is the XIOS library. Knowing that XIOS is about 100 000 lines of code, this method will be very time consuming. What's more, the modification will be local to XIOS. If we want to optimize an other code to be thread-friendly, we have to redo the modifications. The second choice is to add an extra interface to MPI in order to manage the threads. When a thread want to call an MPI routine inside XIOS, it will first pass the interface, in which the communication information will be analyzed before the MPI routine is invoked. With this method, we only need to modify a very small part of XIOS in order to make it work. What is more interesting is that the interface we created can be adjusted to suit other MPI based libraries.
 
 
-XIOS is a library dedicated to IO management of climate code. It has a client-server pattern in which clients are in charge of computations 
-and servers manage the reading and writing of files. The communication between clients and servers are handled by MPI.
-However, some of the climate models (\textit{e.g.} LMDZ) nowadays use an hybrid programming policy. Within a shared memory node, OpenMP 
-directives are used to manage message exchanges. In such configuration, XIOS can not take full advantages of the computing resources to 
-maximize the performance. This is because XIOS can only work with MPI processes. Before each call of XIOS routines, threads of one MPI 
-process must gather their information to the master thread who works as an MPI process. After the call, the master thread distributes the 
-updated information among its slave threads. As result, all slave threads have to wait while the master thread calls the XIOS routines. 
-This introduce extra synchronization into the model and leads to not optimized performance. Aware of this situation, we need to develop a 
-new version of XIOS (EP\_XIOS) which can work with threads, or in other words, can consider threads as they were processes. To do so, we 
-introduce the MPI endpoints.  
+In this project, we choose to implement the interface to handle the threads. To do so, we introduce the MPI\_endpoint which is a concept proposed in the last MPI Forum and several papers has already discussed the importance of such idea and have introduced the framework of the MPI\_endpoint \cite{Dinan:2013}\cite{Sridharan:2014}. The concept of an endpoint is shown by Figure \ref{fig:scheme}. Threads of an MPI process is associated with a unique rank (global endpoint rank) and an endpoint communicator. They also have a local rank (rank inside the MPI process) which is very similar to the \verb|OMP_thread_num| rank. 
+
+\begin{figure}[h!]
+\begin{center}
+\includegraphics[scale=0.4]{scheme.png} 
+\end{center}
+\caption{}
+\label{fig:scheme}
+\end{figure}
+
+%XIOS is a library dedicated to IO management of climate code. It has a client-server pattern in which clients are in charge of computations and servers manage the reading and writing of files. The communication between clients and servers are handled by MPI. However, some of the climate models (\textit{e.g.} LMDZ) nowadays use an hybrid programming policy. Within a shared memory node, OpenMP directives are used to manage message exchanges. In such configuration, XIOS can not take full advantages of the computing resources to maximize the performance. This is because XIOS can only work with MPI processes. Before each call of XIOS routines, threads of one MPI process must gather their information to the master thread who works as an MPI process. After the call, the master thread distributes the updated information among its slave threads. As result, all slave threads have to wait while the master thread calls the XIOS routines. This introduce extra synchronization into the model and leads to not optimized performance. Aware of this situation, we need to develop a new version of XIOS (EP\_XIOS) which can work with threads, or in other words, can consider threads as they were processes. To do so, we introduce the MPI endpoints.  
 
 
-The MPI endpoints (EP) is a layer on top of an existing MPI Implementation. All MPI function, or in our work the functions used in XIOS, 
-will be reimplemented in order to cope with OpenMP threads. The idea is that, in the MPI endpoints environment, each OpenMP thread will be 
+The MPI\_endpoints interface we implemented lies on top of an existing MPI Implementation. It consists of wrappers to all MPI functions used in XIOS. 
+
+will be re-implemented in order to cope with OpenMP threads. The idea is that, in the MPI endpoints environment, each OpenMP thread will be 
 associated with a unique rank and with an endpoint communicator. This rank (EP rank) will replace the role of the classic MPI rank and will 
 be used in MPI communications. In order to successfully execute an MPI communication, for example \verb|MPI_Send|, we know already which 
@@ -73,5 +96,5 @@
 
 In XIOS, we used the ``probe'' technique to search for arrived messages and then performing the receive action. The principle is 
-that sender processes execute the send operations as usual. However, to minimise the time spent on waiting incoming messages, the receiver 
+that sender processes execute the send operations as usual. However, to minimize the time spent on waiting incoming messages, the receiver 
 processe performs in the first place the \verb|MPI_Probe| function to check if a message destinated to it has been published. If yes, the 
 process execute in the second place the \verb|MPI_Recv| to receive the message. In this situation, if we introduce the threads, problems 
@@ -135,5 +158,18 @@
 decrease in time of 25\%. Even the 25\% may seems to be small, it is still a gain in performance with existing computing resources.
 
+\section{Performance of EP\_XIOS}
+
+workfloz\_cmip6 
+light output
+24*8+2
+30s - 52s
+32 days
+histmth with daily output
+
 \section{Perspectives of EP\_XIOS}
 
+
+\bibliographystyle{plain}
+\bibliography{reference}
+
 \end{document}          
