1 <?xml version='1.0' encoding='iso-8859-1' ?>
3 Copyright (C) 2006-2013 CEA/DEN, EDF R&D
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 <proc name="newSchema_1">
23 <property name="DefaultStudyID" value="1"/>
24 <type name="string" kind="string"/>
25 <struct name="Engines/dataref">
26 <member name="ref" type="string"/>
28 <objref name="GEOM_Object" id="IDL:GEOM/GEOM_Object:1.0"/>
29 <type name="bool" kind="bool"/>
30 <sequence name="boolvec" content="bool"/>
31 <type name="double" kind="double"/>
32 <sequence name="dblevec" content="double"/>
33 <objref name="file" id="file"/>
34 <type name="int" kind="int"/>
35 <sequence name="intvec" content="int"/>
36 <objref name="pyobj" id="python:obj:1.0"/>
37 <sequence name="seqpyobj" content="pyobj"/>
38 <sequence name="stringvec" content="string"/>
39 <container name="DefaultContainer">
40 <property name="container_name" value="FactoryServer"/>
41 <property name="name" value="localhost"/>
43 <container name="container0">
45 <container name="container8">
47 <foreach name="ForEachLoop_pyobj0" type="pyobj">
49 <remote name="PyFunction4">
50 <function name="fromPyObj2String">
51 <code><![CDATA[def fromPyObj2String(aRun,):
54 return aMedFile,aMeshName
57 <load container="container8"/>
58 <inport name="aRun" type="pyobj"/>
59 <outport name="aMedFile" type="string"/>
60 <outport name="aMeshName" type="string"/>
62 <service name="MakeBoxDXDYDZ1">
63 <component>GEOM_Superv</component>
64 <load container="container8"/>
65 <method>MakeBoxDXDYDZ</method>
66 <inport name="theDX" type="double"/>
67 <inport name="theDY" type="double"/>
68 <inport name="theDZ" type="double"/>
69 <outport name="return" type="GEOM_Object"/>
71 <control> <fromnode>PyFunction4</fromnode> <tonode>MakeBoxDXDYDZ1</tonode> </control>
74 <inline name="PyScript1">
75 <script><code><![CDATA[import os
78 dir1 = "/home/crouzet/SUPPORT/NADIR"
79 dir2 = "/TestFAKECOMPO/"
80 medFile = dir1+dir2+"AlcyoneFields.med"
82 for run in range(numberOfRun):
84 runs[run].append(medFile)
85 runs[run].append(meshName)
87 print "There is(are) ",numberOfRun," runs of Fake Compo on process ",os.getpid()
89 <outport name="numberOfRun" type="int"/>
90 <outport name="runs" type="seqpyobj"/>
92 <control> <fromnode>PyScript1</fromnode> <tonode>ForEachLoop_pyobj0</tonode> </control>
93 <datalink control="false">
94 <fromnode>ForEachLoop_pyobj0</fromnode> <fromport>evalSamples</fromport>
95 <tonode>ForEachLoop_pyobj0.Bloc1.PyFunction4</tonode> <toport>aRun</toport>
97 <datalink control="false">
98 <fromnode>PyScript1</fromnode> <fromport>numberOfRun</fromport>
99 <tonode>ForEachLoop_pyobj0</tonode> <toport>nbBranches</toport>
101 <datalink control="false">
102 <fromnode>PyScript1</fromnode> <fromport>runs</fromport>
103 <tonode>ForEachLoop_pyobj0</tonode> <toport>SmplsCollection</toport>
106 <tonode>ForEachLoop_pyobj0.Bloc1.MakeBoxDXDYDZ1</tonode><toport>theDX</toport>
107 <value><double>10</double></value>
110 <tonode>ForEachLoop_pyobj0.Bloc1.MakeBoxDXDYDZ1</tonode><toport>theDY</toport>
111 <value><double>10</double></value>
114 <tonode>ForEachLoop_pyobj0.Bloc1.MakeBoxDXDYDZ1</tonode><toport>theDZ</toport>
115 <value><double>10</double></value>
117 <presentation name="ForEachLoop_pyobj0" x="283.5" y="74.5" width="457.5" height="281.5" expanded="1" expx="283.5" expy="74.5" expWidth="457.5" expHeight="281.5" shownState="0"/>
118 <presentation name="ForEachLoop_pyobj0.Bloc1" x="41.5" y="124.5" width="412" height="153" expanded="1" expx="41.5" expy="124.5" expWidth="412" expHeight="153" shownState="0"/>
119 <presentation name="PyScript1" x="40" y="75" width="158" height="90" expanded="1" expx="40" expy="75" expWidth="158" expHeight="90" shownState="0"/>
120 <presentation name="ForEachLoop_pyobj0.Bloc1.PyFunction4" x="10" y="35" width="158" height="90" expanded="1" expx="10" expy="35" expWidth="158" expHeight="90" shownState="0"/>
121 <presentation name="ForEachLoop_pyobj0.Bloc1.MakeBoxDXDYDZ1" x="250" y="32" width="158" height="117" expanded="1" expx="250" expy="32" expWidth="158" expHeight="117" shownState="0"/>
122 <presentation name="__ROOT__" x="0" y="0" width="745" height="360" expanded="1" expx="0" expy="0" expWidth="745" expHeight="360" shownState="0"/>