Salome HOME
Merge branch 'gn_evol'
authorGERALD NICOLAS <gerald.nicolas@edf.fr>
Wed, 5 Sep 2018 12:49:05 +0000 (14:49 +0200)
committerGERALD NICOLAS <gerald.nicolas@edf.fr>
Wed, 5 Sep 2018 12:49:05 +0000 (14:49 +0200)
68 files changed:
doc/en/images/yacs_01.png [new file with mode: 0644]
doc/en/images/yacs_a_01.png [new file with mode: 0644]
doc/en/images/yacs_b_01.png [new file with mode: 0644]
doc/en/images/yacs_c_01.png [new file with mode: 0644]
doc/en/images/yacs_c_02.png [new file with mode: 0644]
doc/en/images/yacs_c_03.png [new file with mode: 0644]
doc/en/images/yacs_c_04.png [new file with mode: 0644]
doc/en/images/yacs_c_05.png [new file with mode: 0644]
doc/en/images/yacs_c_06.png [new file with mode: 0644]
doc/en/images/yacs_c_07.png [new file with mode: 0644]
doc/en/images/yacs_c_08.png [new file with mode: 0644]
doc/en/images/yacs_c_09.png [new file with mode: 0644]
doc/en/images/yacs_d_01.png [new file with mode: 0644]
doc/en/yacs.rst
doc/files/tutorial_1.py
doc/files/tutorial_2.py
doc/files/tutorial_3.py
doc/files/tutorial_4.py
doc/files/tutorial_4.xml
doc/files/tutorial_5.py
doc/files/tutorial_6.py
doc/files/tutorial_6.xml [changed mode: 0755->0644]
doc/files/yacs_01.en.xml
doc/files/yacs_01.fr.xml
doc/fr/images/yacs_01.png [new file with mode: 0644]
doc/fr/images/yacs_a_01.png [new file with mode: 0644]
doc/fr/images/yacs_b_01.png [new file with mode: 0644]
doc/fr/images/yacs_c_01.png [new file with mode: 0644]
doc/fr/images/yacs_c_02.png [new file with mode: 0644]
doc/fr/images/yacs_c_03.png [new file with mode: 0644]
doc/fr/images/yacs_c_04.png [new file with mode: 0644]
doc/fr/images/yacs_c_05.png [new file with mode: 0644]
doc/fr/images/yacs_c_06.png [new file with mode: 0644]
doc/fr/images/yacs_c_07.png [new file with mode: 0644]
doc/fr/images/yacs_c_08.png [new file with mode: 0644]
doc/fr/images/yacs_c_09.png [new file with mode: 0644]
doc/fr/images/yacs_d_01.png [new file with mode: 0644]
doc/fr/yacs.rst
doc/images/yacs_01.png [deleted file]
doc/images/yacs_a_01.png [deleted file]
doc/images/yacs_b_01.png [deleted file]
doc/images/yacs_c_01.png [deleted file]
doc/images/yacs_c_02.png [deleted file]
doc/images/yacs_c_03.png [deleted file]
doc/images/yacs_c_04.png [deleted file]
doc/images/yacs_c_05.png [deleted file]
doc/images/yacs_c_06.png [deleted file]
doc/images/yacs_c_07.png [deleted file]
doc/images/yacs_c_08.png [deleted file]
doc/images/yacs_c_09.png [deleted file]
doc/images/yacs_d_01.png [deleted file]
resources/CMakeLists.txt
resources/SalomeApp.xml.in
resources/yacs_01.en.xml [deleted file]
resources/yacs_01.fr.xml [deleted file]
src/tests/Test/test_1.py
src/tests/Test/test_2.py
src/tests/Test/test_3.py
src/tests/Test/test_4.py
src/tests/Test/test_5.py
src/tests/Test/test_6.py
src/tests/Test/test_util.py
src/tests/Test/tutorial_1.py
src/tests/Test/tutorial_2.py
src/tests/Test/tutorial_3.py
src/tests/Test/tutorial_4.py
src/tests/Test/tutorial_5.py
src/tests/Test/tutorial_6.py

diff --git a/doc/en/images/yacs_01.png b/doc/en/images/yacs_01.png
new file mode 100644 (file)
index 0000000..eba9c78
Binary files /dev/null and b/doc/en/images/yacs_01.png differ
diff --git a/doc/en/images/yacs_a_01.png b/doc/en/images/yacs_a_01.png
new file mode 100644 (file)
index 0000000..9e29132
Binary files /dev/null and b/doc/en/images/yacs_a_01.png differ
diff --git a/doc/en/images/yacs_b_01.png b/doc/en/images/yacs_b_01.png
new file mode 100644 (file)
index 0000000..ec2b428
Binary files /dev/null and b/doc/en/images/yacs_b_01.png differ
diff --git a/doc/en/images/yacs_c_01.png b/doc/en/images/yacs_c_01.png
new file mode 100644 (file)
index 0000000..693630a
Binary files /dev/null and b/doc/en/images/yacs_c_01.png differ
diff --git a/doc/en/images/yacs_c_02.png b/doc/en/images/yacs_c_02.png
new file mode 100644 (file)
index 0000000..b5a23e8
Binary files /dev/null and b/doc/en/images/yacs_c_02.png differ
diff --git a/doc/en/images/yacs_c_03.png b/doc/en/images/yacs_c_03.png
new file mode 100644 (file)
index 0000000..8341bc3
Binary files /dev/null and b/doc/en/images/yacs_c_03.png differ
diff --git a/doc/en/images/yacs_c_04.png b/doc/en/images/yacs_c_04.png
new file mode 100644 (file)
index 0000000..6d77c37
Binary files /dev/null and b/doc/en/images/yacs_c_04.png differ
diff --git a/doc/en/images/yacs_c_05.png b/doc/en/images/yacs_c_05.png
new file mode 100644 (file)
index 0000000..21fdaec
Binary files /dev/null and b/doc/en/images/yacs_c_05.png differ
diff --git a/doc/en/images/yacs_c_06.png b/doc/en/images/yacs_c_06.png
new file mode 100644 (file)
index 0000000..ed99290
Binary files /dev/null and b/doc/en/images/yacs_c_06.png differ
diff --git a/doc/en/images/yacs_c_07.png b/doc/en/images/yacs_c_07.png
new file mode 100644 (file)
index 0000000..fbddf89
Binary files /dev/null and b/doc/en/images/yacs_c_07.png differ
diff --git a/doc/en/images/yacs_c_08.png b/doc/en/images/yacs_c_08.png
new file mode 100644 (file)
index 0000000..897b7e5
Binary files /dev/null and b/doc/en/images/yacs_c_08.png differ
diff --git a/doc/en/images/yacs_c_09.png b/doc/en/images/yacs_c_09.png
new file mode 100644 (file)
index 0000000..8f1282b
Binary files /dev/null and b/doc/en/images/yacs_c_09.png differ
diff --git a/doc/en/images/yacs_d_01.png b/doc/en/images/yacs_d_01.png
new file mode 100644 (file)
index 0000000..94f407a
Binary files /dev/null and b/doc/en/images/yacs_d_01.png differ
index 710bb9183d3d47176c9279e3c244ec3e217142b5..e0b1625d27be723188215c768ab0ddd368124f73 100644 (file)
@@ -16,11 +16,11 @@ Introduction
 
 Here is the description of a scheme for a computation in which a value is to be stabilized. The computation starts over an initial mesh, then HOMARD makes an adaptation. A new computation is done over this new mesh and its result is analyzed. Depending on this analysis, the coupling goes on or does not. The general look of the scheme is this one:
 
-.. image:: ../images/yacs_01.png
+.. image:: ./images/yacs_01.png
    :align: center
-   :alt: yacs - allure générale
-   :width: 512
-   :height: 306
+   :alt: yacs - global view
+   :width: 530
+   :height: 281
 
 .. note::
   Among all the treated data, certain are unchanging: the name of the directory of calculation, the name of the case, the name of the hypothesis of adaptation, etc. It was chosen to impose them 'hard' in the various parameters of service or within the scripts python. We could also define them a priori in a node PresetNode and then pass on them by links. We did not hold this solution because it increases strongly the number of parameters and links attached to every node. It is very penalizing for the legibility of the scheme. The only data which are going to circulate are the ones been imperative by the description of the service and those that evolve during the execution of the scheme.
@@ -31,13 +31,13 @@ The boxes
 The main boxes are:
 
 - DataInit : initialisation of the initial mesh
-- Etude_Initialisation : launching of the module HOMARD inside SALOME
-- Boucle_de_convergence : gestion of the loop computation/adaptation
-- Bilan : final information
+- Study_Initialisation : launching of the module HOMARD inside SALOME
+- Convergence_Loop : gestion of the loop computation/adaptation
+- Results : final information
 
 DataInit
 ========
-.. image:: ../images/yacs_a_01.png
+.. image:: ./images/yacs_a_01.png
    :align: center
    :alt: DataInit
    :width: 158
@@ -46,78 +46,78 @@ DataInit
 This box is type PresetNode's elementary node. Its only function is to initialize the variable MeshFile that contains the name of the file of the initial mesh.
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 38-42
+   :lines: 37-41
 
-Etude_Initialisation
+Study_Initialisation
 ====================
-The box Etude_Initialisation launches the component HOMARD inside SALOME. It is a block consisted of two parts, that are invariable whatever is the envisaged application:
+The box Study_Initialisation launches the component HOMARD inside SALOME. It is a block consisted of two parts, that are invariable whatever is the envisaged application:
 
 - StudyCreation : python node
 - UpdateStudy : service of the component HOMARD
 
-.. image:: ../images/yacs_b_01.png
+.. image:: ./images/yacs_b_01.png
    :align: center
-   :alt: Etude_Initialisation
-   :width: 323
-   :height: 97
+   :alt: Study_Initialisation
+   :width: 322
+   :height: 69
 
 The python node StudyCreation initialize the SALOME study that is given through the output:
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 44-62
+   :lines: 43-59
 
 The service UpdateStudy connects this study to an instance of HOMARD.
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 63-68
+   :lines: 60-64
 
 
-Boucle_de_convergence
+Convergence_Loop
 =====================
-The box Boucle_de_convergence is type WhileLoop. The condition is initialized in 1: the internal block Alternance_Calcul_HOMARD is executed. Within this block, we calculate and we adapt the mesh; when the process has to stop either as a result of error, or by convergence, the condition passes in 0. The loop ends and we pass in the following box, Bilan.
+The box Convergence_Loop is type WhileLoop. The condition is initialized with 1: the internal block Alternation_Computation_HOMARD is executed. Within this block, we calculate and we adapt the mesh; when the process has to stop either as a result of error, or by convergence, the condition passes to 0. The loop ends and we pass in the following box, Results.
 
-.. image:: ../images/yacs_c_01.png
+.. image:: ./images/yacs_c_01.png
    :align: center
    :alt: Boucle
-   :width: 163
-   :height: 93
+   :width: 192
+   :height: 141
 
-Bilan
-=====
-.. image:: ../images/yacs_d_01.png
+Results
+=======
+.. image:: ./images/yacs_d_01.png
    :align: center
-   :alt: Bilan
-   :width: 158
-   :height: 63
+   :alt: Results
+   :width: 157
+   :height: 62
 
 This box is a node python that takes in input a character string, MessInfo. If everything passed well, this message is empty. A window QT appears to confirm the convergence. If there was a problem, the message contains messages emitted during the calculations. The window QT shows this message.
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 406-419
+   :lines: 398-411
 
 
 Loop for the calculations
 *************************
-.. image:: ../images/yacs_c_02.png
+.. image:: ./images/yacs_c_02.png
    :align: center
    :alt: Boucle
-   :width: 338
-   :height: 152
+   :width: 505
+   :height: 114
 
 This box is a block that manages the computation, the adaptation and the analysis.
 
-Calcul
-======
-.. image:: ../images/yacs_c_03.png
+Computation
+===========
+.. image:: ./images/yacs_c_03.png
    :align: center
-   :alt: Calcul
-   :width: 155
-   :height: 87
+   :alt: Computation
+   :width: 158
+   :height: 90
 
 This box is a node python that is going to drive the calculation. In input, we find the number of the calculation (0 at first) and the name of the file which contains the mesh on which to calculate. In output, we find an integer which represents the error on this calculation (0 so everything goes well) and a dictionary python gathering the results of the calculation. The body of the node is established by the launch of a script python that activates the calculation.
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 77-103
+   :lines: 70-90
 
 In this example, we must define:
 
@@ -134,13 +134,13 @@ On the other hand the output of the script has to obey the following rule. We ge
 
 Adaptation
 ==========
-.. image:: ../images/yacs_c_04.png
+.. image:: ./images/yacs_c_04.png
    :align: center
    :alt: Adaptation
-   :width: 661
-   :height: 566
+   :width: 667
+   :height: 568
 
-The box Adaptation is a Switch node driven by the code of error of the previous calculation. If this code is nil, YACS will activate the box Adaptation_HOMARD that will launch the adaptation. If the code is not nil, we pass directly in the box Arret_boucle.
+The box Adaptation is a Switch node driven by the code of error of the previous calculation. If this code is nil, YACS will activate the box Adaptation_HOMARD that will launch the adaptation. If the code is not nil, we pass directly in the box Loop_Stop.
 
 Adaptation_HOMARD
 -----------------
@@ -148,7 +148,7 @@ The first task tries to execute concern the initialization of the data necessary
 
 Iter_1
 ^^^^^^
-.. image:: ../images/yacs_c_06.png
+.. image:: ./images/yacs_c_06.png
    :align: center
    :alt: Iter_1
    :width: 481
@@ -157,20 +157,20 @@ Iter_1
 This box begins by creating the case HOMARD by calling the CreateCase service.
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 208-215
+   :lines: 200-207
 
-The name of the case CaseName is imposed on "Calcul". The name of the case MeshName is imposed on "BOX". The parameters of input FileName arise from the output of the previous calculation. The parameter of output is an instance of case.
+The name of the case CaseName is imposed on "Computation". The name of the case MeshName is imposed on "BOX". The parameters of input FileName arise from the output of the previous calculation. The parameter of output is an instance of case.
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 443-446
+   :lines: 435-438
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 483-486
+   :lines: 475-478
 
 The options of this case must be now given. It is made by the node python CaseOptions. It is imperative to give the directory of calculation. We shall look at the description of the functions in :doc:`tui_create_case`. In output, we get back the instance of the iteration corresponding to the initial state of the case.
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 216-228
+   :lines: 208-220
 
 Finally, a hypothesis is created by calling the CreateHypothese service. The parameter of output is an instance of hypothese.
 
@@ -178,7 +178,7 @@ Homard_Exec
 ^^^^^^^^^^^
 Once initialized, the adaptation can be calculated. It is the goal of the Homard_Exec box, in the form of a script python.
 
-.. image:: ../images/yacs_c_09.png
+.. image:: ./images/yacs_c_09.png
    :align: center
    :alt: Homard_Exec
    :width: 153
@@ -187,38 +187,38 @@ Once initialized, the adaptation can be calculated. It is the goal of the Homard
 The directory of calculation is recovered. The name of the mesh is given.
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 245-250
+   :lines: 237-242
 
 ../..
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 325-333
+   :lines: 317-325
 
 The hypothesis transmitted in input parameter characterized (look :doc:`tui_create_hypothese`) :
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 254-278
+   :lines: 246-270
 
 It is necessary to establish a name for the future iteration. To make sure that the name was never used, one installs a mechanism of incremental naming starting from the name of the initial iteration. As this initial name is the name of the initial mesh, one obtains a succession of names in the form: M_001, M_002, M_003, etc
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 280-290
+   :lines: 272-282
 
 The iteration is supplemented : hypothesis, future mesh, field (look :doc:`tui_create_iteration`) :
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 292-311
+   :lines: 284-303
 
 The iteration is calculated. If it were correct, variable OK equals 1: one will be able to continue the execution of the scheme. If there were a problem, variable OK equals 0 to mean that calculation must stop; an error message then is given.
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 313-324
+   :lines: 305-316
 
 After this execution, the process leaves the Adaptation_HOMARD node, then Adaptation node. One arrives then at the node of analysis.
 
 Iter_n
 ^^^^^^
-.. image:: ../images/yacs_c_07.png
+.. image:: ./images/yacs_c_07.png
    :align: center
    :alt: Iter_n
    :width: 323
@@ -231,56 +231,56 @@ For the following passing in the block of adaptation, it is necessary to recover
 
 One passes then in the Homard_Exec node to calculate the new mesh.
 
-Arret_boucle
-------------
-.. image:: ../images/yacs_c_08.png
+Loop_Stop
+---------
+.. image:: ./images/yacs_c_08.png
    :align: center
-   :alt: Arret_boucle
-   :width: 163
-   :height: 152
+   :alt: Loop_Stop
+   :width: 161
+   :height: 151
 
-The Arret_boucle block is present to only make forward variables because the input parameters of the nodes must always be filled. It is a very simple python:
+The Loop_Stop block is present to only make forward variables because the input parameters of the nodes must always be filled. It is a very simple python:
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 173-184
+   :lines: 165-176
 
-Analyse
-=======
-.. image:: ../images/yacs_c_05.png
+Analysis
+========
+.. image:: ./images/yacs_c_05.png
    :align: center
-   :alt: Analyse
-   :width: 156
-   :height: 139
+   :alt: Analysis
+   :width: 158
+   :height: 143
 
-The Analyse block is a script python which ensures the complete control of the process by examining the causes of possible error successively.
+The Analysis block is a script python which ensures the complete control of the process by examining the causes of possible error successively.
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 104-116
+   :lines: 96-108
 
 ../..
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 162-170
+   :lines: 154-162
 
 One starts by analyzing the return of the computer code:
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 118-123
+   :lines: 110-115
 
 Checking of the presence of the name of the result file in the dictionary of the results:
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 125-132
+   :lines: 117-124
 
 Checking of convergence. That supposes that the value to be tested is present in the dictionary under the key 'V_TEST'. Here, one set up a test on the variation of the value of one calculation at the other. With the first passage, nothing is tested. In the following passing, one tests if the relative variation is lower than 1 thousandths. One could have set up an absolute test if one had recovered a total level of error for example.
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 134-152
+   :lines: 126-146
 
 Lastly, it is checked that a maximum nomber of adaptations is not exceeded:
 
 .. literalinclude:: ../files/yacs_01.en.xml
-   :lines: 154-159
+   :lines: 146-151
 
 
 Use this scheme
index 6131df6aa6fb42f889c9d406950b9e8406d0f106..11bd321092729458fdca68eb9b3c1c2fd7233ac6 100755 (executable)
@@ -22,7 +22,7 @@
 Exemple de couplage HOMARD-Salome
 Copyright EDF 1996, 2010, 2018
 """
-__revision__ = "V3.1"
+__revision__ = "V3.2"
 #
 import os
 import sys
index 9a3513572b197ffc5439af10e7315f1a079272c6..adf5957573aabff4b17f22242a53a213015f9b3c 100755 (executable)
@@ -24,7 +24,7 @@
 Exemple de couplage HOMARD-Salome
 Copyright EDF 1996, 2010, 2018
 """
-__revision__ = "V3.01"
+__revision__ = "V3.02"
 #
 import os
 import sys
index 22eba2b1f6d31d5c82961109548ab7281d2173ed..f3f1a558f45162a9ba577b7ec28a9a2ad2941c2f 100755 (executable)
@@ -24,7 +24,7 @@
 Exemple de couplage HOMARD-Salome
 Copyright EDF 1996, 2010, 2018
 """
-__revision__ = "V3.1"
+__revision__ = "V3.2"
 #
 import os
 import sys
index 02b05e2aa00d752cd784f6e9761b2226e302d8f2..c3dfcb2967e569ebb8592060306d178845c18f97 100755 (executable)
@@ -24,7 +24,7 @@
 Exemple de couplage HOMARD-Salome
 Copyright EDF 1996, 2011, 2018
 """
-__revision__ = "V4.2"
+__revision__ = "V4.3"
 #
 import os
 import sys
index 2ccdb22c8a28a79f934009bfd1ef595d440c6efc..fcb633e8fb533ed4fac6168e08254f0f7a03a5d3 100644 (file)
@@ -58,20 +58,19 @@ CurrentStudy = clt.Resolve("/Study")
          <load container="DefaultContainer"/>
          <outport name="CurrentStudy" type="Study"/>
       </inline>
-      <service name="SetCurrentStudy">
+      <service name="UpdateStudy">
          <component>HOMARD</component>
          <load container="DefaultContainer"/>
-         <method>SetCurrentStudy</method>
-         <inport name="theStudy" type="Study"/>
+         <method>UpdateStudy</method>
       </service>
       <service name="CreateHypothesis_1">
-         <node>Etude_Initialisation.SetCurrentStudy</node>
+         <node>Etude_Initialisation.UpdateStudy</node>
          <method>CreateHypothesis</method>
          <inport name="HypoName" type="string"/>
          <outport name="return" type="HOMARD_Hypothesis"/>
       </service>
       <service name="CreateCase">
-         <node>Etude_Initialisation.SetCurrentStudy</node>
+         <node>Etude_Initialisation.UpdateStudy</node>
          <method>CreateCase</method>
          <inport name="CaseName" type="string"/>
          <inport name="MeshName" type="string"/>
@@ -108,14 +107,14 @@ Iter0 = Case.GetIter0()
          <outport name="Iter0" type="HOMARD_Iteration"/>
       </inline>
       <service name="CreateBoundaryCAO">
-         <node>Etude_Initialisation.SetCurrentStudy</node>
+         <node>Etude_Initialisation.UpdateStudy</node>
          <method>CreateBoundaryCAO</method>
          <inport name="BoundaryName" type="string"/>
          <inport name="FileName" type="string"/>
          <outport name="return" type="HOMARD_Boundary"/>
       </service>
       <service name="CreateHypothesis_2">
-         <node>Etude_Initialisation.SetCurrentStudy</node>
+         <node>Etude_Initialisation.UpdateStudy</node>
          <method>CreateHypothesis</method>
          <inport name="HypoName" type="string"/>
          <outport name="return" type="HOMARD_Hypothesis"/>
@@ -131,8 +130,8 @@ Hypo.AddGroup('T2_EXT')
          <load container="DefaultContainer"/>
          <inport name="Hypo" type="HOMARD_Hypothesis"/>
       </inline>
-      <control> <fromnode>StudyCreation</fromnode> <tonode>SetCurrentStudy</tonode> </control>
-      <control> <fromnode>SetCurrentStudy</fromnode> <tonode>CreateBoundaryCAO</tonode> </control>
+      <control> <fromnode>StudyCreation</fromnode> <tonode>UpdateStudy</tonode> </control>
+      <control> <fromnode>UpdateStudy</fromnode> <tonode>CreateBoundaryCAO</tonode> </control>
       <control> <fromnode>CreateHypothesis_1</fromnode> <tonode>Hypo_Options_1</tonode> </control>
       <control> <fromnode>CreateCase</fromnode> <tonode>Case_Options</tonode> </control>
       <control> <fromnode>Hypo_Options_1</fromnode> <tonode>CreateHypothesis_2</tonode> </control>
@@ -140,10 +139,6 @@ Hypo.AddGroup('T2_EXT')
       <control> <fromnode>CreateBoundaryCAO</fromnode> <tonode>CreateCase</tonode> </control>
       <control> <fromnode>CreateBoundaryCAO</fromnode> <tonode>Case_Options</tonode> </control>
       <control> <fromnode>CreateHypothesis_2</fromnode> <tonode>Hypo_Options_2</tonode> </control>
-      <datalink control="false">
-         <fromnode>StudyCreation</fromnode> <fromport>CurrentStudy</fromport>
-         <tonode>SetCurrentStudy</tonode> <toport>theStudy</toport>
-      </datalink>
       <datalink control="false">
          <fromnode>CreateHypothesis_1</fromnode> <fromport>return</fromport>
          <tonode>Hypo_Options_1</tonode> <toport>Hypo</toport>
@@ -439,7 +434,7 @@ else :
       <value><string>Hypo_4</string></value>
    </parameter>
    <presentation name="Etude_Initialisation.StudyCreation" x="4" y="32" width="158" height="63" expanded="1" expx="4" expy="32" expWidth="158" expHeight="63" shownState="0"/>
-   <presentation name="Etude_Initialisation.SetCurrentStudy" x="163" y="32" width="158" height="63" expanded="1" expx="163" expy="32" expWidth="158" expHeight="63" shownState="0"/>
+   <presentation name="Etude_Initialisation.UpdateStudy" x="163" y="32" width="158" height="63" expanded="1" expx="163" expy="32" expWidth="158" expHeight="63" shownState="0"/>
    <presentation name="Etude_Initialisation.Hypo_Options_1" x="163" y="214.605" width="158" height="63" expanded="1" expx="163" expy="214.605" expWidth="158" expHeight="63" shownState="0"/>
    <presentation name="Etude_Initialisation.CreateBoundaryCAO" x="4" y="96" width="158" height="90" expanded="1" expx="4" expy="96" expWidth="158" expHeight="90" shownState="0"/>
    <presentation name="Etude_Initialisation.Case_Options" x="322.605" y="98.2103" width="158" height="117" expanded="1" expx="322.605" expy="98.2103" expWidth="158" expHeight="117" shownState="0"/>
index fdb7ea5d70685115eb127780041e4b22a0442e26..cddc08d54377d617a865522d7686489be326620f 100755 (executable)
@@ -24,7 +24,7 @@
 Exemple de couplage HOMARD-Salome
 Copyright EDF 1996, 2010, 2018
 """
-__revision__ = "V3.2"
+__revision__ = "V3.3"
 #
 import os
 import sys
index c464402074f26c67ae848bc6c0e8fa4f5db1fe7f..3084ccd61100df857b0f7297bc18d854b8500587 100755 (executable)
@@ -24,7 +24,7 @@
 Exemple de couplage HOMARD-Salome
 Copyright EDF 1996, 2011, 2018
 """
-__revision__ = "V4.4"
+__revision__ = "V4.5"
 #
 import os
 import sys
@@ -48,7 +48,7 @@ salome.salome_init()
 import HOMARD
 #
 homard = salome.lcc.FindOrLoadComponent("FactoryServer", "HOMARD")
-homard.SetCurrentStudy(salome.myStudy)
+homard.UpdateStudy()
 #
 #============================= Début des commandes =============================
 #
@@ -122,4 +122,4 @@ gzip_gunzip(DATA_TUTORIAL, 6, 1)
 # ==================================
 
 if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(True)
+  salome.sg.updateObjBrowser()
old mode 100755 (executable)
new mode 100644 (file)
index 542251c..6d486b8
@@ -53,20 +53,18 @@ import HOMARD_Zone_idl
 import HOMARD_Boundary_idl
 
 clt = orbmodule.client()
-StudyManager = clt.Resolve("/myStudyManager")
-CurrentStudy = StudyManager.GetStudyByID(1)
+CurrentStudy = clt.Resolve("/Study")
 ]]></code></script>
          <load container="DefaultContainer"/>
          <outport name="CurrentStudy" type="Study"/>
       </inline>
-      <service name="SetCurrentStudy">
+      <service name="UpdateStudy">
          <component>HOMARD</component>
          <load container="DefaultContainer"/>
-         <method>SetCurrentStudy</method>
-         <inport name="theStudy" type="Study"/>
+         <method>UpdateStudy</method>
       </service>
       <service name="CreateBoundarycyl_1_int">
-         <node>Etude_Initialisation.SetCurrentStudy</node>
+         <node>Etude_Initialisation.UpdateStudy</node>
          <method>CreateBoundaryCylinder</method>
          <inport name="BoundaryName" type="string"/>
          <inport name="Xcentre" type="double"/>
@@ -79,7 +77,7 @@ CurrentStudy = StudyManager.GetStudyByID(1)
          <outport name="return" type="HOMARD_Boundary"/>
       </service>
       <service name="CreateBoundarycyl_1_ext">
-         <node>Etude_Initialisation.SetCurrentStudy</node>
+         <node>Etude_Initialisation.UpdateStudy</node>
          <method>CreateBoundaryCylinder</method>
          <inport name="BoundaryName" type="string"/>
          <inport name="Xcentre" type="double"/>
@@ -92,7 +90,7 @@ CurrentStudy = StudyManager.GetStudyByID(1)
          <outport name="return" type="HOMARD_Boundary"/>
       </service>
       <service name="CreateBoundarycyl_2_int">
-         <node>Etude_Initialisation.SetCurrentStudy</node>
+         <node>Etude_Initialisation.UpdateStudy</node>
          <method>CreateBoundaryCylinder</method>
          <inport name="BoundaryName" type="string"/>
          <inport name="Xcentre" type="double"/>
@@ -105,13 +103,13 @@ CurrentStudy = StudyManager.GetStudyByID(1)
          <outport name="return" type="HOMARD_Boundary"/>
       </service>
       <service name="CreateHypothesis_1">
-         <node>Etude_Initialisation.SetCurrentStudy</node>
+         <node>Etude_Initialisation.UpdateStudy</node>
          <method>CreateHypothesis</method>
          <inport name="HypoName" type="string"/>
          <outport name="return" type="HOMARD_Hypothesis"/>
       </service>
       <service name="CreateCase">
-         <node>Etude_Initialisation.SetCurrentStudy</node>
+         <node>Etude_Initialisation.UpdateStudy</node>
          <method>CreateCase</method>
          <inport name="CaseName" type="string"/>
          <inport name="MeshName" type="string"/>
@@ -153,7 +151,7 @@ Iter0 = Case.GetIter0()
          <outport name="Iter0" type="HOMARD_Iteration"/>
       </inline>
       <service name="CreateBoundarycyl_2_ext">
-         <node>Etude_Initialisation.SetCurrentStudy</node>
+         <node>Etude_Initialisation.UpdateStudy</node>
          <method>CreateBoundaryCylinder</method>
          <inport name="BoundaryName" type="string"/>
          <inport name="Xcentre" type="double"/>
@@ -166,7 +164,7 @@ Iter0 = Case.GetIter0()
          <outport name="return" type="HOMARD_Boundary"/>
       </service>
       <service name="CreateBoundaryintersection">
-         <node>Etude_Initialisation.SetCurrentStudy</node>
+         <node>Etude_Initialisation.UpdateStudy</node>
          <method>CreateBoundaryDi</method>
          <inport name="BoundaryName" type="string"/>
          <inport name="MeshName" type="string"/>
@@ -174,7 +172,7 @@ Iter0 = Case.GetIter0()
          <outport name="return" type="HOMARD_Boundary"/>
       </service>
       <service name="CreateHypothesis_2">
-         <node>Etude_Initialisation.SetCurrentStudy</node>
+         <node>Etude_Initialisation.UpdateStudy</node>
          <method>CreateHypothesis</method>
          <inport name="HypoName" type="string"/>
          <outport name="return" type="HOMARD_Hypothesis"/>
@@ -190,8 +188,8 @@ Hypo.AddGroup('T2_EXT')
          <load container="DefaultContainer"/>
          <inport name="Hypo" type="HOMARD_Hypothesis"/>
       </inline>
-      <control> <fromnode>StudyCreation</fromnode> <tonode>SetCurrentStudy</tonode> </control>
-      <control> <fromnode>SetCurrentStudy</fromnode> <tonode>CreateBoundarycyl_1_int</tonode> </control>
+      <control> <fromnode>StudyCreation</fromnode> <tonode>UpdateStudy</tonode> </control>
+      <control> <fromnode>UpdateStudy</fromnode> <tonode>CreateBoundarycyl_1_int</tonode> </control>
       <control> <fromnode>CreateBoundarycyl_1_int</fromnode> <tonode>CreateBoundarycyl_1_ext</tonode> </control>
       <control> <fromnode>CreateBoundarycyl_1_ext</fromnode> <tonode>CreateBoundarycyl_2_int</tonode> </control>
       <control> <fromnode>CreateBoundarycyl_2_int</fromnode> <tonode>CreateBoundarycyl_2_ext</tonode> </control>
@@ -204,7 +202,7 @@ Hypo.AddGroup('T2_EXT')
       <control> <fromnode>CreateHypothesis_2</fromnode> <tonode>Hypo_Options_2</tonode> </control>
       <datalink control="false">
          <fromnode>StudyCreation</fromnode> <fromport>CurrentStudy</fromport>
-         <tonode>SetCurrentStudy</tonode> <toport>theStudy</toport>
+         <tonode>UpdateStudy</tonode> <toport>theStudy</toport>
       </datalink>
       <datalink control="false">
          <fromnode>CreateHypothesis_1</fromnode> <fromport>return</fromport>
@@ -330,12 +328,12 @@ FileName = os.path.join(data_dir, "tutorial_4.00.med")
 #
 # Maillage de la frontiere
 # . Nom du maillage
-BMeshName = "PIQUAGE"
+BMeshName = "COURBES"
 # . Fichier du maillage
 BFileName = os.path.join(data_dir, "tutorial_6.fr.med")
 #
-# Répertoire de travail
-if os.environ.has_key("LOGNAME") :
+# Repertoire de travail
+if "LOGNAME" in os.environ :
   user = os.environ ["LOGNAME"]
 else :
   user = "anonymous"
@@ -644,7 +642,7 @@ else :
    <presentation name="Etude_Initialisation.CreateCase" x="4" y="348.5" width="158" height="117" expanded="1" expx="4" expy="348.5" expWidth="158" expHeight="117" shownState="0"/>
    <presentation name="Etude_Initialisation.CreateBoundarycyl_1_int" x="4" y="96" width="158" height="252" expanded="1" expx="4" expy="96" expWidth="158" expHeight="252" shownState="0"/>
    <presentation name="ForLoop.HOMARD_2" x="7" y="62" width="158" height="171" expanded="1" expx="7" expy="62" expWidth="158" expHeight="171" shownState="0"/>
-   <presentation name="Etude_Initialisation.SetCurrentStudy" x="163" y="32" width="158" height="63" expanded="1" expx="163" expy="32" expWidth="158" expHeight="63" shownState="0"/>
+   <presentation name="Etude_Initialisation.UpdateStudy" x="163" y="32" width="158" height="63" expanded="1" expx="163" expy="32" expWidth="158" expHeight="63" shownState="0"/>
    <presentation name="Etude_Initialisation.StudyCreation" x="4" y="32" width="158" height="63" expanded="1" expx="4" expy="32" expWidth="158" expHeight="63" shownState="0"/>
    <presentation name="ForLoop" x="163" y="738.933" width="169" height="237" expanded="1" expx="163" expy="738.933" expWidth="169" expHeight="237" shownState="0"/>
    <presentation name="Etude_Initialisation" x="4" y="204" width="800.5" height="533.933" expanded="1" expx="4" expy="204" expWidth="800.5" expHeight="533.933" shownState="0"/>
index 83166861f4991ab3895f39217e9733c5660771ed..7ce832f3b8464f17d6dd4cbc4f784cdf35d2f91d 100644 (file)
    </container>
    <datanode name="DataInit">
       <parameter name="MeshFile" type="string">
-         <value><string>/scratch/D68518/HOMARD_SVN/trunk/training/tet_aster_ther/maill.00.med</string></value>
+         <value><string>/home/D68518/HOMARD_SVN/trunk/training/tet_aster_ther/maill.00.med</string></value>
       </parameter>
    </datanode>
-   <bloc name="Etude_Initialisation">
+   <bloc name="Study_Initialisation">
       <inline name="StudyCreation">
          <script><code><![CDATA[
 import orbmodule
@@ -56,29 +56,23 @@ import HOMARD_Boundary_idl
 clt = orbmodule.client()
 CurrentStudy = clt.Resolve("/Study")
 ]]></code></script>
-         <outport name="CurrentStudy" type="Study"/>
       </inline>
-      <service name="SetCurrentStudy">
+      <service name="UpdateStudy">
          <component>HOMARD</component>
          <load container="DefaultContainer"/>
-         <method>SetCurrentStudy</method>
-         <inport name="theStudy" type="Study"/>
+         <method>UpdateStudy</method>
       </service>
-      <control> <fromnode>StudyCreation</fromnode> <tonode>SetCurrentStudy</tonode> </control>
-      <datalink control="false">
-         <fromnode>StudyCreation</fromnode> <fromport>CurrentStudy</fromport>
-         <tonode>SetCurrentStudy</tonode> <toport>theStudy</toport>
-      </datalink>
+      <control> <fromnode>StudyCreation</fromnode> <tonode>UpdateStudy</tonode> </control>
    </bloc>
-   <while name="Boucle_de_convergence">
-      <bloc name="Alternance_Calcul_HOMARD">
-         <inline name="Calcul">
+   <while name="Convergence_Loop">
+      <bloc name="Alternation_Computation_HOMARD">
+         <inline name="Computation">
             <script><code><![CDATA[
 import sys
 import os
 #
-rep_calc = "/scratch/D68518/HOMARD_SVN/trunk/training/tet_aster_ther"
-rep_script = os.path.dirname("/scratch/D68518/Salome/HOMARD_SALOME/HOMARD_SRC/doc/files/ScriptAster.py")
+rep_calc = "/home/D68518/HOMARD_SVN/trunk/training/tet_aster_ther"
+rep_script = os.path.dirname("/home/D68518/HOMARD_SVN/trunk/training/script")
 sys.path.append(rep_script)
 from ScriptAster import Script
 #
@@ -89,17 +83,17 @@ argu.append("--mesh_file="  + MeshFile)
 #
 Script_A = Script(argu)
 #
-Error, message_erreur, dico_resu = Script_A.compute ()
+Error, message_erreur, dict_resu = Script_A.compute ()
 #
-dico_resu["rep_calc"] = rep_calc
+dict_resu["rep_calc"] = rep_calc
 #
 ]]></code></script>
             <inport name="numCalc" type="int"/>
             <inport name="MeshFile" type="string"/>
             <outport name="Error" type="int"/>
-            <outport name="dico_resu" type="pyobj"/>
+            <outport name="dict_resu" type="pyobj"/>
          </inline>
-         <inline name="Analyse">
+         <inline name="Analysis">
             <script><code><![CDATA[
 global NumCalc
 global resu1
@@ -122,8 +116,8 @@ while not Error :
 #
 # If the file is not defined, stop:
 #
-    if dico_resu.has_key("FileName") :
-        FileName = dico_resu["FileName"]
+    if ( "FileName" in dict_resu ) :
+        FileName = dict_resu["FileName"]
     else :
         MessInfo = "The file for the mesh is not defined."
         Error = -2
@@ -131,8 +125,8 @@ while not Error :
 #
 # If the criterion is satisfied, stop:
 #
-    if dico_resu.has_key("V_TEST") :
-        valeur_v = dico_resu["V_TEST"]
+    if ( "V_TEST" in dict_resu ) :
+        valeur_v = dict_resu["V_TEST"]
         if NumCalc == 0 :
             resu1 = [valeur_v]
         else :
@@ -160,7 +154,7 @@ while not Error :
 ]]></code></script>
             <inport name="NumCalc" type="int"/>
             <inport name="ErrCalc" type="int"/>
-            <inport name="dico_resu" type="pyobj"/>
+            <inport name="dict_resu" type="pyobj"/>
             <outport name="Error" type="int"/>
             <outport name="NumCalcP1" type="int"/>
             <outport name="FileName" type="string"/>
@@ -168,7 +162,7 @@ while not Error :
          </inline>
          <switch name="Adaptation" select="0">
             <default>
-               <bloc name="Arret_boucle">
+               <bloc name="Loop_Stop">
                   <inline name="Arret">
                      <script><code><![CDATA[
 OK = 0
@@ -187,13 +181,13 @@ MeshFile = " "
                      <default>
                         <bloc name="Iter_n">
                            <service name="LastIteration">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
+                              <node>Study_Initialisation.UpdateStudy</node>
                               <method>LastIteration</method>
                               <inport name="CaseName" type="string"/>
                               <outport name="return" type="HOMARD_Iteration"/>
                            </service>
                            <service name="GetHypothesis">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
+                              <node>Study_Initialisation.UpdateStudy</node>
                               <method>GetHypothesis</method>
                               <inport name="HypoName" type="string"/>
                               <outport name="return" type="HOMARD_Hypothesis"/>
@@ -204,7 +198,7 @@ MeshFile = " "
                      <case id="1">
                         <bloc name="Iter_1">
                            <service name="CreateCase">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
+                              <node>Study_Initialisation.UpdateStudy</node>
                               <method>CreateCase</method>
                               <inport name="CaseName" type="string"/>
                               <inport name="MeshName" type="string"/>
@@ -215,7 +209,7 @@ MeshFile = " "
                               <script><code><![CDATA[
 import os
 # Directory for the adaptation
-DirName = "/scratch/D68518/HOMARD_SVN/trunk/training/tet_aster_ther/HOMARD"
+DirName = "/home/D68518/HOMARD_SVN/trunk/training/tet_aster_ther/HOMARD"
 Case.SetDirName(DirName)
 Case.SetConfType(1)
 # Associated iteration #0
@@ -225,7 +219,7 @@ Iter0 = Case.GetIter0()
                               <outport name="Iter0" type="HOMARD_Iteration"/>
                            </inline>
                            <service name="CreateHypothesis">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
+                              <node>Study_Initialisation.UpdateStudy</node>
                               <method>CreateHypothesis</method>
                               <inport name="HypoName" type="string"/>
                               <outport name="return" type="HOMARD_Hypothesis"/>
@@ -305,10 +299,10 @@ MeshFile = os.path.join (DirName, "maill."+aux+".med")
 Iter.SetMeshFile(MeshFile)
 #
 # . The file for the fields
-FileName = dico_resu["FileName"]
+FileName = dict_resu["FileName"]
 Iter.SetFieldFile(FileName)
 #
-# Calculation
+# Computationation
 # ===========
 Error = Iter.Compute(1,1)
 #
@@ -324,7 +318,7 @@ else :
                      <inport name="NumAdapt" type="int"/>
                      <inport name="LastIter" type="HOMARD_Iteration"/>
                      <inport name="Hypo" type="HOMARD_Hypothesis"/>
-                     <inport name="dico_resu" type="pyobj"/>
+                     <inport name="dict_resu" type="pyobj"/>
                      <outport name="OK" type="bool"/>
                      <outport name="MessInfo" type="string"/>
                      <outport name="MeshFile" type="string"/>
@@ -349,162 +343,162 @@ else :
                </bloc>
             </case>
          </switch>
-         <control> <fromnode>Calcul</fromnode> <tonode>Analyse</tonode> </control>
-         <control> <fromnode>Analyse</fromnode> <tonode>Adaptation</tonode> </control>
+         <control> <fromnode>Computation</fromnode> <tonode>Analysis</tonode> </control>
+         <control> <fromnode>Analysis</fromnode> <tonode>Adaptation</tonode> </control>
          <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>Error</fromport>
+            <fromnode>Analysis</fromnode> <fromport>Error</fromport>
             <tonode>Adaptation</tonode> <toport>select</toport>
          </datalink>
          <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>NumCalcP1</fromport>
-            <tonode>Calcul</tonode> <toport>numCalc</toport>
+            <fromnode>Analysis</fromnode> <fromport>NumCalcP1</fromport>
+            <tonode>Computation</tonode> <toport>numCalc</toport>
          </datalink>
          <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>NumCalcP1</fromport>
+            <fromnode>Analysis</fromnode> <fromport>NumCalcP1</fromport>
             <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation</tonode> <toport>select</toport>
          </datalink>
          <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>NumCalcP1</fromport>
+            <fromnode>Analysis</fromnode> <fromport>NumCalcP1</fromport>
             <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</tonode> <toport>NumAdapt</toport>
          </datalink>
          <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>FileName</fromport>
+            <fromnode>Analysis</fromnode> <fromport>FileName</fromport>
             <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase</tonode> <toport>FileName</toport>
          </datalink>
          <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>MessInfo</fromport>
-            <tonode>Adaptation.default_Arret_boucle.Arret</tonode> <toport>MessInfo</toport>
+            <fromnode>Analysis</fromnode> <fromport>MessInfo</fromport>
+            <tonode>Adaptation.default_Loop_Stop.Arret</tonode> <toport>MessInfo</toport>
          </datalink>
          <datalink control="false">
-            <fromnode>Calcul</fromnode> <fromport>Error</fromport>
-            <tonode>Analyse</tonode> <toport>ErrCalc</toport>
+            <fromnode>Computation</fromnode> <fromport>Error</fromport>
+            <tonode>Analysis</tonode> <toport>ErrCalc</toport>
          </datalink>
          <datalink control="false">
-            <fromnode>Calcul</fromnode> <fromport>dico_resu</fromport>
-            <tonode>Analyse</tonode> <toport>dico_resu</toport>
+            <fromnode>Computation</fromnode> <fromport>dict_resu</fromport>
+            <tonode>Analysis</tonode> <toport>dict_resu</toport>
          </datalink>
          <datalink control="false">
-            <fromnode>Calcul</fromnode> <fromport>dico_resu</fromport>
-            <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</tonode> <toport>dico_resu</toport>
+            <fromnode>Computation</fromnode> <fromport>dict_resu</fromport>
+            <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</tonode> <toport>dict_resu</toport>
          </datalink>
          <datalink control="false">
-            <fromnode>Adaptation.default_Arret_boucle.Arret</fromnode> <fromport>MeshFile</fromport>
-            <tonode>Calcul</tonode> <toport>MeshFile</toport>
+            <fromnode>Adaptation.default_Loop_Stop.Arret</fromnode> <fromport>MeshFile</fromport>
+            <tonode>Computation</tonode> <toport>MeshFile</toport>
          </datalink>
          <datalink control="false">
             <fromnode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</fromnode> <fromport>MeshFile</fromport>
-            <tonode>Calcul</tonode> <toport>MeshFile</toport>
+            <tonode>Computation</tonode> <toport>MeshFile</toport>
          </datalink>
       </bloc>
       <datalink control="false">
-         <fromnode>Alternance_Calcul_HOMARD.Analyse</fromnode> <fromport>NumCalcP1</fromport>
-         <tonode>Alternance_Calcul_HOMARD.Analyse</tonode> <toport>NumCalc</toport>
+         <fromnode>Alternation_Computation_HOMARD.Analysis</fromnode> <fromport>NumCalcP1</fromport>
+         <tonode>Alternation_Computation_HOMARD.Analysis</tonode> <toport>NumCalc</toport>
       </datalink>
    </while>
-   <inline name="Bilan">
+   <inline name="Results">
       <script><code><![CDATA[
-from PyQt4 import QtGui
+from PyQt5 import QtWidgets
 import sys
-app = QtGui.QApplication(sys.argv)
-MessageBoxTitle = "Bilan"
+app = QtWidgets.QApplication(sys.argv)
+MessageBoxTitle = "Results"
 if MessInfo == "" :
     MessInfo = "The convergence is reached."
-    QtGui.QMessageBox.information(None, MessageBoxTitle, MessInfo)
+    QtWidgets.QMessageBox.information(None, MessageBoxTitle, MessInfo)
 else :
-    QtGui.QMessageBox.critical(None, MessageBoxTitle, MessInfo)
+    QtWidgets.QMessageBox.critical(None, MessageBoxTitle, MessInfo)
 ]]></code></script>
       <inport name="MessInfo" type="string"/>
    </inline>
-   <control> <fromnode>DataInit</fromnode> <tonode>Etude_Initialisation</tonode> </control>
-   <control> <fromnode>Etude_Initialisation</fromnode> <tonode>Boucle_de_convergence</tonode> </control>
-   <control> <fromnode>Boucle_de_convergence</fromnode> <tonode>Bilan</tonode> </control>
+   <control> <fromnode>DataInit</fromnode> <tonode>Study_Initialisation</tonode> </control>
+   <control> <fromnode>Study_Initialisation</fromnode> <tonode>Convergence_Loop</tonode> </control>
+   <control> <fromnode>Convergence_Loop</fromnode> <tonode>Results</tonode> </control>
    <datalink control="false">
       <fromnode>DataInit</fromnode> <fromport>MeshFile</fromport>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Calcul</tonode> <toport>MeshFile</toport>
+      <tonode>Convergence_Loop.Alternation_Computation_HOMARD.Computation</tonode> <toport>MeshFile</toport>
    </datalink>
    <datalink control="false">
-      <fromnode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.default_Arret_boucle.Arret</fromnode> <fromport>OK</fromport>
-      <tonode>Boucle_de_convergence</tonode> <toport>condition</toport>
+      <fromnode>Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.default_Loop_Stop.Arret</fromnode> <fromport>OK</fromport>
+      <tonode>Convergence_Loop</tonode> <toport>condition</toport>
    </datalink>
    <datalink control="false">
-      <fromnode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</fromnode> <fromport>OK</fromport>
-      <tonode>Boucle_de_convergence</tonode> <toport>condition</toport>
+      <fromnode>Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</fromnode> <fromport>OK</fromport>
+      <tonode>Convergence_Loop</tonode> <toport>condition</toport>
    </datalink>
    <datalink control="false">
-      <fromnode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.default_Arret_boucle.Arret</fromnode> <fromport>MessInfo</fromport>
-      <tonode>Bilan</tonode> <toport>MessInfo</toport>
+      <fromnode>Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.default_Loop_Stop.Arret</fromnode> <fromport>MessInfo</fromport>
+      <tonode>Results</tonode> <toport>MessInfo</toport>
    </datalink>
    <datalink control="false">
-      <fromnode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</fromnode> <fromport>MessInfo</fromport>
-      <tonode>Bilan</tonode> <toport>MessInfo</toport>
+      <fromnode>Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</fromnode> <fromport>MessInfo</fromport>
+      <tonode>Results</tonode> <toport>MessInfo</toport>
    </datalink>
    <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase</tonode><toport>CaseName</toport>
-      <value><string>Calcul</string></value>
+      <tonode>Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase</tonode><toport>CaseName</toport>
+      <value><string>Computation</string></value>
    </parameter>
    <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Calcul</tonode><toport>numCalc</toport>
+      <tonode>Convergence_Loop.Alternation_Computation_HOMARD.Computation</tonode><toport>numCalc</toport>
       <value><int>0</int></value>
    </parameter>
    <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation</tonode><toport>select</toport>
+      <tonode>Convergence_Loop.Alternation_Computation_HOMARD.Adaptation</tonode><toport>select</toport>
       <value><int>0</int></value>
    </parameter>
    <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation</tonode><toport>select</toport>
+      <tonode>Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation</tonode><toport>select</toport>
       <value><int>0</int></value>
    </parameter>
    <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.LastIteration</tonode><toport>CaseName</toport>
-      <value><string>Calcul</string></value>
+      <tonode>Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.LastIteration</tonode><toport>CaseName</toport>
+      <value><string>Computation</string></value>
    </parameter>
    <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.GetHypothesis</tonode><toport>HypoName</toport>
+      <tonode>Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.GetHypothesis</tonode><toport>HypoName</toport>
       <value><string>Hypo</string></value>
    </parameter>
    <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateHypothesis</tonode><toport>HypoName</toport>
+      <tonode>Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateHypothesis</tonode><toport>HypoName</toport>
       <value><string>Hypo</string></value>
    </parameter>
    <parameter>
-      <tonode>Boucle_de_convergence</tonode><toport>condition</toport>
+      <tonode>Convergence_Loop</tonode><toport>condition</toport>
       <value><boolean>true</boolean></value>
    </parameter>
    <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Analyse</tonode><toport>NumCalc</toport>
+      <tonode>Convergence_Loop.Alternation_Computation_HOMARD.Analysis</tonode><toport>NumCalc</toport>
       <value><int>0</int></value>
    </parameter>
    <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Analyse</tonode><toport>ErrCalc</toport>
+      <tonode>Convergence_Loop.Alternation_Computation_HOMARD.Analysis</tonode><toport>ErrCalc</toport>
       <value><int>0</int></value>
    </parameter>
    <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase</tonode><toport>MeshName</toport>
+      <tonode>Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase</tonode><toport>MeshName</toport>
       <value><string>BOX</string></value>
    </parameter>
 
    <presentation name="__ROOT__" x="0" y="0" width="704" height="977" expanded="1" expx="0" expy="0" expWidth="704" expHeight="977" shownState="0"/>
    <presentation name="DataInit" x="4" y="32" width="158" height="63" expanded="1" expx="4" expy="32" expWidth="158" expHeight="63" shownState="0"/>
-   <presentation name="Etude_Initialisation" x="175" y="32" width="158" height="38" expanded="0" expx="175" expy="32" expWidth="162.5" expHeight="40.5" shownState="1"/>
-   <presentation name="Etude_Initialisation.StudyCreation" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Etude_Initialisation.SetCurrentStudy" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence" x="4" y="103" width="569" height="514" expanded="1" expx="4" expy="103" expWidth="569" expHeight="514" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD" x="4" y="59" width="561" height="451" expanded="1" expx="10" expy="59" expWidth="561" expHeight="451" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Calcul" x="4" y="32" width="158" height="90" expanded="1" expx="4" expy="32" expWidth="158" expHeight="90" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Analyse" x="181" y="32" width="158" height="171" expanded="1" expx="181" expy="32" expWidth="158" expHeight="171" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation" x="4" y="204" width="553" height="243" expanded="1" expx="4" expy="204" expWidth="553" expHeight="243" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.default_Arret_boucle" x="4" y="59" width="166" height="153" expanded="1" expx="4" expy="59" expWidth="166" expHeight="153" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.default_Arret_boucle.Arret" x="4" y="32" width="158" height="117" expanded="1" expx="4" expy="32" expWidth="158" expHeight="117" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD"  x="202" y="59" width="347" height="180" expanded="1" expx="202" expy="59" expWidth="347" expHeight="180" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation" x="4" y="32" width="158" height="65" expanded="0" expx="4" expy="32" expWidth="167" expHeight="67.5" shownState="1"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1" x="0" y="0" width="162.5" height="40.5" expanded="1" expx="4" expy="59" expWidth="162.5" expHeight="40.5" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.Case_Options" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateHypothesis" x="0" y="0" width="158" height="36" expanded="1" expx="322" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n" x="0" y="0" width="162.5" height="40.5" expanded="1" expx="4" expy="1639.5" expWidth="162.5" expHeight="40.5" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.LastIteration" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.GetHypothesis" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec" x="185" y="32" width="158" height="144" expanded="1" expx="185" expy="32" expWidth="158" expHeight="144" shownState="0"/>
-   <presentation name="Bilan" x="350" y="32" width="158" height="63" expanded="1" expx="350" expy="32" expWidth="158" expHeight="63" shownState="0"/>
+   <presentation name="Study_Initialisation" x="175" y="32" width="158" height="38" expanded="0" expx="175" expy="32" expWidth="162.5" expHeight="40.5" shownState="1"/>
+   <presentation name="Study_Initialisation.StudyCreation" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
+   <presentation name="Study_Initialisation.UpdateStudy" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
+   <presentation name="Convergence_Loop" x="4" y="103" width="569" height="514" expanded="1" expx="4" expy="103" expWidth="569" expHeight="514" shownState="0"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD" x="4" y="59" width="561" height="451" expanded="1" expx="10" expy="59" expWidth="561" expHeight="451" shownState="0"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Computation" x="4" y="32" width="158" height="90" expanded="1" expx="4" expy="32" expWidth="158" expHeight="90" shownState="0"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Analysis" x="181" y="32" width="158" height="171" expanded="1" expx="181" expy="32" expWidth="158" expHeight="171" shownState="0"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation" x="4" y="204" width="553" height="243" expanded="1" expx="4" expy="204" expWidth="553" expHeight="243" shownState="0"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.default_Loop_Stop" x="4" y="59" width="166" height="153" expanded="1" expx="4" expy="59" expWidth="166" expHeight="153" shownState="0"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.default_Loop_Stop.Arret" x="4" y="32" width="158" height="117" expanded="1" expx="4" expy="32" expWidth="158" expHeight="117" shownState="0"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD"  x="202" y="59" width="347" height="180" expanded="1" expx="202" expy="59" expWidth="347" expHeight="180" shownState="0"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation" x="4" y="32" width="158" height="65" expanded="0" expx="4" expy="32" expWidth="167" expHeight="67.5" shownState="1"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1" x="0" y="0" width="162.5" height="40.5" expanded="1" expx="4" expy="59" expWidth="162.5" expHeight="40.5" shownState="2"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.Case_Options" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateHypothesis" x="0" y="0" width="158" height="36" expanded="1" expx="322" expy="32" expWidth="158" expHeight="36" shownState="2"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n" x="0" y="0" width="162.5" height="40.5" expanded="1" expx="4" expy="1639.5" expWidth="162.5" expHeight="40.5" shownState="2"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.LastIteration" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.GetHypothesis" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
+   <presentation name="Convergence_Loop.Alternation_Computation_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec" x="185" y="32" width="158" height="144" expanded="1" expx="185" expy="32" expWidth="158" expHeight="144" shownState="0"/>
+   <presentation name="Results" x="350" y="32" width="158" height="63" expanded="1" expx="350" expy="32" expWidth="158" expHeight="63" shownState="0"/>
 </proc>
 
index c384530c7fbba8af7da8fa777ad24e9575f91097..8fce9b51c37e08e34cfe2f55c41fc5b42a1683a9 100644 (file)
@@ -36,7 +36,7 @@
    </container>
    <datanode name="DataInit">
       <parameter name="MeshFile" type="string">
-         <value><string>/scratch/D68518/HOMARD_SVN/trunk/training/tet_aster_ther/maill.00.med</string></value>
+         <value><string>/home/D68518/HOMARD_SVN/trunk/training/tet_aster_ther/maill.00.med</string></value>
       </parameter>
    </datanode>
    <bloc name="Etude_Initialisation">
@@ -56,19 +56,13 @@ import HOMARD_Boundary_idl
 clt = orbmodule.client()
 CurrentStudy = clt.Resolve("/Study")
 ]]></code></script>
-         <outport name="CurrentStudy" type="Study"/>
       </inline>
-      <service name="SetCurrentStudy">
+      <service name="UpdateStudy">
          <component>HOMARD</component>
          <load container="DefaultContainer"/>
-         <method>SetCurrentStudy</method>
-         <inport name="theStudy" type="Study"/>
+         <method>UpdateStudy</method>
       </service>
-      <control> <fromnode>StudyCreation</fromnode> <tonode>SetCurrentStudy</tonode> </control>
-      <datalink control="false">
-         <fromnode>StudyCreation</fromnode> <fromport>CurrentStudy</fromport>
-         <tonode>SetCurrentStudy</tonode> <toport>theStudy</toport>
-      </datalink>
+      <control> <fromnode>StudyCreation</fromnode> <tonode>UpdateStudy</tonode> </control>
    </bloc>
    <while name="Boucle_de_convergence">
       <bloc name="Alternance_Calcul_HOMARD">
@@ -77,8 +71,8 @@ CurrentStudy = clt.Resolve("/Study")
 import sys
 import os
 #
-rep_calc = "/scratch/D68518/HOMARD_SVN/trunk/training/tet_aster_ther"
-rep_script = os.path.dirname("/scratch/D68518/Salome/HOMARD_SALOME/HOMARD_SRC/doc/files/ScriptAster.py")
+rep_calc = "/home/D68518/HOMARD_SVN/trunk/training/tet_aster_ther"
+rep_script = os.path.dirname("/home/D68518/HOMARD_SVN/trunk/training/script")
 sys.path.append(rep_script)
 from ScriptAster import Script
 #
@@ -89,15 +83,15 @@ argu.append("--mesh_file="  + MeshFile)
 #
 Script_A = Script(argu)
 #
-Error, message_erreur, dico_resu = Script_A.compute ()
+Error, message_erreur, dict_resu = Script_A.compute ()
 #
-dico_resu["rep_calc"] = rep_calc
+dict_resu["rep_calc"] = rep_calc
 #
 ]]></code></script>
             <inport name="numCalc" type="int"/>
             <inport name="MeshFile" type="string"/>
             <outport name="Error" type="int"/>
-            <outport name="dico_resu" type="pyobj"/>
+            <outport name="dict_resu" type="pyobj"/>
          </inline>
          <inline name="Analyse">
             <script><code><![CDATA[
@@ -122,8 +116,8 @@ while not Error :
 #
 # Si le fichier n'a pas ete defini, on arrete :
 #
-    if dico_resu.has_key("FileName") :
-        FileName = dico_resu["FileName"]
+    if ( "FileName" in dict_resu ) :
+        FileName = dict_resu["FileName"]
     else :
         MessInfo = "Le fichier du maillage n'a pas ete defini"
         Error = -2
@@ -131,8 +125,8 @@ while not Error :
 #
 # Si le critere est respecte, on arrete :
 #
-    if dico_resu.has_key("V_TEST") :
-        valeur_v = dico_resu["V_TEST"]
+    if ( "V_TEST" in dict_resu ) :
+        valeur_v = dict_resu["V_TEST"]
         if NumCalc == 0 :
             resu1 = [valeur_v]
         else :
@@ -160,7 +154,7 @@ while not Error :
 ]]></code></script>
             <inport name="NumCalc" type="int"/>
             <inport name="ErrCalc" type="int"/>
-            <inport name="dico_resu" type="pyobj"/>
+            <inport name="dict_resu" type="pyobj"/>
             <outport name="Error" type="int"/>
             <outport name="NumCalcP1" type="int"/>
             <outport name="FileName" type="string"/>
@@ -187,13 +181,13 @@ MeshFile = " "
                      <default>
                         <bloc name="Iter_n">
                            <service name="LastIteration">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
+                              <node>Etude_Initialisation.UpdateStudy</node>
                               <method>LastIteration</method>
                               <inport name="CaseName" type="string"/>
                               <outport name="return" type="HOMARD_Iteration"/>
                            </service>
                            <service name="GetHypothesis">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
+                              <node>Etude_Initialisation.UpdateStudy</node>
                               <method>GetHypothesis</method>
                               <inport name="HypoName" type="string"/>
                               <outport name="return" type="HOMARD_Hypothesis"/>
@@ -204,7 +198,7 @@ MeshFile = " "
                      <case id="1">
                         <bloc name="Iter_1">
                            <service name="CreateCase">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
+                              <node>Etude_Initialisation.UpdateStudy</node>
                               <method>CreateCase</method>
                               <inport name="CaseName" type="string"/>
                               <inport name="MeshName" type="string"/>
@@ -215,7 +209,7 @@ MeshFile = " "
                               <script><code><![CDATA[
 import os
 # Repertoire d'adaptation
-DirName = "/scratch/D68518/HOMARD_SVN/trunk/training/tet_aster_ther/HOMARD"
+DirName = "/home/D68518/HOMARD_SVN/trunk/training/tet_aster_ther/HOMARD"
 Case.SetDirName(DirName)
 Case.SetConfType(1)
 # Iteration 0 associee
@@ -225,7 +219,7 @@ Iter0 = Case.GetIter0()
                               <outport name="Iter0" type="HOMARD_Iteration"/>
                            </inline>
                            <service name="CreateHypothesis">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
+                              <node>Etude_Initialisation.UpdateStudy</node>
                               <method>CreateHypothesis</method>
                               <inport name="HypoName" type="string"/>
                               <outport name="return" type="HOMARD_Hypothesis"/>
@@ -244,7 +238,7 @@ Iter0 = Case.GetIter0()
                      <script><code><![CDATA[
 import os
 # Repertoire d'execution
-DirName = "/scratch/D68518/HOMARD_SVN/trunk/training/tet_aster_ther"
+DirName = "/home/D68518/HOMARD_SVN/trunk/training/tet_aster_ther"
 MeshName = "BOX"
 #
 # Hypothese
@@ -305,7 +299,7 @@ MeshFile = os.path.join (DirName, "maill."+aux+".med")
 Iter.SetMeshFile(MeshFile)
 #
 # . Le fichier contenant les champs
-FileName = dico_resu["FileName"]
+FileName = dict_resu["FileName"]
 Iter.SetFieldFile(FileName)
 #
 # Calcul
@@ -324,7 +318,7 @@ else :
                      <inport name="NumAdapt" type="int"/>
                      <inport name="LastIter" type="HOMARD_Iteration"/>
                      <inport name="Hypo" type="HOMARD_Hypothesis"/>
-                     <inport name="dico_resu" type="pyobj"/>
+                     <inport name="dict_resu" type="pyobj"/>
                      <outport name="OK" type="bool"/>
                      <outport name="MessInfo" type="string"/>
                      <outport name="MeshFile" type="string"/>
@@ -380,12 +374,12 @@ else :
             <tonode>Analyse</tonode> <toport>ErrCalc</toport>
          </datalink>
          <datalink control="false">
-            <fromnode>Calcul</fromnode> <fromport>dico_resu</fromport>
-            <tonode>Analyse</tonode> <toport>dico_resu</toport>
+            <fromnode>Calcul</fromnode> <fromport>dict_resu</fromport>
+            <tonode>Analyse</tonode> <toport>dict_resu</toport>
          </datalink>
          <datalink control="false">
-            <fromnode>Calcul</fromnode> <fromport>dico_resu</fromport>
-            <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</tonode> <toport>dico_resu</toport>
+            <fromnode>Calcul</fromnode> <fromport>dict_resu</fromport>
+            <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</tonode> <toport>dict_resu</toport>
          </datalink>
          <datalink control="false">
             <fromnode>Adaptation.default_Arret_boucle.Arret</fromnode> <fromport>MeshFile</fromport>
@@ -403,15 +397,15 @@ else :
    </while>
    <inline name="Bilan">
       <script><code><![CDATA[
-from PyQt4 import QtGui
+from PyQt5 import QtWidgets
 import sys
-app = QtGui.QApplication(sys.argv)
+app = QtWidgets.QApplication(sys.argv)
 MessageBoxTitle = "Bilan"
 if MessInfo == "" :
     MessInfo = "Le calcul est converge."
-    QtGui.QMessageBox.information(None, MessageBoxTitle, MessInfo)
+    QtWidgets.QMessageBox.information(None, MessageBoxTitle, MessInfo)
 else :
-    QtGui.QMessageBox.critical(None, MessageBoxTitle, MessInfo)
+    QtWidgets.QMessageBox.critical(None, MessageBoxTitle, MessInfo)
 ]]></code></script>
       <inport name="MessInfo" type="string"/>
    </inline>
@@ -487,7 +481,7 @@ else :
    <presentation name="DataInit" x="4" y="32" width="158" height="63" expanded="1" expx="4" expy="32" expWidth="158" expHeight="63" shownState="0"/>
    <presentation name="Etude_Initialisation" x="175" y="32" width="158" height="38" expanded="0" expx="175" expy="32" expWidth="162.5" expHeight="40.5" shownState="1"/>
    <presentation name="Etude_Initialisation.StudyCreation" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Etude_Initialisation.SetCurrentStudy" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
+   <presentation name="Etude_Initialisation.UpdateStudy" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
    <presentation name="Boucle_de_convergence" x="4" y="103" width="569" height="514" expanded="1" expx="4" expy="103" expWidth="569" expHeight="514" shownState="0"/>
    <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD" x="4" y="59" width="561" height="451" expanded="1" expx="10" expy="59" expWidth="561" expHeight="451" shownState="0"/>
    <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Calcul" x="4" y="32" width="158" height="90" expanded="1" expx="4" expy="32" expWidth="158" expHeight="90" shownState="0"/>
diff --git a/doc/fr/images/yacs_01.png b/doc/fr/images/yacs_01.png
new file mode 100644 (file)
index 0000000..0796703
Binary files /dev/null and b/doc/fr/images/yacs_01.png differ
diff --git a/doc/fr/images/yacs_a_01.png b/doc/fr/images/yacs_a_01.png
new file mode 100644 (file)
index 0000000..9e29132
Binary files /dev/null and b/doc/fr/images/yacs_a_01.png differ
diff --git a/doc/fr/images/yacs_b_01.png b/doc/fr/images/yacs_b_01.png
new file mode 100644 (file)
index 0000000..be158c6
Binary files /dev/null and b/doc/fr/images/yacs_b_01.png differ
diff --git a/doc/fr/images/yacs_c_01.png b/doc/fr/images/yacs_c_01.png
new file mode 100644 (file)
index 0000000..5f888df
Binary files /dev/null and b/doc/fr/images/yacs_c_01.png differ
diff --git a/doc/fr/images/yacs_c_02.png b/doc/fr/images/yacs_c_02.png
new file mode 100644 (file)
index 0000000..7e933e4
Binary files /dev/null and b/doc/fr/images/yacs_c_02.png differ
diff --git a/doc/fr/images/yacs_c_03.png b/doc/fr/images/yacs_c_03.png
new file mode 100644 (file)
index 0000000..d93e928
Binary files /dev/null and b/doc/fr/images/yacs_c_03.png differ
diff --git a/doc/fr/images/yacs_c_04.png b/doc/fr/images/yacs_c_04.png
new file mode 100644 (file)
index 0000000..110efe9
Binary files /dev/null and b/doc/fr/images/yacs_c_04.png differ
diff --git a/doc/fr/images/yacs_c_05.png b/doc/fr/images/yacs_c_05.png
new file mode 100644 (file)
index 0000000..5dc8c86
Binary files /dev/null and b/doc/fr/images/yacs_c_05.png differ
diff --git a/doc/fr/images/yacs_c_06.png b/doc/fr/images/yacs_c_06.png
new file mode 100644 (file)
index 0000000..ed99290
Binary files /dev/null and b/doc/fr/images/yacs_c_06.png differ
diff --git a/doc/fr/images/yacs_c_07.png b/doc/fr/images/yacs_c_07.png
new file mode 100644 (file)
index 0000000..fbddf89
Binary files /dev/null and b/doc/fr/images/yacs_c_07.png differ
diff --git a/doc/fr/images/yacs_c_08.png b/doc/fr/images/yacs_c_08.png
new file mode 100644 (file)
index 0000000..fcd0527
Binary files /dev/null and b/doc/fr/images/yacs_c_08.png differ
diff --git a/doc/fr/images/yacs_c_09.png b/doc/fr/images/yacs_c_09.png
new file mode 100644 (file)
index 0000000..8f1282b
Binary files /dev/null and b/doc/fr/images/yacs_c_09.png differ
diff --git a/doc/fr/images/yacs_d_01.png b/doc/fr/images/yacs_d_01.png
new file mode 100644 (file)
index 0000000..3963ecc
Binary files /dev/null and b/doc/fr/images/yacs_d_01.png differ
index e8e27500f173e1ade008e21e2231f8936d74a68e..b2b6f7676dc6992bc583569bc6e05ee0a63c5639 100644 (file)
@@ -16,7 +16,7 @@ Présentation générale
 
 On va décrire ici un schéma s'appliquant à un calcul pour lequel on cherche à stabiliser une valeur. Le calcul démarre sur un maillage initial puis HOMARD enchaîne avec une adaptation. On refait un calcul sur ce nouveau maillage et son résultat est analysé. En fonction de cette analyse, le couplage continue ou non. L'allure générale du schéma est la suivante :
 
-.. image:: ../images/yacs_01.png
+.. image:: ./images/yacs_01.png
    :align: center
    :alt: yacs - allure générale
    :width: 512
@@ -37,7 +37,7 @@ Les boîtes principales sont :
 
 DataInit
 ========
-.. image:: ../images/yacs_a_01.png
+.. image:: ./images/yacs_a_01.png
    :align: center
    :alt: DataInit
    :width: 158
@@ -46,7 +46,7 @@ DataInit
 Cette boîte est un noeud élémentaire de type PresetNode. Sa seule fonction est d'initialiser la variable MeshFile qui contient le nom du fichier du maillage initial.
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 38-42
+   :lines: 37-41
 
 Etude_Initialisation
 ====================
@@ -55,28 +55,28 @@ La boîte Etude_Initialisation lance le composant HOMARD dans SALOME. C'est un b
 - StudyCreation : noeud python
 - UpdateStudy : service du composant HOMARD
 
-.. image:: ../images/yacs_b_01.png
+.. image:: ./images/yacs_b_01.png
    :align: center
    :alt: Etude_Initialisation
-   :width: 323
-   :height: 97
+   :width: 327
+   :height: 73
 
 Le noeud python StudyCreation sert à initialiser l'étude SALOME qui est fournie en sortie :
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 44-62
+   :lines: 43-59
 
 Le service UpdateStudy affecte cette étude à une instance de HOMARD.
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 63-68
+   :lines: 60-64
 
 
 Boucle_de_convergence
 =====================
 La boîte Boucle_de_convergence est une boucle de type WhileLoop. La condition est initialisée à 1 : le bloc interne Alternance_Calcul_HOMARD est exécuté. Au sein de ce bloc, on calcule et on adapte le maillage ; quand le processus doit s'arrêter soit par suite d'erreur, soit par convergence, la condition passe à 0. La boucle s'achève et on passe à la boîte suivante, Bilan.
 
-.. image:: ../images/yacs_c_01.png
+.. image:: ./images/yacs_c_01.png
    :align: center
    :alt: Boucle
    :width: 163
@@ -84,7 +84,7 @@ La boîte Boucle_de_convergence est une boucle de type WhileLoop. La condition e
 
 Bilan
 =====
-.. image:: ../images/yacs_d_01.png
+.. image:: ./images/yacs_d_01.png
    :align: center
    :alt: Bilan
    :width: 158
@@ -93,22 +93,22 @@ Bilan
 Cette boîte est un noeud python qui prend en entrée une chaîne de caractères, MessInfo. Si tout s'est bien passé, ce message est vide. Une fenêtre QT apparaît pour confirmer la convergence. S'il y a eu un problème, le message contient les messages émis au cours des calculs. La fenêtre QT affiche ce message.
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 406-419
+   :lines: 398-411
 
 
 La boucle de calculs
 ********************
-.. image:: ../images/yacs_c_02.png
+.. image:: ./images/yacs_c_02.png
    :align: center
    :alt: Boucle
-   :width: 338
-   :height: 152
+   :width: 496
+   :height: 112
 
-Cette boîte est un bloc qui gère le calcul, l'adaptation et l'analyse.
+Cette boîte est un bloc qui gère le calcul, l'analyse et l'adaptation.
 
 Calcul
 ======
-.. image:: ../images/yacs_c_03.png
+.. image:: ./images/yacs_c_03.png
    :align: center
    :alt: Calcul
    :width: 155
@@ -117,7 +117,7 @@ Calcul
 Cette boîte est un noeud python qui va piloter le calcul. En entrée, on trouve le numéro du calcul (0 au départ) et le nom du fichier qui contient le maillage sur lequel calculer. En sortie, on trouve un entier qui représente l'erreur sur ce calcul (0 si tout va bien) et un dictionnaire python rassemblant les résultats du calcul. Le corps du noeud est constitué par le lancement d'un script python qui active le calcul.
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 77-103
+   :lines: 70-90
 
 Dans cet exemple, il faut définir :
 
@@ -134,7 +134,7 @@ En revanche la sortie du script doit obéir à la règle suivante. On récupère
 
 Adaptation
 ==========
-.. image:: ../images/yacs_c_04.png
+.. image:: ./images/yacs_c_04.png
    :align: center
    :alt: Adaptation
    :width: 661
@@ -148,7 +148,7 @@ La première tâche à exécuter concerne l'initialisation des données nécessa
 
 Iter_1
 ^^^^^^
-.. image:: ../images/yacs_c_06.png
+.. image:: ./images/yacs_c_06.png
    :align: center
    :alt: Iter_1
    :width: 481
@@ -157,20 +157,20 @@ Iter_1
 Cette boîte commence par créer le cas HOMARD en appelant le service CreateCase.
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 208-215
+   :lines: 200-207
 
 Le nom du cas CaseName est imposé à "Calcul". Le paramètre d'entrée MeshName est imposé à "BOX". Le paramètre d'entrée FileName est issu de la sortie du calcul précédent. Le paramètre de sortie est une instance de cas.
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 443-446
+   :lines: 435-438
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 483-486
+   :lines: 475-478
 
 Les options de ce cas doivent maintenant être renseignées. C'est fait par le noeud python CaseOptions. Il est impératif de renseigner le répertoire de calcul. On regardera la description des fonctions dans :doc:`tui_create_case`. En sortie, on récupère l'instance de l'itération correspondant à l'état initial du cas.
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 216-228
+   :lines: 208-220
 
 Enfin, une hypothèse est créée en appelant le service CreateHypothese. Le paramètre de sortie est une instance d'hypothèse.
 
@@ -178,7 +178,7 @@ Homard_Exec
 ^^^^^^^^^^^
 Une fois initialisée, l'adaptation peut être calculée. C'est le but de la boîte Homard_Exec, sous forme d'un script python.
 
-.. image:: ../images/yacs_c_09.png
+.. image:: ./images/yacs_c_09.png
    :align: center
    :alt: Homard_Exec
    :width: 153
@@ -187,38 +187,38 @@ Une fois initialisée, l'adaptation peut être calculée. C'est le but de la bo
 Le répertoire de calcul est récupéré. Le nom du maillage est rappelé.
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 245-250
+   :lines: 237-242
 
 ../..
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 325-333
+   :lines: 317-325
 
 L'hypothèse transmise en paramètre d'entrée est caractérisée (voir :doc:`tui_create_hypothese`) :
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 254-278
+   :lines: 246-270
 
 Il faut établir un nom pour la future itération. Pour s'assurer que le nom n'a jamais été utilisé, on met en place un mécanisme de nommage incrémental à partir du nom de l'itération initiale. Comme ce nom initial est le nom du maillage initial, on obtient une succession de noms sous la forme : M_001, M_002, M_003, etc.
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 280-290
+   :lines: 272-282
 
 L'itération est complétée : hypothèse, futur maillage, champ (voir :doc:`tui_create_iteration`) :
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 292-311
+   :lines: 284-303
 
 L'itération est calculée. Si tout s'est bien passé, la variable OK vaut 1 : on pourra continuer l'exécution du schéma. S'il y a eu un problème, la variable OK vaut 0 pour signifier que le calcul doit s'arrêter ; on donne alors un message d'erreur.
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 313-324
+   :lines: 305-316
 
 Après cette exécution, le processus sort du noeud Adaptation_HOMARD, puis du noeud Adaptation. On arrive alors au noeud d'analyse.
 
 Iter_n
 ^^^^^^
-.. image:: ../images/yacs_c_07.png
+.. image:: ./images/yacs_c_07.png
    :align: center
    :alt: Iter_n
    :width: 323
@@ -233,7 +233,7 @@ On passe ensuite dans le noeud Homard_Exec pour calculer le nouveau maillage.
 
 Arret_boucle
 ------------
-.. image:: ../images/yacs_c_08.png
+.. image:: ./images/yacs_c_08.png
    :align: center
    :alt: Arret_boucle
    :width: 163
@@ -242,11 +242,11 @@ Arret_boucle
 Le bloc Arret_boucle n'est présent que pour faire transiter des variables car les paramètres d'entrée des noeuds doivent toujours être remplis. C'est un python très simple :
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 173-184
+   :lines: 165-176
 
 Analyse
 =======
-.. image:: ../images/yacs_c_05.png
+.. image:: ./images/yacs_c_05.png
    :align: center
    :alt: Analyse
    :width: 156
@@ -255,32 +255,32 @@ Analyse
 Le bloc Analyse est un script python qui assure le contrôle complet du processus en examinant successivement les causes d'erreur possible.
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 104-116
+   :lines: 96-108
 
 ../..
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 162-170
+   :lines: 154-162
 
 On commence par analyser le retour du code de calcul :
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 118-123
+   :lines: 110-115
 
 Vérification de la présence du nom du fichier de résultats dans le dictionnaire des résultats :
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 125-132
+   :lines: 117-124
 
 Vérification de la convergence. Cela suppose que la valeur à tester est présente dans le dictionnaire sous la clé 'V_TEST'. Ici, on a mis en place un test sur la variation de la valeur d'un calcul à l'autre. Au premier passage, on ne teste rien. Aux passages suivants, on teste si la variation relative est inférieure à 1 millième. On aurait pu mettre en place un test absolu si on avait récupéré un niveau global d'erreur par exemple.
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 134-152
+   :lines: 126-146
 
 Enfin, on vérifie que l'on ne dépasse pas un nombre maximal d'adaptations :
 
 .. literalinclude:: ../files/yacs_01.fr.xml
-   :lines: 154-159
+   :lines: 146-151
 
 
 Utiliser ce schéma
diff --git a/doc/images/yacs_01.png b/doc/images/yacs_01.png
deleted file mode 100644 (file)
index 0796703..0000000
Binary files a/doc/images/yacs_01.png and /dev/null differ
diff --git a/doc/images/yacs_a_01.png b/doc/images/yacs_a_01.png
deleted file mode 100644 (file)
index 9e29132..0000000
Binary files a/doc/images/yacs_a_01.png and /dev/null differ
diff --git a/doc/images/yacs_b_01.png b/doc/images/yacs_b_01.png
deleted file mode 100644 (file)
index 6fc0e48..0000000
Binary files a/doc/images/yacs_b_01.png and /dev/null differ
diff --git a/doc/images/yacs_c_01.png b/doc/images/yacs_c_01.png
deleted file mode 100644 (file)
index 5f888df..0000000
Binary files a/doc/images/yacs_c_01.png and /dev/null differ
diff --git a/doc/images/yacs_c_02.png b/doc/images/yacs_c_02.png
deleted file mode 100644 (file)
index c8b5d9c..0000000
Binary files a/doc/images/yacs_c_02.png and /dev/null differ
diff --git a/doc/images/yacs_c_03.png b/doc/images/yacs_c_03.png
deleted file mode 100644 (file)
index d93e928..0000000
Binary files a/doc/images/yacs_c_03.png and /dev/null differ
diff --git a/doc/images/yacs_c_04.png b/doc/images/yacs_c_04.png
deleted file mode 100644 (file)
index 110efe9..0000000
Binary files a/doc/images/yacs_c_04.png and /dev/null differ
diff --git a/doc/images/yacs_c_05.png b/doc/images/yacs_c_05.png
deleted file mode 100644 (file)
index 5dc8c86..0000000
Binary files a/doc/images/yacs_c_05.png and /dev/null differ
diff --git a/doc/images/yacs_c_06.png b/doc/images/yacs_c_06.png
deleted file mode 100644 (file)
index ed99290..0000000
Binary files a/doc/images/yacs_c_06.png and /dev/null differ
diff --git a/doc/images/yacs_c_07.png b/doc/images/yacs_c_07.png
deleted file mode 100644 (file)
index fbddf89..0000000
Binary files a/doc/images/yacs_c_07.png and /dev/null differ
diff --git a/doc/images/yacs_c_08.png b/doc/images/yacs_c_08.png
deleted file mode 100644 (file)
index fcd0527..0000000
Binary files a/doc/images/yacs_c_08.png and /dev/null differ
diff --git a/doc/images/yacs_c_09.png b/doc/images/yacs_c_09.png
deleted file mode 100644 (file)
index 8f1282b..0000000
Binary files a/doc/images/yacs_c_09.png and /dev/null differ
diff --git a/doc/images/yacs_d_01.png b/doc/images/yacs_d_01.png
deleted file mode 100644 (file)
index 3963ecc..0000000
Binary files a/doc/images/yacs_d_01.png and /dev/null differ
index 413503d38b1c9af76d27aefbfec0c30806975d45..a0a8042703851677f08fd0369f8830cb9e059b4c 100755 (executable)
@@ -68,8 +68,6 @@ SET(HOMARD_RESOURCES_FILES
   whatis.png
   write.png
   yacs.png
-  yacs_01.fr.xml
-  yacs_01.en.xml
   zone_boxdxyz.png
   zone_boxdxyz_2.png
   zone_icone.png
index 998011a670911bc970f55c787ea67c710acb4967..3d00655d8e80c78cffa88e2b7c70c542aeaf97b3 100644 (file)
     <parameter name="icon"          value="HOMARD.png"/>
     <parameter name="version"       value="@SALOMEHOMARD_VERSION@"/>
     <parameter name="documentation" value="homard_help"/>
-    <!-- Other module preferences -->
-<!--     <parameter name="use_precision"                value="false" /> -->
-    <!-- Input field precisions -->
-<!--     <parameter name="def_precision"                value="3"  /> -->
-  </section>
-  <section name="homard_help" >
-    <parameter name="User's Guide/Homard Module/Mode d'emploi" value="%HOMARD_ROOT_DIR%/share/doc/salome/gui/HOMARD/fr/index.html"/>
-<!--     <parameter name="Mode d'emploi" value="%HOMARD_ROOT_DIR%/share/doc/salome/gui/HOMARD/fr/index.html" icon="drapeau_fr.gif"/> -->
-    <parameter name="User's Guide/Homard Module/User's Guide"  value="%HOMARD_ROOT_DIR%/share/doc/salome/gui/HOMARD/en/index.html"/>
-<!--     <parameter name="User's Guide"  value="%HOMARD_ROOT_DIR%/share/doc/salome/gui/HOMARD/en/index.html" icon="drapeau_en.gif"/> -->
   </section>
   <section name="resources">
     <!-- Module resources -->
     <parameter name="HOMARD" value="%HOMARD_ROOT_DIR%/share/salome/resources/homard"/>
   </section>
+  <section name="homard_help" >
+    <parameter name="User's Guide/Homard Module/Mode d'emploi" value="%HOMARD_ROOT_DIR%/share/doc/salome/gui/HOMARD/fr/index.html" icon="drapeau_fr.gif"/>
+    <parameter name="User's Guide/Homard Module/User's Guide"  value="%HOMARD_ROOT_DIR%/share/doc/salome/gui/HOMARD/en/index.html" icon="drapeau_en.gif"/>
+  </section>
   <section name="windows_geometry">
     <parameter name="HOMARD" value="#00 #00 #00 #FF #00 #00 #00 #00 #FD #00 #00 #00 #02 #00 #00 #00 #00 #00 #00 #01 #00 #00 #00 #02 #8D #FC #02 #00 #00 #00 #01 #FB #00 #00 #00 #22 #00 #6F #00 #62 #00 #6A #00 #65 #00 #63 #00 #74 #00 #42 #00 #72 #00 #6F #00 #77 #00 #73 #00 #65 #00 #72 #00 #44 #00 #6F #00 #63 #00 #6B #01 #00 #00 #00 #37 #00 #00 #02 #8D #00 #00 #00 #53 #00 #FF #FF #FF #00 #00 #00 #03 #00 #00 #05 #40 #00 #00 #00 #53 #FC #01 #00 #00 #00 #01 #FB #00 #00 #00 #22 #00 #70 #00 #79 #00 #74 #00 #68 #00 #6F #00 #6E #00 #43 #00 #6F #00 #6E #00 #73 #00 #6F #00 #6C #00 #65 #00 #44 #00 #6F #00 #63 #00 #6B #01 #00 #00 #00 #00 #00 #00 #05 #40 #00 #00 #00 #46 #00 #FF #FF #FF #00 #00 #04 #38 #00 #00 #02 #8D #00 #00 #00 #04 #00 #00 #00 #04 #00 #00 #00 #08 #00 #00 #00 #08 #FC #00 #00 #00 #01 #00 #00 #00 #02 #00 #00 #00 #02 #00 #00 #00 #1C #00 #53 #00 #61 #00 #6C #00 #6F #00 #6D #00 #65 #00 #53 #00 #74 #00 #61 #00 #6E #00 #64 #00 #61 #00 #72 #00 #64 #01 #00 #00 #00 #00 #FF #FF #FF #FF #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #00 #1A #00 #53 #00 #61 #00 #6C #00 #6F #00 #6D #00 #65 #00 #4D #00 #6F #00 #64 #00 #75 #00 #6C #00 #65 #00 #73 #01 #00 #00 #00 #CE #FF #FF #FF #FF #00 #00 #00 #00 #00 #00 #00 #00"/>
   </section>
diff --git a/resources/yacs_01.en.xml b/resources/yacs_01.en.xml
deleted file mode 100644 (file)
index b0e8a58..0000000
+++ /dev/null
@@ -1,484 +0,0 @@
-<?xml version='1.0' encoding='iso-8859-1' ?>
-<proc name="HOMARD">
-   <objref name="CALCIUM_real" id="IDL:Ports/Calcium_Ports/Calcium_Real_Port:1.0"/>
-   <type name="string" kind="string"/>
-   <struct name="Engines/dataref">
-      <member name="ref" type="string"/>
-   </struct>
-   <objref name="HOMARD_Boundary" id="IDL:HOMARD/HOMARD_Boundary:1.0"/>
-   <objref name="HOMARD_Cas" id="IDL:HOMARD/HOMARD_Cas:1.0"/>
-   <objref name="HOMARD_Hypothesis" id="IDL:HOMARD/HOMARD_Hypothesis:1.0"/>
-   <objref name="HOMARD_Iteration" id="IDL:HOMARD/HOMARD_Iteration:1.0"/>
-   <objref name="HOMARD_Zone" id="IDL:HOMARD/HOMARD_Zone:1.0"/>
-   <objref name="Study" id="IDL:SALOMEDS/Study:1.0"/>
-   <type name="bool" kind="bool"/>
-   <sequence name="boolvec" content="bool"/>
-   <type name="double" kind="double"/>
-   <sequence name="dblevec" content="double"/>
-   <objref name="file" id="file"/>
-   <type name="int" kind="int"/>
-   <sequence name="intvec" content="int"/>
-   <struct name="stringpair">
-      <member name="name" type="string"/>
-      <member name="value" type="string"/>
-   </struct>
-   <sequence name="propvec" content="stringpair"/>
-   <objref name="pyobj" id="python:obj:1.0"/>
-   <sequence name="seqboolvec" content="boolvec"/>
-   <sequence name="seqdblevec" content="dblevec"/>
-   <sequence name="seqint" content="int"/>
-   <sequence name="seqintvec" content="intvec"/>
-   <sequence name="stringvec" content="string"/>
-   <sequence name="seqstringvec" content="stringvec"/>
-   <container name="DefaultContainer">
-      <property name="container_name" value="FactoryServer"/>
-      <property name="name" value="localhost"/>
-   </container>
-   <datanode name="DataInit">
-      <parameter name="MeshFile" type="string">
-DataInit_MeshFile
-      </parameter>
-   </datanode>
-   <bloc name="Etude_Initialisation">
-      <inline name="StudyCreation">
-         <script><code><![CDATA[
-import orbmodule
-import SALOMEDS_idl
-
-import HOMARD
-import HOMARD_Gen_idl
-import HOMARD_Cas_idl
-import HOMARD_Iteration_idl
-import HOMARD_Hypothesis_idl
-import HOMARD_Zone_idl
-import HOMARD_Boundary_idl
-
-import salome
-salome.salome_init()
-CurrentStudy = salome.myStudy
-]]></code></script>
-         <outport name="CurrentStudy" type="Study"/>
-      </inline>
-      <service name="SetCurrentStudy">
-         <component>HOMARD</component>
-         <load container="DefaultContainer"/>
-         <method>SetCurrentStudy</method>
-         <inport name="theStudy" type="Study"/>
-      </service>
-      <control> <fromnode>StudyCreation</fromnode> <tonode>SetCurrentStudy</tonode> </control>
-      <datalink control="false">
-         <fromnode>StudyCreation</fromnode> <fromport>CurrentStudy</fromport>
-         <tonode>SetCurrentStudy</tonode> <toport>theStudy</toport>
-      </datalink>
-   </bloc>
-   <while name="Boucle_de_convergence">
-      <bloc name="Alternance_Calcul_HOMARD">
-         <inline name="Calcul">
-            <script><code><![CDATA[
-import sys
-import os
-#
-Alternance_Calcul_HOMARD_Calcul
-#
-argu  = ["-v"]
-argu.append("--rep_calc=" + rep_calc)
-argu.append("--num=%d" % numCalc)
-argu.append("--mesh_file="  + MeshFile)
-#
-Script_A = Script(argu)
-#
-Error, message_erreur, dico_resu = Script_A.compute ()
-#
-dico_resu["rep_calc"] = rep_calc
-#
-]]></code></script>
-            <inport name="numCalc" type="int"/>
-            <inport name="MeshFile" type="string"/>
-            <outport name="Error" type="int"/>
-            <outport name="dico_resu" type="pyobj"/>
-         </inline>
-         <inline name="Analyse">
-            <script><code><![CDATA[
-global NumCalc
-global resu1
-# Default values
-NumCalcP1 = NumCalc + 1
-FileName = " "
-#
-Analyse_Test_Convergence
-#
-MessInfo = None
-Error = 0
-while not Error :
-#
-# If the computation failed, stop:
-#
-    if ErrCalc :
-        MessInfo = "Computation error # %d" % ErrCalc
-        Error = abs(ErrCalc)
-        break
-#
-# If the file is not defined, stop:
-#
-    if dico_resu.has_key("FileName") :
-        FileName = dico_resu["FileName"]
-    else :
-        MessInfo = "The file for the mesh is not defined."
-        Error = -2
-        break
-#
-# If the criterion is satisfied, stop:
-#
-    if dico_resu.has_key("V_TEST") :
-        valeur_v = dico_resu["V_TEST"]
-        if NumCalc == 0 :
-            resu1 = [valeur_v]
-        else :
-            resu1.append(valeur_v)
-        if NumCalc > 2 :
-            solu_m1 = resu1[-2]
-            rap = ( resu1[-1] - solu_m1 ) / solu_m1
-            if abs(rap) < 0.001 :
-                MessInfo = ""
-                Error = -9999
-                break
-    else :
-        MessInfo = "The value for the test is not available."
-        Error = -3
-        break
-#
-# If the maximum number of adaptations is reached, stop:
-#
-    if MaxIter > 0 :
-      if NumCalc >= MaxIter :
-          MessInfo = "The maximum number of adaptations is reached: %d" % (MaxIter+1)
-          Error = -1
-          break
-#
-    break
-]]></code></script>
-            <inport name="NumCalc" type="int"/>
-            <inport name="ErrCalc" type="int"/>
-            <inport name="dico_resu" type="pyobj"/>
-            <outport name="Error" type="int"/>
-            <outport name="NumCalcP1" type="int"/>
-            <outport name="FileName" type="string"/>
-            <outport name="MessInfo" type="string"/>
-         </inline>
-         <switch name="Adaptation" select="0">
-            <default>
-               <bloc name="Arret_boucle">
-                  <inline name="Arret">
-                     <script><code><![CDATA[
-OK = 0
-MeshFile = " "
-]]></code></script>
-                     <inport name="MessInfo" type="string"/>
-                     <outport name="OK" type="bool"/>
-                     <outport name="MeshFile" type="string"/>
-                     <outport name="MessInfo" type="string"/>
-                  </inline>
-               </bloc>
-            </default>
-            <case id="0">
-               <bloc name="Adaptation_HOMARD">
-                  <switch name="HOMARD_Initialisation" select="0">
-                     <default>
-                        <bloc name="Iter_n">
-                           <service name="LastIteration">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
-                              <method>LastIteration</method>
-                              <inport name="CaseName" type="string"/>
-                              <outport name="return" type="HOMARD_Iteration"/>
-                           </service>
-                           <service name="GetHypothesis">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
-                              <method>GetHypothesis</method>
-                              <inport name="HypoName" type="string"/>
-                              <outport name="return" type="HOMARD_Hypothesis"/>
-                           </service>
-                           <control> <fromnode>LastIteration</fromnode> <tonode>GetHypothesis</tonode> </control>
-                        </bloc>
-                     </default>
-                     <case id="1">
-                        <bloc name="Iter_1">
-                           <service name="CreateCase">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
-                              <method>CreateCase</method>
-                              <inport name="CaseName" type="string"/>
-                              <inport name="MeshName" type="string"/>
-                              <inport name="FileName" type="string"/>
-                              <outport name="return" type="HOMARD_Cas"/>
-                           </service>
-                           <inline name="Case_Options">
-                              <script><code><![CDATA[
-import os
-# Directory for the adaptation
-Iter_1_Case_Options
-# Associated iteration #0
-Iter0 = Case.GetIter0()
-]]></code></script>
-                              <inport name="Case" type="HOMARD_Cas"/>
-                              <outport name="Iter0" type="HOMARD_Iteration"/>
-                           </inline>
-                           <service name="CreateHypothesis">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
-                              <method>CreateHypothesis</method>
-                              <inport name="HypoName" type="string"/>
-                              <outport name="return" type="HOMARD_Hypothesis"/>
-                           </service>
-Iter_1
-                           <datalink control="false">
-                              <fromnode>CreateCase</fromnode> <fromport>return</fromport>
-                              <tonode>Case_Options</tonode> <toport>Case</toport>
-                           </datalink>
-                        </bloc>
-                     </case>
-                  </switch>
-                  <inline name="HOMARD_Exec">
-                     <script><code><![CDATA[
-import os
-# Directory for the computation
-HOMARD_Exec_DirName
-HOMARD_Exec_MeshName
-#
-# Hypothesis
-# ==========
-# . Name of the hypothesis
-# ------------------------
-HypoName = Hypo.GetName()
-#
-# . Options
-# ---------
-HOMARD_Exec_Hypo_Options
-#
-# Name of the next iteration
-# ==========================
-# . Name of the previous iteration
-LastIterName = LastIter.GetName()
-aux = '%03d' % NumAdapt
-# . At iteration #1, addition
-if  NumAdapt == 1 :
-  IterName = LastIterName + "_" + aux
-# . Then, substitution
-else :
-  IterName = LastIterName[:-3] + aux
-#
-# Creation of the iteration
-# =========================
-Iter = LastIter.NextIteration(IterName)
-#
-# Options of the iteration
-# ========================
-# . Association de l'hypothese
-Iter.AssociateHypo(HypoName)
-#
-# . The name of the next mesh
-Iter.SetMeshName(MeshName)
-#
-# . The file of the next mesh
-aux = '%02d' % NumAdapt
-MeshFile = os.path.join (DirName, "maill."+aux+".med")
-Iter.SetMeshFile(MeshFile)
-#
-# . The file for the fields
-FileName = dico_resu["FileName"]
-Iter.SetFieldFile(FileName)
-#
-HOMARD_Exec_Iter_Options
-#
-# Calculation
-# ===========
-Error = Iter.Compute(1,1)
-#
-# The loops stops if problem
-# ==========================
-if Error :
-    OK = 0
-    MessInfo = "Error in HOMARD in the adaptation # %d" % NumAdapt
-else :
-    OK = 1
-    MessInfo = " "
-]]></code></script>
-                     <inport name="NumAdapt" type="int"/>
-                     <inport name="LastIter" type="HOMARD_Iteration"/>
-                     <inport name="Hypo" type="HOMARD_Hypothesis"/>
-                     <inport name="dico_resu" type="pyobj"/>
-                     <outport name="OK" type="bool"/>
-                     <outport name="MessInfo" type="string"/>
-                     <outport name="MeshFile" type="string"/>
-                  </inline>
-                  <control> <fromnode>HOMARD_Initialisation</fromnode> <tonode>HOMARD_Exec</tonode> </control>
-                  <datalink control="false">
-                     <fromnode>HOMARD_Initialisation.default_Iter_n.LastIteration</fromnode> <fromport>return</fromport>
-                     <tonode>HOMARD_Exec</tonode> <toport>LastIter</toport>
-                  </datalink>
-                  <datalink control="false">
-                     <fromnode>HOMARD_Initialisation.p1_Iter_1.Case_Options</fromnode> <fromport>Iter0</fromport>
-                     <tonode>HOMARD_Exec</tonode> <toport>LastIter</toport>
-                  </datalink>
-                  <datalink control="false">
-                     <fromnode>HOMARD_Initialisation.default_Iter_n.GetHypothesis</fromnode> <fromport>return</fromport>
-                     <tonode>HOMARD_Exec</tonode> <toport>Hypo</toport>
-                  </datalink>
-                  <datalink control="false">
-                     <fromnode>HOMARD_Initialisation.p1_Iter_1.CreateHypothesis</fromnode> <fromport>return</fromport>
-                     <tonode>HOMARD_Exec</tonode> <toport>Hypo</toport>
-                  </datalink>
-               </bloc>
-            </case>
-         </switch>
-         <control> <fromnode>Calcul</fromnode> <tonode>Analyse</tonode> </control>
-         <control> <fromnode>Analyse</fromnode> <tonode>Adaptation</tonode> </control>
-         <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>Error</fromport>
-            <tonode>Adaptation</tonode> <toport>select</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>NumCalcP1</fromport>
-            <tonode>Calcul</tonode> <toport>numCalc</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>NumCalcP1</fromport>
-            <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation</tonode> <toport>select</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>NumCalcP1</fromport>
-            <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</tonode> <toport>NumAdapt</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>FileName</fromport>
-            <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase</tonode> <toport>FileName</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>MessInfo</fromport>
-            <tonode>Adaptation.default_Arret_boucle.Arret</tonode> <toport>MessInfo</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Calcul</fromnode> <fromport>Error</fromport>
-            <tonode>Analyse</tonode> <toport>ErrCalc</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Calcul</fromnode> <fromport>dico_resu</fromport>
-            <tonode>Analyse</tonode> <toport>dico_resu</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Calcul</fromnode> <fromport>dico_resu</fromport>
-            <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</tonode> <toport>dico_resu</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Adaptation.default_Arret_boucle.Arret</fromnode> <fromport>MeshFile</fromport>
-            <tonode>Calcul</tonode> <toport>MeshFile</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</fromnode> <fromport>MeshFile</fromport>
-            <tonode>Calcul</tonode> <toport>MeshFile</toport>
-         </datalink>
-      </bloc>
-      <datalink control="false">
-         <fromnode>Alternance_Calcul_HOMARD.Analyse</fromnode> <fromport>NumCalcP1</fromport>
-         <tonode>Alternance_Calcul_HOMARD.Analyse</tonode> <toport>NumCalc</toport>
-      </datalink>
-   </while>
-   <inline name="Bilan">
-      <script><code><![CDATA[
-from PyQt4 import QtGui
-import sys
-app = QtGui.QApplication(sys.argv)
-MessageBoxTitle = "Bilan"
-if MessInfo == "" :
-    MessInfo = "The convergence is reached."
-    QtGui.QMessageBox.information(None, MessageBoxTitle, MessInfo)
-else :
-    QtGui.QMessageBox.critical(None, MessageBoxTitle, MessInfo)
-]]></code></script>
-      <inport name="MessInfo" type="string"/>
-   </inline>
-   <control> <fromnode>DataInit</fromnode> <tonode>Etude_Initialisation</tonode> </control>
-   <control> <fromnode>Etude_Initialisation</fromnode> <tonode>Boucle_de_convergence</tonode> </control>
-   <control> <fromnode>Boucle_de_convergence</fromnode> <tonode>Bilan</tonode> </control>
-   <datalink control="false">
-      <fromnode>DataInit</fromnode> <fromport>MeshFile</fromport>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Calcul</tonode> <toport>MeshFile</toport>
-   </datalink>
-   <datalink control="false">
-      <fromnode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.default_Arret_boucle.Arret</fromnode> <fromport>OK</fromport>
-      <tonode>Boucle_de_convergence</tonode> <toport>condition</toport>
-   </datalink>
-   <datalink control="false">
-      <fromnode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</fromnode> <fromport>OK</fromport>
-      <tonode>Boucle_de_convergence</tonode> <toport>condition</toport>
-   </datalink>
-   <datalink control="false">
-      <fromnode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.default_Arret_boucle.Arret</fromnode> <fromport>MessInfo</fromport>
-      <tonode>Bilan</tonode> <toport>MessInfo</toport>
-   </datalink>
-   <datalink control="false">
-      <fromnode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</fromnode> <fromport>MessInfo</fromport>
-      <tonode>Bilan</tonode> <toport>MessInfo</toport>
-   </datalink>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase</tonode><toport>CaseName</toport>
-      <value><string>Calcul</string></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Calcul</tonode><toport>numCalc</toport>
-      <value><int>0</int></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation</tonode><toport>select</toport>
-      <value><int>0</int></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation</tonode><toport>select</toport>
-      <value><int>0</int></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.LastIteration</tonode><toport>CaseName</toport>
-      <value><string>Calcul</string></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.GetHypothesis</tonode><toport>HypoName</toport>
-      <value><string>Hypo</string></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateHypothesis</tonode><toport>HypoName</toport>
-      <value><string>Hypo</string></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence</tonode><toport>condition</toport>
-      <value><boolean>true</boolean></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Analyse</tonode><toport>NumCalc</toport>
-      <value><int>0</int></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Analyse</tonode><toport>ErrCalc</toport>
-      <value><int>0</int></value>
-   </parameter>
-PARAMETRES
-   <presentation name="__ROOT__" x="0" y="0" width="704" height="977" expanded="1" expx="0" expy="0" expWidth="704" expHeight="977" shownState="0"/>
-   <presentation name="DataInit" x="4" y="32" width="158" height="63" expanded="1" expx="4" expy="32" expWidth="158" expHeight="63" shownState="0"/>
-   <presentation name="Etude_Initialisation" x="175" y="32" width="158" height="38" expanded="0" expx="175" expy="32" expWidth="162.5" expHeight="40.5" shownState="1"/>
-   <presentation name="Etude_Initialisation.StudyCreation" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Etude_Initialisation.SetCurrentStudy" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence" x="4" y="103" width="569" height="514" expanded="1" expx="4" expy="103" expWidth="569" expHeight="514" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD" x="4" y="59" width="561" height="451" expanded="1" expx="10" expy="59" expWidth="561" expHeight="451" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Calcul" x="4" y="32" width="158" height="90" expanded="1" expx="4" expy="32" expWidth="158" expHeight="90" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Analyse" x="181" y="32" width="158" height="171" expanded="1" expx="181" expy="32" expWidth="158" expHeight="171" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation" x="4" y="204" width="553" height="243" expanded="1" expx="4" expy="204" expWidth="553" expHeight="243" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.default_Arret_boucle" x="4" y="59" width="166" height="153" expanded="1" expx="4" expy="59" expWidth="166" expHeight="153" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.default_Arret_boucle.Arret" x="4" y="32" width="158" height="117" expanded="1" expx="4" expy="32" expWidth="158" expHeight="117" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD"  x="202" y="59" width="347" height="180" expanded="1" expx="202" expy="59" expWidth="347" expHeight="180" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation" x="4" y="32" width="158" height="65" expanded="0" expx="4" expy="32" expWidth="167" expHeight="67.5" shownState="1"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1" x="0" y="0" width="162.5" height="40.5" expanded="1" expx="4" expy="59" expWidth="162.5" expHeight="40.5" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.Case_Options" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateHypothesis" x="0" y="0" width="158" height="36" expanded="1" expx="322" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n" x="0" y="0" width="162.5" height="40.5" expanded="1" expx="4" expy="1639.5" expWidth="162.5" expHeight="40.5" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.LastIteration" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.GetHypothesis" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec" x="185" y="32" width="158" height="144" expanded="1" expx="185" expy="32" expWidth="158" expHeight="144" shownState="0"/>
-   <presentation name="Bilan" x="350" y="32" width="158" height="63" expanded="1" expx="350" expy="32" expWidth="158" expHeight="63" shownState="0"/>
-</proc>
diff --git a/resources/yacs_01.fr.xml b/resources/yacs_01.fr.xml
deleted file mode 100644 (file)
index 0e41d9e..0000000
+++ /dev/null
@@ -1,484 +0,0 @@
-<?xml version='1.0' encoding='iso-8859-1' ?>
-<proc name="HOMARD">
-   <objref name="CALCIUM_real" id="IDL:Ports/Calcium_Ports/Calcium_Real_Port:1.0"/>
-   <type name="string" kind="string"/>
-   <struct name="Engines/dataref">
-      <member name="ref" type="string"/>
-   </struct>
-   <objref name="HOMARD_Boundary" id="IDL:HOMARD/HOMARD_Boundary:1.0"/>
-   <objref name="HOMARD_Cas" id="IDL:HOMARD/HOMARD_Cas:1.0"/>
-   <objref name="HOMARD_Hypothesis" id="IDL:HOMARD/HOMARD_Hypothesis:1.0"/>
-   <objref name="HOMARD_Iteration" id="IDL:HOMARD/HOMARD_Iteration:1.0"/>
-   <objref name="HOMARD_Zone" id="IDL:HOMARD/HOMARD_Zone:1.0"/>
-   <objref name="Study" id="IDL:SALOMEDS/Study:1.0"/>
-   <type name="bool" kind="bool"/>
-   <sequence name="boolvec" content="bool"/>
-   <type name="double" kind="double"/>
-   <sequence name="dblevec" content="double"/>
-   <objref name="file" id="file"/>
-   <type name="int" kind="int"/>
-   <sequence name="intvec" content="int"/>
-   <struct name="stringpair">
-      <member name="name" type="string"/>
-      <member name="value" type="string"/>
-   </struct>
-   <sequence name="propvec" content="stringpair"/>
-   <objref name="pyobj" id="python:obj:1.0"/>
-   <sequence name="seqboolvec" content="boolvec"/>
-   <sequence name="seqdblevec" content="dblevec"/>
-   <sequence name="seqint" content="int"/>
-   <sequence name="seqintvec" content="intvec"/>
-   <sequence name="stringvec" content="string"/>
-   <sequence name="seqstringvec" content="stringvec"/>
-   <container name="DefaultContainer">
-      <property name="container_name" value="FactoryServer"/>
-      <property name="name" value="localhost"/>
-   </container>
-   <datanode name="DataInit">
-      <parameter name="MeshFile" type="string">
-DataInit_MeshFile
-      </parameter>
-   </datanode>
-   <bloc name="Etude_Initialisation">
-      <inline name="StudyCreation">
-         <script><code><![CDATA[
-import orbmodule
-import SALOMEDS_idl
-
-import HOMARD
-import HOMARD_Gen_idl
-import HOMARD_Cas_idl
-import HOMARD_Iteration_idl
-import HOMARD_Hypothesis_idl
-import HOMARD_Zone_idl
-import HOMARD_Boundary_idl
-
-import salome
-salome.salome_init()
-CurrentStudy = salome.myStudy
-]]></code></script>
-         <outport name="CurrentStudy" type="Study"/>
-      </inline>
-      <service name="SetCurrentStudy">
-         <component>HOMARD</component>
-         <load container="DefaultContainer"/>
-         <method>SetCurrentStudy</method>
-         <inport name="theStudy" type="Study"/>
-      </service>
-      <control> <fromnode>StudyCreation</fromnode> <tonode>SetCurrentStudy</tonode> </control>
-      <datalink control="false">
-         <fromnode>StudyCreation</fromnode> <fromport>CurrentStudy</fromport>
-         <tonode>SetCurrentStudy</tonode> <toport>theStudy</toport>
-      </datalink>
-   </bloc>
-   <while name="Boucle_de_convergence">
-      <bloc name="Alternance_Calcul_HOMARD">
-         <inline name="Calcul">
-            <script><code><![CDATA[
-import sys
-import os
-#
-Alternance_Calcul_HOMARD_Calcul
-#
-argu  = ["-v"]
-argu.append("--rep_calc=" + rep_calc)
-argu.append("--num=%d" % numCalc)
-argu.append("--mesh_file="  + MeshFile)
-#
-Script_A = Script(argu)
-#
-Error, message_erreur, dico_resu = Script_A.compute ()
-#
-dico_resu["rep_calc"] = rep_calc
-#
-]]></code></script>
-            <inport name="numCalc" type="int"/>
-            <inport name="MeshFile" type="string"/>
-            <outport name="Error" type="int"/>
-            <outport name="dico_resu" type="pyobj"/>
-         </inline>
-         <inline name="Analyse">
-            <script><code><![CDATA[
-global NumCalc
-global resu1
-# Valeurs par defaut
-NumCalcP1 = NumCalc + 1
-FileName = " "
-#
-Analyse_Test_Convergence
-#
-MessInfo = None
-Error = 0
-while not Error :
-#
-# Si le calcul a fini en erreur, on arrete :
-#
-    if ErrCalc :
-        MessInfo = "Erreur de calcul numero %d" % ErrCalc
-        Error = abs(ErrCalc)
-        break
-#
-# Si le fichier n'a pas ete defini, on arrete :
-#
-    if dico_resu.has_key("FileName") :
-        FileName = dico_resu["FileName"]
-    else :
-        MessInfo = "Le fichier du maillage n'a pas ete defini"
-        Error = -2
-        break
-#
-# Si le critere est respecte, on arrete :
-#
-    if dico_resu.has_key("V_TEST") :
-        valeur_v = dico_resu["V_TEST"]
-        if NumCalc == 0 :
-            resu1 = [valeur_v]
-        else :
-            resu1.append(valeur_v)
-        if NumCalc > 2 :
-            solu_m1 = resu1[-2]
-            rap = ( resu1[-1] - solu_m1 ) / solu_m1
-            if abs(rap) < 0.001 :
-                MessInfo = ""
-                Error = -9999
-                break
-    else :
-        MessInfo = "La valeur a tester n'a pas ete fournie"
-        Error = -3
-        break
-#
-# Si on depasse le maximum, on arrete :
-#
-    if MaxIter > 0 :
-      if NumCalc >= MaxIter :
-          MessInfo = "La limite en nombre de calculs a ete atteinte : %d" % (MaxIter+1)
-          Error = -1
-          break
-#
-    break
-]]></code></script>
-            <inport name="NumCalc" type="int"/>
-            <inport name="ErrCalc" type="int"/>
-            <inport name="dico_resu" type="pyobj"/>
-            <outport name="Error" type="int"/>
-            <outport name="NumCalcP1" type="int"/>
-            <outport name="FileName" type="string"/>
-            <outport name="MessInfo" type="string"/>
-         </inline>
-         <switch name="Adaptation" select="0">
-            <default>
-               <bloc name="Arret_boucle">
-                  <inline name="Arret">
-                     <script><code><![CDATA[
-OK = 0
-MeshFile = " "
-]]></code></script>
-                     <inport name="MessInfo" type="string"/>
-                     <outport name="OK" type="bool"/>
-                     <outport name="MeshFile" type="string"/>
-                     <outport name="MessInfo" type="string"/>
-                  </inline>
-               </bloc>
-            </default>
-            <case id="0">
-               <bloc name="Adaptation_HOMARD">
-                  <switch name="HOMARD_Initialisation" select="0">
-                     <default>
-                        <bloc name="Iter_n">
-                           <service name="LastIteration">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
-                              <method>LastIteration</method>
-                              <inport name="CaseName" type="string"/>
-                              <outport name="return" type="HOMARD_Iteration"/>
-                           </service>
-                           <service name="GetHypothesis">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
-                              <method>GetHypothesis</method>
-                              <inport name="HypoName" type="string"/>
-                              <outport name="return" type="HOMARD_Hypothesis"/>
-                           </service>
-                           <control> <fromnode>LastIteration</fromnode> <tonode>GetHypothesis</tonode> </control>
-                        </bloc>
-                     </default>
-                     <case id="1">
-                        <bloc name="Iter_1">
-                           <service name="CreateCase">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
-                              <method>CreateCase</method>
-                              <inport name="CaseName" type="string"/>
-                              <inport name="MeshName" type="string"/>
-                              <inport name="FileName" type="string"/>
-                              <outport name="return" type="HOMARD_Cas"/>
-                           </service>
-                           <inline name="Case_Options">
-                              <script><code><![CDATA[
-import os
-# Repertoire d'adaptation
-Iter_1_Case_Options
-# Iteration 0 associee
-Iter0 = Case.GetIter0()
-]]></code></script>
-                              <inport name="Case" type="HOMARD_Cas"/>
-                              <outport name="Iter0" type="HOMARD_Iteration"/>
-                           </inline>
-                           <service name="CreateHypothesis">
-                              <node>Etude_Initialisation.SetCurrentStudy</node>
-                              <method>CreateHypothesis</method>
-                              <inport name="HypoName" type="string"/>
-                              <outport name="return" type="HOMARD_Hypothesis"/>
-                           </service>
-Iter_1
-                           <datalink control="false">
-                              <fromnode>CreateCase</fromnode> <fromport>return</fromport>
-                              <tonode>Case_Options</tonode> <toport>Case</toport>
-                           </datalink>
-                        </bloc>
-                     </case>
-                  </switch>
-                  <inline name="HOMARD_Exec">
-                     <script><code><![CDATA[
-import os
-# Repertoire d'execution
-HOMARD_Exec_DirName
-HOMARD_Exec_MeshName
-#
-# Hypothese
-# =========
-# . Nom de l'hypothese
-# --------------------
-HypoName = Hypo.GetName()
-#
-# . Options
-# ---------
-HOMARD_Exec_Hypo_Options
-#
-# Nom de la future iteration
-# ==========================
-# . Nom de l'iteration precedente
-LastIterName = LastIter.GetName()
-aux = '%03d' % NumAdapt
-# . A l'iteration 1, on complete
-if  NumAdapt == 1 :
-  IterName = LastIterName + "_" + aux
-# . Ensuite, on substitue
-else :
-  IterName = LastIterName[:-3] + aux
-#
-# Creation de l'iteration
-# =======================
-Iter = LastIter.NextIteration(IterName)
-#
-# Options de l'iteration
-# ======================
-# . Association de l'hypothese
-Iter.AssociateHypo(HypoName)
-#
-# . Le nom du futur maillage
-Iter.SetMeshName(MeshName)
-#
-# . Le fichier du futur maillage
-aux = '%02d' % NumAdapt
-MeshFile = os.path.join (DirName, "maill."+aux+".med")
-Iter.SetMeshFile(MeshFile)
-#
-# . Le fichier contenant les champs
-FileName = dico_resu["FileName"]
-Iter.SetFieldFile(FileName)
-#
-HOMARD_Exec_Iter_Options
-#
-# Calcul
-# ======
-Error = Iter.Compute(1,1)
-#
-# Arret de la boucle si erreur
-# ============================
-if Error :
-    OK = 0
-    MessInfo = "Erreur dans HOMARD pour l'adaptation numero %d" % NumAdapt
-else :
-    OK = 1
-    MessInfo = " "
-]]></code></script>
-                     <inport name="NumAdapt" type="int"/>
-                     <inport name="LastIter" type="HOMARD_Iteration"/>
-                     <inport name="Hypo" type="HOMARD_Hypothesis"/>
-                     <inport name="dico_resu" type="pyobj"/>
-                     <outport name="OK" type="bool"/>
-                     <outport name="MessInfo" type="string"/>
-                     <outport name="MeshFile" type="string"/>
-                  </inline>
-                  <control> <fromnode>HOMARD_Initialisation</fromnode> <tonode>HOMARD_Exec</tonode> </control>
-                  <datalink control="false">
-                     <fromnode>HOMARD_Initialisation.default_Iter_n.LastIteration</fromnode> <fromport>return</fromport>
-                     <tonode>HOMARD_Exec</tonode> <toport>LastIter</toport>
-                  </datalink>
-                  <datalink control="false">
-                     <fromnode>HOMARD_Initialisation.p1_Iter_1.Case_Options</fromnode> <fromport>Iter0</fromport>
-                     <tonode>HOMARD_Exec</tonode> <toport>LastIter</toport>
-                  </datalink>
-                  <datalink control="false">
-                     <fromnode>HOMARD_Initialisation.default_Iter_n.GetHypothesis</fromnode> <fromport>return</fromport>
-                     <tonode>HOMARD_Exec</tonode> <toport>Hypo</toport>
-                  </datalink>
-                  <datalink control="false">
-                     <fromnode>HOMARD_Initialisation.p1_Iter_1.CreateHypothesis</fromnode> <fromport>return</fromport>
-                     <tonode>HOMARD_Exec</tonode> <toport>Hypo</toport>
-                  </datalink>
-               </bloc>
-            </case>
-         </switch>
-         <control> <fromnode>Calcul</fromnode> <tonode>Analyse</tonode> </control>
-         <control> <fromnode>Analyse</fromnode> <tonode>Adaptation</tonode> </control>
-         <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>Error</fromport>
-            <tonode>Adaptation</tonode> <toport>select</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>NumCalcP1</fromport>
-            <tonode>Calcul</tonode> <toport>numCalc</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>NumCalcP1</fromport>
-            <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation</tonode> <toport>select</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>NumCalcP1</fromport>
-            <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</tonode> <toport>NumAdapt</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>FileName</fromport>
-            <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase</tonode> <toport>FileName</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Analyse</fromnode> <fromport>MessInfo</fromport>
-            <tonode>Adaptation.default_Arret_boucle.Arret</tonode> <toport>MessInfo</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Calcul</fromnode> <fromport>Error</fromport>
-            <tonode>Analyse</tonode> <toport>ErrCalc</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Calcul</fromnode> <fromport>dico_resu</fromport>
-            <tonode>Analyse</tonode> <toport>dico_resu</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Calcul</fromnode> <fromport>dico_resu</fromport>
-            <tonode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</tonode> <toport>dico_resu</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Adaptation.default_Arret_boucle.Arret</fromnode> <fromport>MeshFile</fromport>
-            <tonode>Calcul</tonode> <toport>MeshFile</toport>
-         </datalink>
-         <datalink control="false">
-            <fromnode>Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</fromnode> <fromport>MeshFile</fromport>
-            <tonode>Calcul</tonode> <toport>MeshFile</toport>
-         </datalink>
-      </bloc>
-      <datalink control="false">
-         <fromnode>Alternance_Calcul_HOMARD.Analyse</fromnode> <fromport>NumCalcP1</fromport>
-         <tonode>Alternance_Calcul_HOMARD.Analyse</tonode> <toport>NumCalc</toport>
-      </datalink>
-   </while>
-   <inline name="Bilan">
-      <script><code><![CDATA[
-from PyQt4 import QtGui
-import sys
-app = QtGui.QApplication(sys.argv)
-MessageBoxTitle = "Bilan"
-if MessInfo == "" :
-    MessInfo = "Le calcul est converge."
-    QtGui.QMessageBox.information(None, MessageBoxTitle, MessInfo)
-else :
-    QtGui.QMessageBox.critical(None, MessageBoxTitle, MessInfo)
-]]></code></script>
-      <inport name="MessInfo" type="string"/>
-   </inline>
-   <control> <fromnode>DataInit</fromnode> <tonode>Etude_Initialisation</tonode> </control>
-   <control> <fromnode>Etude_Initialisation</fromnode> <tonode>Boucle_de_convergence</tonode> </control>
-   <control> <fromnode>Boucle_de_convergence</fromnode> <tonode>Bilan</tonode> </control>
-   <datalink control="false">
-      <fromnode>DataInit</fromnode> <fromport>MeshFile</fromport>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Calcul</tonode> <toport>MeshFile</toport>
-   </datalink>
-   <datalink control="false">
-      <fromnode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.default_Arret_boucle.Arret</fromnode> <fromport>OK</fromport>
-      <tonode>Boucle_de_convergence</tonode> <toport>condition</toport>
-   </datalink>
-   <datalink control="false">
-      <fromnode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</fromnode> <fromport>OK</fromport>
-      <tonode>Boucle_de_convergence</tonode> <toport>condition</toport>
-   </datalink>
-   <datalink control="false">
-      <fromnode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.default_Arret_boucle.Arret</fromnode> <fromport>MessInfo</fromport>
-      <tonode>Bilan</tonode> <toport>MessInfo</toport>
-   </datalink>
-   <datalink control="false">
-      <fromnode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec</fromnode> <fromport>MessInfo</fromport>
-      <tonode>Bilan</tonode> <toport>MessInfo</toport>
-   </datalink>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase</tonode><toport>CaseName</toport>
-      <value><string>Calcul</string></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Calcul</tonode><toport>numCalc</toport>
-      <value><int>0</int></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation</tonode><toport>select</toport>
-      <value><int>0</int></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation</tonode><toport>select</toport>
-      <value><int>0</int></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.LastIteration</tonode><toport>CaseName</toport>
-      <value><string>Calcul</string></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.GetHypothesis</tonode><toport>HypoName</toport>
-      <value><string>Hypo</string></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateHypothesis</tonode><toport>HypoName</toport>
-      <value><string>Hypo</string></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence</tonode><toport>condition</toport>
-      <value><boolean>true</boolean></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Analyse</tonode><toport>NumCalc</toport>
-      <value><int>0</int></value>
-   </parameter>
-   <parameter>
-      <tonode>Boucle_de_convergence.Alternance_Calcul_HOMARD.Analyse</tonode><toport>ErrCalc</toport>
-      <value><int>0</int></value>
-   </parameter>
-PARAMETRES
-   <presentation name="__ROOT__" x="0" y="0" width="704" height="977" expanded="1" expx="0" expy="0" expWidth="704" expHeight="977" shownState="0"/>
-   <presentation name="DataInit" x="4" y="32" width="158" height="63" expanded="1" expx="4" expy="32" expWidth="158" expHeight="63" shownState="0"/>
-   <presentation name="Etude_Initialisation" x="175" y="32" width="158" height="38" expanded="0" expx="175" expy="32" expWidth="162.5" expHeight="40.5" shownState="1"/>
-   <presentation name="Etude_Initialisation.StudyCreation" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Etude_Initialisation.SetCurrentStudy" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence" x="4" y="103" width="569" height="514" expanded="1" expx="4" expy="103" expWidth="569" expHeight="514" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD" x="4" y="59" width="561" height="451" expanded="1" expx="10" expy="59" expWidth="561" expHeight="451" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Calcul" x="4" y="32" width="158" height="90" expanded="1" expx="4" expy="32" expWidth="158" expHeight="90" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Analyse" x="181" y="32" width="158" height="171" expanded="1" expx="181" expy="32" expWidth="158" expHeight="171" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation" x="4" y="204" width="553" height="243" expanded="1" expx="4" expy="204" expWidth="553" expHeight="243" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.default_Arret_boucle" x="4" y="59" width="166" height="153" expanded="1" expx="4" expy="59" expWidth="166" expHeight="153" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.default_Arret_boucle.Arret" x="4" y="32" width="158" height="117" expanded="1" expx="4" expy="32" expWidth="158" expHeight="117" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD"  x="202" y="59" width="347" height="180" expanded="1" expx="202" expy="59" expWidth="347" expHeight="180" shownState="0"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation" x="4" y="32" width="158" height="65" expanded="0" expx="4" expy="32" expWidth="167" expHeight="67.5" shownState="1"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1" x="0" y="0" width="162.5" height="40.5" expanded="1" expx="4" expy="59" expWidth="162.5" expHeight="40.5" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateCase" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.Case_Options" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.p1_Iter_1.CreateHypothesis" x="0" y="0" width="158" height="36" expanded="1" expx="322" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n" x="0" y="0" width="162.5" height="40.5" expanded="1" expx="4" expy="1639.5" expWidth="162.5" expHeight="40.5" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.LastIteration" x="0" y="0" width="158" height="36" expanded="1" expx="4" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Initialisation.default_Iter_n.GetHypothesis" x="0" y="0" width="158" height="36" expanded="1" expx="163" expy="32" expWidth="158" expHeight="36" shownState="2"/>
-   <presentation name="Boucle_de_convergence.Alternance_Calcul_HOMARD.Adaptation.p0_Adaptation_HOMARD.HOMARD_Exec" x="185" y="32" width="158" height="144" expanded="1" expx="185" expy="32" expWidth="158" expHeight="144" shownState="0"/>
-   <presentation name="Bilan" x="350" y="32" width="158" height="63" expanded="1" expx="350" expy="32" expWidth="158" expHeight="63" shownState="0"/>
-</proc>
index ca1a4c93bb92351cad2e72a35fff3de00edd90e3..f437e889182fb3770460703ad10d3b050d222d18 100755 (executable)
@@ -21,7 +21,7 @@
 Python script for HOMARD
 Test test_1
 """
-__revision__ = "V4.03"
+__revision__ = "V4.04"
 
 #========================================================================
 TEST_NAME = "test_1"
@@ -61,7 +61,7 @@ Python script for HOMARD
 #
   while not error :
   #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
   #
   # Creation of the zones
   # =====================
index ad6cff7f3e4a5ef1b7a3ce53666d37f1d69032a5..846f691f6ddc42627d73891bd6fcc84fd2427379 100755 (executable)
@@ -21,7 +21,7 @@
 Python script for HOMARD
 Test test_2
 """
-__revision__ = "V4.03"
+__revision__ = "V4.04"
 
 #========================================================================
 TEST_NAME = "test_2"
@@ -61,7 +61,7 @@ Python script for HOMARD
 #
   while not error :
   #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
   #
   # Creation of the boundaries
   # ==========================
index 87175a93f21e046b9d3a8474ef7fc6f1a7784468..9b1b9790b1df119d3628b5037d1dd573cbdf483d 100755 (executable)
@@ -21,7 +21,7 @@
 Python script for HOMARD
 Test test_3
 """
-__revision__ = "V4.04"
+__revision__ = "V4.05"
 
 #========================================================================
 TEST_NAME = "test_3"
@@ -62,7 +62,7 @@ Python script for HOMARD
 #
   while not error :
   #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
   #
   # Creation of the boundaries
   # ==========================
index ddb7d7d1d83fdf9f2e0c80583d5d30f9cf9ac572..242dfb659520e4c7716e9a3888827a16f2d0261d 100755 (executable)
@@ -21,7 +21,7 @@
 Python script for HOMARD
 Test test_4
 """
-__revision__ = "V3.03"
+__revision__ = "V3.04"
 
 #========================================================================
 TEST_NAME = "test_4"
@@ -184,7 +184,7 @@ Python script for HOMARD
 #
   while not error :
   #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
   #
   # Creation of the zones
   # =====================
index 125a9626a95ef280df7272fe4e2cf79fb501f853..180325067a964df766eced636caf3da5f5a096f6 100755 (executable)
@@ -22,7 +22,7 @@ Python script for HOMARD
 Specific conditions for Code_Saturne
 Test test_5
 """
-__revision__ = "V2.03"
+__revision__ = "V2.04"
 
 #========================================================================
 TEST_NAME = "test_5"
@@ -232,7 +232,7 @@ Python script for HOMARD
 #
   while not error :
   #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
   #
   # Creation of the hypothese DISTANCE INVERSE
   # ==========================================
index 9f062dbff0c74b2cf2afd5da33322b785febd49d..e11917d7a4543335786fb10d8db6917d91bcb159 100755 (executable)
@@ -22,7 +22,7 @@
 Python script for HOMARD
 Test test_6
 """
-__revision__ = "V1.05"
+__revision__ = "V1.06"
 
 #========================================================================
 TEST_NAME = "test_6"
@@ -217,7 +217,7 @@ Python script for HOMARD
 #
   while not erreur :
     #
-    HOMARD.UpdateStudy()
+    #HOMARD.UpdateStudy()
     #
     # Frontière
     # =========
index 960c0e8dafb814808456df205695df057ce17e32..92b4ae851cfed5660d4bd5b65ca4308926f3e5f6 100755 (executable)
@@ -21,7 +21,7 @@
 Python script for HOMARD
 Utilitaires pour les tests
 """
-__revision__ = "V4.02"
+__revision__ = "V4.03"
 
 import os
 import tempfile
@@ -160,7 +160,7 @@ def saveGeometry( xao_file, name, author="" ):
   """
   import salome
   from salome.geom import geomBuilder
-  geompy = geomBuilder.New(salome.myStudy)
+  geompy = geomBuilder.New()
   error = 0
 
   # find an object having groups in GEOM component
index e8105bcef3868f2bc70806eaa75f08c8b43ee3cd..54ccc615ddd9137f9fa94d3a8211b661a4d805b4 100755 (executable)
@@ -21,7 +21,7 @@
 Python script for HOMARD
 Test tutorial_1 associe au tutorial 1
 """
-__revision__ = "V4.04"
+__revision__ = "V4.05"
 
 #========================================================================
 TEST_NAME = "tutorial_1"
@@ -30,11 +30,9 @@ N_ITER_TEST_FILE = 3
 #========================================================================
 import os
 import sys
-import HOMARD
-import salome
 #
 # ==================================
-PATH_HOMARD = os.getenv('HOMARD_ROOT_DIR')
+PATH_HOMARD = os.getenv("HOMARD_ROOT_DIR")
 # Repertoire des scripts utilitaires
 REP_PYTHON = os.path.join(PATH_HOMARD, "bin", "salome", "test", "HOMARD")
 REP_PYTHON = os.path.normpath(REP_PYTHON)
@@ -52,8 +50,10 @@ from tutorial_util import gzip_gunzip
 # ==================================
 gzip_gunzip(DATA_TUTORIAL, 1, -1)
 # ==================================
-
+#
+import salome
 salome.salome_init()
+import HOMARD
 import iparameters
 IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
 IPAR.append("AP_MODULES_LIST", "Homard")
@@ -70,7 +70,7 @@ Python script for HOMARD
   #
   while not erreur :
   #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
     #
     # Hypotheses
     # ==========
index 7f89207c0d2091f30180175e516f44b1534a2bb3..9be1fd8c077222e05884c225af2a51f34bf30f46 100755 (executable)
@@ -21,7 +21,7 @@
 Python script for HOMARD
 Test tutorial_2 associe au tutorial 2
 """
-__revision__ = "V4.04"
+__revision__ = "V4.05"
 
 #========================================================================
 TEST_NAME = "tutorial_2"
@@ -30,8 +30,6 @@ N_ITER_TEST_FILE = 2
 #========================================================================
 import os
 import sys
-import HOMARD
-import salome
 #
 # ==================================
 PATH_HOMARD = os.getenv('HOMARD_ROOT_DIR')
@@ -52,8 +50,11 @@ from tutorial_util import gzip_gunzip
 # ==================================
 gzip_gunzip(DATA_TUTORIAL, 2, -1)
 # ==================================
-
+#
+import salome
 salome.salome_init()
+import HOMARD
+#
 import iparameters
 IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
 IPAR.append("AP_MODULES_LIST", "Homard")
@@ -70,7 +71,7 @@ Python script for HOMARD
   #
   while not erreur :
     #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
     #
     # Creation des zones
     # ==================
index ae8e15354f89d32cfb7b187aa6d286ff12e2d7bb..d51a5492156efb54ae36a35481fceaf8e6bf0931 100755 (executable)
@@ -21,7 +21,7 @@
 Python script for HOMARD
 Test tutorial_3 associe au tutorial 3
 """
-__revision__ = "V4.04"
+__revision__ = "V4.05"
 
 #========================================================================
 TEST_NAME = "tutorial_3"
@@ -30,8 +30,6 @@ N_ITER_TEST_FILE = 2
 #========================================================================
 import os
 import sys
-import HOMARD
-import salome
 #
 # ==================================
 PATH_HOMARD = os.getenv('HOMARD_ROOT_DIR')
@@ -52,8 +50,11 @@ from tutorial_util import gzip_gunzip
 # ==================================
 gzip_gunzip(DATA_TUTORIAL, 3, -1)
 # ==================================
-
+#
+import salome
 salome.salome_init()
+import HOMARD
+#
 import iparameters
 IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
 IPAR.append("AP_MODULES_LIST", "Homard")
@@ -70,7 +71,7 @@ Python script for HOMARD
   #
   while not erreur :
     #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
     #
     # Hypotheses
     # ==========
@@ -209,7 +210,7 @@ if ERREUR:
 # ==================================
 gzip_gunzip(DATA_TUTORIAL, 3, 1)
 # ==================================
-#
+
 if salome.sg.hasDesktop():
   salome.sg.updateObjBrowser()
   iparameters.getSession().restoreVisualState(1)
index 61ee052c91f9afd33cd78ec705470d2487fc0724..ef052ea6aca916acdecb19df33dd8489a4efaaf4 100755 (executable)
@@ -1,4 +1,5 @@
 # -*- coding: utf-8 -*-
+
 # Copyright (C) 2011-2016  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 #
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
+
 """
 Python script for HOMARD
 Test tutorial_4 associe au tutorial 4
 """
-__revision__ = "V5.03"
+__revision__ = "V5.04"
 
 #========================================================================
 TEST_NAME = "tutorial_4"
@@ -30,8 +32,6 @@ N_ITER_TEST_FILE = 3
 #========================================================================
 import os
 import sys
-import HOMARD
-import salome
 #
 # ==================================
 PATH_HOMARD = os.getenv('HOMARD_ROOT_DIR')
@@ -52,8 +52,11 @@ from tutorial_util import gzip_gunzip
 # ==================================
 gzip_gunzip(DATA_TUTORIAL, 4, -1)
 # ==================================
-
+#
+import salome
 salome.salome_init()
+import HOMARD
+#
 import iparameters
 IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
 IPAR.append("AP_MODULES_LIST", "Homard")
@@ -70,7 +73,7 @@ Python script for HOMARD
 #
   while not erreur :
     #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
     #
     # Frontières
     # ==========
@@ -192,7 +195,7 @@ if ERREUR:
 # ==================================
 gzip_gunzip(DATA_TUTORIAL, 4, 1)
 # ==================================
-#
+
 if salome.sg.hasDesktop():
   salome.sg.updateObjBrowser()
   iparameters.getSession().restoreVisualState(1)
index 499a195f6113a66afd4ba91cd2d6223d7b03b5a8..daa8931b33d7da9b117c1629a24d5182b3080435 100755 (executable)
@@ -1,4 +1,5 @@
 # -*- coding: utf-8 -*-
+
 # Copyright (C) 2011-2016  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 #
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
+
 """
 Python script for HOMARD
 Test tutorial_5 associe au tutorial 5
 """
-__revision__ = "V4.04"
+__revision__ = "V4.05"
 
 #========================================================================
 TEST_NAME = "tutorial_5"
@@ -30,8 +32,6 @@ N_ITER_TEST_FILE = 2
 #========================================================================
 import os
 import sys
-import HOMARD
-import salome
 #
 # ==================================
 PATH_HOMARD = os.getenv('HOMARD_ROOT_DIR')
@@ -52,8 +52,11 @@ from tutorial_util import gzip_gunzip
 # ==================================
 gzip_gunzip(DATA_TUTORIAL, 5, -1)
 # ==================================
-
+#
+import salome
 salome.salome_init()
+import HOMARD
+#
 import iparameters
 IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
 IPAR.append("AP_MODULES_LIST", "Homard")
@@ -70,7 +73,7 @@ Python script for HOMARD
 #
   while not erreur :
     #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
     #
     # Frontiere
     # =========
@@ -182,7 +185,7 @@ if ERREUR:
 # ==================================
 gzip_gunzip(DATA_TUTORIAL, 5, 1)
 # ==================================
-#
+
 if salome.sg.hasDesktop():
   salome.sg.updateObjBrowser()
   iparameters.getSession().restoreVisualState(1)
index 433a7c8457deaf3c61e6513def1a8cd44da38ece..3f8c36c3c08351872219baa2ee914ffe81237794 100755 (executable)
@@ -1,4 +1,5 @@
 # -*- coding: utf-8 -*-
+
 # Copyright (C) 2011-2016  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 #
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
+
 """
 Python script for HOMARD
 Test tutorial_6 associe au tutorial 6
 """
-__revision__ = "V4.04"
+__revision__ = "V4.05"
 
 #========================================================================
 TEST_NAME = "tutorial_6"
@@ -53,8 +55,11 @@ from tutorial_util import gzip_gunzip
 gzip_gunzip(DATA_TUTORIAL, 4, -1)
 gzip_gunzip(DATA_TUTORIAL, 6, -1)
 # ==================================
-
+#
+import salome
 salome.salome_init()
+import HOMARD
+#
 import iparameters
 IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
 IPAR.append("AP_MODULES_LIST", "Homard")
@@ -71,7 +76,7 @@ Python script for HOMARD
 #
   while not erreur :
     #
-    HOMARD.UpdateStudy()
+  #  HOMARD.UpdateStudy()
     #
     # Frontières
     # ==========
@@ -207,7 +212,7 @@ if ERREUR:
 gzip_gunzip(DATA_TUTORIAL, 4, 1)
 gzip_gunzip(DATA_TUTORIAL, 6, 1)
 # ==================================
-#
+
 if salome.sg.hasDesktop():
   salome.sg.updateObjBrowser()
   iparameters.getSession().restoreVisualState(1)