1 # -*- coding: utf-8 -*-
3 # --------------------------------------------------
5 # --------------------------------------------------
10 class variable(ASSD ) : pass
14 JdC = JDC_CATA ( code = 'OPENTURNS_WRAPPER',
16 regles = ( AU_MOINS_UN ( 'WRAPPER' ), ),
19 # --------------------------------------------------
21 # --------------------------------------------------
24 #================================
25 # 2. Definition des variables
26 #================================
30 VARIABLE = OPER ( nom = "VARIABLE",
33 fr = "Definitions des lois marginales utilisees par les variables d'entree",
36 Type = SIMP ( statut = "o",
39 into = ( "in", "out", ),
41 fr = "variable d'entree ou de sortie du solver",
42 ang = "Input or Output variable",
45 Unit = SIMP ( statut = "f",
52 Comment = SIMP ( statut = "f",
59 Regexp = SIMP ( statut = "f",
62 fr = "Expression reguliere",
63 ang = "Regular expression",
66 Format = SIMP ( statut = "f",
69 fr = "Format d'ecriture",
74 ) # Fin FACT Variables
78 #================================
79 # Definition des parametres du wrapper
80 #================================
82 # Nota : les variables de type PROC doivent etre en majuscules !
83 WRAPPER = PROC ( nom = "WRAPPER",
86 fr = "Mise en donnee pour le fichier de configuration de OPENTURNS.",
87 ang = "Writes the configuration file for OPENTURNS.",
89 Framework = SIMP ( statut = "o",
91 into = ( "Salome", "Stand-alone", ),
93 fr = "Dans quel environnement le wrapper doit-il etre utilise ?",
94 ang = "Which framework is this wrapper designed for ?",
97 StandAlone = BLOC ( condition = " Framework in ( 'Stand-alone', ) ",
100 WrapperPath = SIMP ( statut = "o",
103 fr = "Chemin d acces au wrapper",
104 ang = "Wrapper library path",
107 FunctionName = SIMP ( statut = "o",
110 fr = "Nom de la fonction dans le wrapper",
111 ang = "Function's name in wrapper",
114 GradientName = SIMP ( statut = "f",
117 fr = "Nom du gradient dans le wrapper",
118 ang = "Gradient's name in wrapper",
121 HessianName = SIMP ( statut = "f",
124 fr = "Nom du hessian dans le wrapper",
125 ang = "Hessian's name in wrapper",
128 WrapCouplingMode = SIMP ( statut = "o",
131 into = ( "static-link", "dynamic-link", "fork", ),
133 fr = "Mode de couplage du solver",
134 ang = "Solver coupling mode",
137 Fork = BLOC ( condition = " WrapCouplingMode in ( 'fork', ) ",
139 Command = SIMP ( statut = "o",
142 fr = "Chemin du solver",
146 UserPrefix = SIMP ( statut = "f",
149 fr = "Prefixe pour retrouver les repertories temporaires de calcul",
150 ang = "Prefix to help finding compute directories",
154 State = SIMP ( statut = "f",
157 into = ( "shared", "specific" ),
158 fr = "Partage de l'etat interne entre les fonctions",
159 ang = "Internal state sharing",
162 InDataTransfer = SIMP ( statut = "o",
165 into = ( "files", "arguments", "corba" ),
166 fr = "Mode de transfert des donnees d'entree",
167 ang = "Input transfering mode",
170 OutDataTransfer = SIMP ( statut = "o",
173 into = ( "files", "arguments", "corba" ),
174 fr = "Mode de transfert des donnees de sortie",
175 ang = "Output transfering mode",
178 ), # Fin BLOC StandAlone
181 Salome = BLOC ( condition = " Framework in ( 'Salome', ) ",
183 SolverComponentName = SIMP ( statut = "f",
186 defaut = "UNDEFINED",
187 fr = "Nom du composant solver",
188 ang = "Solver component name",
192 WrapperPath = SIMP ( statut = "o",
194 into = ( "GenericWrapper4Salome.so", ),
195 defaut = "GenericWrapper4Salome.so",
197 fr = "Chemin d acces au wrapper",
198 ang = "Wrapper library path",
201 FunctionName = SIMP ( statut = "o",
203 into = ( "GENERICSOLVER", ),
204 defaut = "GENERICSOLVER",
206 fr = "Nom de la fonction dans le wrapper",
207 ang = "Function's name in wrapper",
210 GradientName = SIMP ( statut = "f",
212 into = ( "GENERICSOLVER", ),
213 defaut = "GENERICSOLVER",
215 fr = "Nom du gradient dans le wrapper",
216 ang = "Gradient's name in wrapper",
219 HessianName = SIMP ( statut = "f",
221 into = ( "GENERICSOLVER", ),
222 defaut = "GENERICSOLVER",
224 fr = "Nom du hessian dans le wrapper",
225 ang = "Hessian's name in wrapper",
228 WrapCouplingMode = SIMP ( statut = "o",
231 into = ( "static-link", ),
232 defaut = "static-link",
233 fr = "Mode de couplage du solver",
234 ang = "Solver coupling mode",
237 State = SIMP ( statut = "f",
240 into = ( "shared", "specific" ),
241 fr = "Partage de l'etat interne entre les fonctions",
242 ang = "Internal state sharing",
245 InDataTransfer = SIMP ( statut = "o",
248 into = ( "files", "arguments", "corba", ),
250 fr = "Mode de transfert des donnees d'entree",
251 ang = "Input transfering mode",
254 OutDataTransfer = SIMP ( statut = "o",
257 into = ( "files", "arguments", "corba", ),
259 fr = "Mode de transfert des donnees de sortie",
260 ang = "Output transfering mode",
266 Files = FACT ( statut = "f",
270 Id = SIMP ( statut = "o",
273 fr = "Identificateur du fichier",
277 Type = SIMP ( statut = "o",
280 into = ( "in", "out", ),
281 fr = "Fichier d entree ou de sortie du solveur ?",
282 ang = "Input or Output file ?",
285 Name = SIMP ( statut = "f",
288 fr = "Nom du fichier",
292 Path = SIMP ( statut = "o",
295 fr = "Chemin du fichier",
299 Subst = SIMP ( statut = "f",
302 fr = "Liste de variables",