1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2007-2013 EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 # --------------------------------------------------
23 # --------------------------------------------------
28 class variable(ASSD ) : pass
32 JdC = JDC_CATA ( code = 'OPENTURNS_WRAPPER',
34 regles = ( AU_MOINS_UN ( 'WRAPPER' ), ),
37 # --------------------------------------------------
39 # --------------------------------------------------
42 #================================
43 # 2. Definition des variables
44 #================================
48 VARIABLE = OPER ( nom = "VARIABLE",
51 fr = "Definitions des lois marginales utilisees par les variables d'entree",
54 Type = SIMP ( statut = "o",
57 into = ( "in", "out", ),
59 fr = "variable d'entree ou de sortie du solver",
60 ang = "Input or Output variable",
63 Unit = SIMP ( statut = "f",
70 Comment = SIMP ( statut = "f",
77 Regexp = SIMP ( statut = "f",
80 fr = "Expression reguliere",
81 ang = "Regular expression",
84 Format = SIMP ( statut = "f",
87 fr = "Format d'ecriture",
92 ) # Fin FACT Variables
96 #================================
97 # Definition des parametres du wrapper
98 #================================
100 # Nota : les variables de type PROC doivent etre en majuscules !
101 WRAPPER = PROC ( nom = "WRAPPER",
104 fr = "Mise en donnee pour le fichier de configuration de OPENTURNS.",
105 ang = "Writes the configuration file for OPENTURNS.",
107 Framework = SIMP ( statut = "o",
109 into = ( "Salome", "Stand-alone", ),
111 fr = "Dans quel environnement le wrapper doit-il etre utilise ?",
112 ang = "Which framework is this wrapper designed for ?",
115 StandAlone = BLOC ( condition = " Framework in ( 'Stand-alone', ) ",
118 WrapperPath = SIMP ( statut = "o",
121 fr = "Chemin d acces au wrapper",
122 ang = "Wrapper library path",
125 FunctionName = SIMP ( statut = "o",
128 fr = "Nom de la fonction dans le wrapper",
129 ang = "Function's name in wrapper",
132 GradientName = SIMP ( statut = "f",
135 fr = "Nom du gradient dans le wrapper",
136 ang = "Gradient's name in wrapper",
139 HessianName = SIMP ( statut = "f",
142 fr = "Nom du hessian dans le wrapper",
143 ang = "Hessian's name in wrapper",
146 WrapCouplingMode = SIMP ( statut = "o",
149 into = ( "static-link", "dynamic-link", "fork", ),
151 fr = "Mode de couplage du solver",
152 ang = "Solver coupling mode",
155 Fork = BLOC ( condition = " WrapCouplingMode in ( 'fork', ) ",
157 Command = SIMP ( statut = "o",
160 fr = "Chemin du solver",
164 UserPrefix = SIMP ( statut = "f",
167 fr = "Prefixe pour retrouver les repertories temporaires de calcul",
168 ang = "Prefix to help finding compute directories",
172 State = SIMP ( statut = "f",
175 into = ( "shared", "specific" ),
176 fr = "Partage de l'etat interne entre les fonctions",
177 ang = "Internal state sharing",
180 InDataTransfer = SIMP ( statut = "o",
183 into = ( "files", "arguments", "corba" ),
184 fr = "Mode de transfert des donnees d'entree",
185 ang = "Input transfering mode",
188 OutDataTransfer = SIMP ( statut = "o",
191 into = ( "files", "arguments", "corba" ),
192 fr = "Mode de transfert des donnees de sortie",
193 ang = "Output transfering mode",
196 ), # Fin BLOC StandAlone
199 Salome = BLOC ( condition = " Framework in ( 'Salome', ) ",
201 SolverComponentName = SIMP ( statut = "f",
204 defaut = "UNDEFINED",
205 fr = "Nom du composant solver",
206 ang = "Solver component name",
210 WrapperPath = SIMP ( statut = "o",
212 into = ( "GenericWrapper4Salome.so", ),
213 defaut = "GenericWrapper4Salome.so",
215 fr = "Chemin d acces au wrapper",
216 ang = "Wrapper library path",
219 FunctionName = SIMP ( statut = "o",
221 into = ( "GENERICSOLVER", ),
222 defaut = "GENERICSOLVER",
224 fr = "Nom de la fonction dans le wrapper",
225 ang = "Function's name in wrapper",
228 GradientName = SIMP ( statut = "f",
230 into = ( "GENERICSOLVER", ),
231 defaut = "GENERICSOLVER",
233 fr = "Nom du gradient dans le wrapper",
234 ang = "Gradient's name in wrapper",
237 HessianName = SIMP ( statut = "f",
239 into = ( "GENERICSOLVER", ),
240 defaut = "GENERICSOLVER",
242 fr = "Nom du hessian dans le wrapper",
243 ang = "Hessian's name in wrapper",
246 WrapCouplingMode = SIMP ( statut = "o",
249 into = ( "static-link", ),
250 defaut = "static-link",
251 fr = "Mode de couplage du solver",
252 ang = "Solver coupling mode",
255 State = SIMP ( statut = "f",
258 into = ( "shared", "specific" ),
259 fr = "Partage de l'etat interne entre les fonctions",
260 ang = "Internal state sharing",
263 InDataTransfer = SIMP ( statut = "o",
266 into = ( "files", "arguments", "corba", ),
268 fr = "Mode de transfert des donnees d'entree",
269 ang = "Input transfering mode",
272 OutDataTransfer = SIMP ( statut = "o",
275 into = ( "files", "arguments", "corba", ),
277 fr = "Mode de transfert des donnees de sortie",
278 ang = "Output transfering mode",
284 Files = FACT ( statut = "f",
288 Id = SIMP ( statut = "o",
291 fr = "Identificateur du fichier",
295 Type = SIMP ( statut = "o",
298 into = ( "in", "out", ),
299 fr = "Fichier d entree ou de sortie du solveur ?",
300 ang = "Input or Output file ?",
303 Name = SIMP ( statut = "f",
306 fr = "Nom du fichier",
310 Path = SIMP ( statut = "o",
313 fr = "Chemin du fichier",
317 Subst = SIMP ( statut = "f",
320 fr = "Liste de variables",