Salome HOME
Merge Python 3 porting.
[modules/yacs.git] / src / yacsloader / samples / switch10.xml
index d9ad4c259bfedb10e5b136679da7c8c440e1aced..b9e73cb4543b8d16089a8aa28c9a539e626e7e5e 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding='iso-8859-1' ?>
 <!--
-  Copyright (C) 2006-2014  CEA/DEN, EDF R&D
+  Copyright (C) 2006-2016  CEA/DEN, EDF R&D
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -20,7 +20,6 @@
 
 -->
 <proc name="proc">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
       <outport name="select" type="int"/>
    </inline>
    <inline name="n2">
-      <script><code><![CDATA[print p1]]></code></script>
+      <script><code><![CDATA[print(p1)]]></code></script>
       <inport name="p1" type="double"/>
       <outport name="p1" type="double"/>
    </inline>
    <switch name="b1">
       <default>
          <inline name="n2">
-            <script><code><![CDATA[print p1]]></code></script>
+            <script><code><![CDATA[print(p1)]]></code></script>
             <inport name="p1" type="double"/>
             <outport name="p1" type="double"/>
          </inline>
       </default>
       <case id="1">
          <inline name="n2">
-            <script><code><![CDATA[print p1]]></code></script>
+            <script><code><![CDATA[print(p1)]]></code></script>
             <inport name="p1" type="double"/>
             <outport name="p1" type="double"/>
          </inline>
@@ -74,7 +73,7 @@ condition=p1 < 40. ]]></code></script>
             </default>
             <case id="1">
                <inline name="n2">
-                  <script><code><![CDATA[print p1
+                  <script><code><![CDATA[print(p1)
 p1=p1+20
 condition=p1 < 40. ]]></code></script>
                   <inport name="p1" type="double"/>