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",
147 State = SIMP ( statut = "f",
150 into = ( "shared", "specific" ),
151 fr = "Partage de l'etat interne entre les fonctions",
152 ang = "Internal state sharing",
155 InDataTransfer = SIMP ( statut = "o",
158 into = ( "files", "arguments", "corba" ),
159 fr = "Mode de transfert des donnees d'entree",
160 ang = "Input transfering mode",
163 OutDataTransfer = SIMP ( statut = "o",
166 into = ( "files", "arguments", "corba" ),
167 fr = "Mode de transfert des donnees de sortie",
168 ang = "Output transfering mode",
171 ), # Fin BLOC StandAlone
174 Salome = BLOC ( condition = " Framework in ( 'Salome', ) ",
176 SolverComponentName = SIMP ( statut = "f",
179 defaut = "UNDEFINED",
180 fr = "Nom du composant solver",
181 ang = "Solver component name",
185 WrapperPath = SIMP ( statut = "o",
187 into = ( "GenericWrapper4Salome.so", ),
188 defaut = "GenericWrapper4Salome.so",
190 fr = "Chemin d acces au wrapper",
191 ang = "Wrapper library path",
194 FunctionName = SIMP ( statut = "o",
196 into = ( "GENERICSOLVER", ),
197 defaut = "GENERICSOLVER",
199 fr = "Nom de la fonction dans le wrapper",
200 ang = "Function's name in wrapper",
203 GradientName = SIMP ( statut = "f",
205 into = ( "GENERICSOLVER", ),
206 defaut = "GENERICSOLVER",
208 fr = "Nom du gradient dans le wrapper",
209 ang = "Gradient's name in wrapper",
212 HessianName = SIMP ( statut = "f",
214 into = ( "GENERICSOLVER", ),
215 defaut = "GENERICSOLVER",
217 fr = "Nom du hessian dans le wrapper",
218 ang = "Hessian's name in wrapper",
221 WrapCouplingMode = SIMP ( statut = "o",
224 into = ( "static-link", ),
225 defaut = "static-link",
226 fr = "Mode de couplage du solver",
227 ang = "Solver coupling mode",
230 State = SIMP ( statut = "f",
233 into = ( "shared", "specific" ),
234 fr = "Partage de l'etat interne entre les fonctions",
235 ang = "Internal state sharing",
238 InDataTransfer = SIMP ( statut = "o",
241 into = ( "files", "arguments", "corba", ),
243 fr = "Mode de transfert des donnees d'entree",
244 ang = "Input transfering mode",
247 OutDataTransfer = SIMP ( statut = "o",
250 into = ( "files", "arguments", "corba", ),
252 fr = "Mode de transfert des donnees de sortie",
253 ang = "Output transfering mode",
259 Files = FACT ( statut = "f",
263 Id = SIMP ( statut = "o",
266 fr = "Identificateur du fichier",
270 Type = SIMP ( statut = "o",
273 into = ( "in", "out", ),
274 fr = "Fichier d entree ou de sortie du solveur ?",
275 ang = "Input or Output file ?",
278 Name = SIMP ( statut = "f",
281 fr = "Nom du fichier",
285 Path = SIMP ( statut = "o",
288 fr = "Chemin du fichier",
292 Subst = SIMP ( statut = "f",
295 fr = "Liste de variables",