Salome HOME
WIP
[modules/yacs.git] / src / yacsloader / samples / gobj1.xml
index 31507340aa3f3daa9120bcd593b1f9d46c11cac0..d5cefcf97aae00cb05752dd0ed62c5349ee02e57 100644 (file)
@@ -1,3 +1,23 @@
+<!--
+  Copyright (C) 2006-2019  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
+  License as published by the Free Software Foundation; either
+  version 2.1 of the License, or (at your option) any later version.
+
+  This library is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+  Lesser General Public License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with this library; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+
+  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+
+-->
 <proc>
   <!-- graph of component instances that add and multiply MED fields (GenericObj)
        All the MED Fields must be destroyed on each turn in the loop and on exit
@@ -24,7 +44,6 @@
 
     <!--nodes -->
     <datanode name="s" kind="study" >
-      <property name="StudyID" value="1" />
       <parameter name="b" type="FIELDDOUBLE" ref="0:1:1:3:2:1"/>
     </datanode>
     <datanode name="d" >
@@ -36,7 +55,7 @@
       <script>
         <code>import SALOME_MED</code>
         <code>p1=p1._narrow(SALOME_MED.FIELD)</code>
-        <code>print p1</code>
+        <code>print(p1)</code>
       </script>
       <inport name="p1" type="FIELDDOUBLE"/>
       <outport name="p1" type="FIELDDOUBLE"/>
@@ -71,7 +90,7 @@
 
     <inline name="pyth0" >
       <script>
-        <code>print "MEDFIELD:",p1</code>
+        <code>print (MEDFIELD:",p1)</code>
         <code>p1.Register()</code>
       </script>
       <inport name="p1" type="FIELDDOUBLE"/>
@@ -80,7 +99,7 @@
 
     <inline name="pyth1" >
       <script>
-        <code>print "MEDFIELD:",p1</code>
+        <code>print("MEDFIELD:",p1)</code>
       </script>
       <inport name="p1" type="FIELDDOUBLE"/>
     </inline>