From 4d89a2e64a43989391640a25016752274541282c Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 26 Feb 2021 16:26:59 +0100 Subject: [PATCH] [EDF22895] : Fix snippets in documentation --- doc/user/input/data_movement.rst | 46 ++++++++++++++++---------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/doc/user/input/data_movement.rst b/doc/user/input/data_movement.rst index a168d47a9..1a3086157 100644 --- a/doc/user/input/data_movement.rst +++ b/doc/user/input/data_movement.rst @@ -6,7 +6,7 @@ Read Mesh from file To read a mesh from a MED file simply invoke -.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest_ML.py :start-after: UG_ReadMeshFromFile_1 :end-before: UG_ReadMeshFromFile_1 @@ -15,14 +15,14 @@ return the first one. You can access to a precise mesh by doing -.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest_ML.py :start-after: UG_ReadMeshFromFile_2 :end-before: UG_ReadMeshFromFile_2 Read field from file -------------------- -.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest_ML.py :start-after: UG_ReadField_1 :end-before: UG_ReadField_1 @@ -34,13 +34,13 @@ specify the field name. To know all fields in "file.med" either you read exception thrown or you can invoke -.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest_ML.py :start-after: UG_ReadField_2 :end-before: UG_ReadField_2 When you have the fieldName you can safely invoke. -.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest_ML.py :start-after: UG_ReadField_3 :end-before: UG_ReadField_3 @@ -55,7 +55,7 @@ A time step is identified by two piece of information : To retrieve list of time step of a field invoke -.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest_ML.py :start-after: UG_ReadField_4 :end-before: UG_ReadField_4 @@ -66,7 +66,7 @@ the triplet is the physical time step. To read a field "Field1" at time step defined by pair "(ts0,ts1)" you can invoke -.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest_ML.py :start-after: UG_ReadField_5 :end-before: UG_ReadField_5 @@ -93,7 +93,7 @@ This responsability is let to the end user to avoid misrenumbering effect. You can check this by invoking: -.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest_ML.py :start-after: UG_ReadMeshFromFile_3 :end-before: UG_ReadMeshFromFile_3 @@ -101,7 +101,7 @@ To reorder cells you are encouraged to read :ref:`this `. If *m* is well numbered, you can dump it into a file by doing : -.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest_ML.py :start-after: UG_ReadMeshFromFile_0 :end-before: UG_ReadMeshFromFile_0 @@ -117,7 +117,7 @@ You are expected to have a field *f* with a mesh :ref:`correctly numbered.