1 # -*- coding: utf-8 -*-
3 # --------------------------------------------------
5 # --------------------------------------------------
12 JdC = JDC_CATA ( code = 'OPENTURNS_WRAPPER',
14 regles = ( AU_MOINS_UN ( 'WRAPPER' ), ),
17 # --------------------------------------------------
19 # --------------------------------------------------
22 #================================
23 # 2. Definition des variables
24 #================================
26 VARIABLEPOOL = PROC ( nom = "VARIABLEPOOL",
29 fr = "L'ensemble des variables probabilistes",
30 ang = "The pool of probabilistic variables",
33 Variables = FACT ( statut = "o",
39 Name = SIMP ( statut = "o",
42 fr = "Nom de la variable, identique au nom dans le solver.",
43 ang = "Name of the variable, identical to the name in solver."
46 Type = SIMP ( statut = "o",
49 into = ( "in", "out", ),
51 fr = "variable d'entree ou de sortie du solver",
52 ang = "Input or Output variable",
55 Unit = SIMP ( statut = "f",
62 Comment = SIMP ( statut = "f",
69 Regexp = SIMP ( statut = "f",
72 fr = "Expression reguliere",
73 ang = "Regular expression",
76 Format = SIMP ( statut = "f",
79 fr = "Format d'ecriture",
84 ), # Fin FACT Variables
86 ) # Fin PROC VARIABLEPOOL
89 #================================
90 # Definition des parametres du wrapper
91 #================================
93 # Nota : les variables de type PROC doivent etre en majuscules !
94 WRAPPER = PROC ( nom = "WRAPPER",
97 fr = "Mise en donnee pour le fichier de configuration de OPENTURNS.",
98 ang = "Writes the configuration file for OPENTURNS.",
101 WrapperPath = SIMP ( statut = "o",
104 fr = "Chemin d acces au wrapper",
105 ang = "Wrapper library path",
108 FunctionName = SIMP ( statut = "o",
111 fr = "Nom de la fonction dans le wrapper",
112 ang = "Function's name in wrapper",
115 GradientName = SIMP ( statut = "f",
118 fr = "Nom du gradient dans le wrapper",
119 ang = "Gradient's name in wrapper",
122 HessianName = SIMP ( statut = "f",
125 fr = "Nom du hessian dans le wrapper",
126 ang = "Hessian's name in wrapper",
129 WrapCouplingMode = SIMP ( statut = "o",
132 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", ),
159 fr = "Mode de transfert des donnees d'entree",
160 ang = "Input transfering mode",
163 OutDataTransfer = SIMP ( statut = "o",
166 into = ( "files", "arguments", ),
167 fr = "Mode de transfert des donnees de sortie",
168 ang = "Output transfering mode",
174 Files = FACT ( statut = "f",
178 Id = SIMP ( statut = "o",
181 fr = "Identificateur du fichier",
185 Type = SIMP ( statut = "o",
188 into = ( "in", "out", ),
189 fr = "Fichier d entree ou de sortie du solveur ?",
190 ang = "Input or Output file ?",
193 Name = SIMP ( statut = "f",
196 fr = "Nom du fichier",
200 Path = SIMP ( statut = "o",
203 fr = "Chemin du fichier",
207 Subst = SIMP ( statut = "f",
210 fr = "Liste de variables",