From: Jean-Philippe ARGAUD Date: Mon, 12 Nov 2018 07:17:25 +0000 (+0100) Subject: Correcting declaration code X-Git-Tag: V9_2_0~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a9c2eeeae0304739d4cac438a76c509f491efe9d;p=modules%2Fadao.git Correcting declaration code --- diff --git a/src/daSalome/daYacsIntegration/daOptimizerLoop.py b/src/daSalome/daYacsIntegration/daOptimizerLoop.py index 401ed23..0a05918 100644 --- a/src/daSalome/daYacsIntegration/daOptimizerLoop.py +++ b/src/daSalome/daYacsIntegration/daOptimizerLoop.py @@ -57,7 +57,7 @@ class OptimizerHooks: sample.setEltAtRank("outputVarList", outputVarList) # Les parametres specifiques à ADAO - specificParameters = pilot.SequenceAny_New(self.optim_algo.runtime.getTypeCode("SALOME_TYPES/ParameterList")) + specificParameters = pilot.SequenceAny_New(self.optim_algo.runtime.getTypeCode("SALOME_TYPES/Parameter")) method_name = pilot.StructAny_New(self.optim_algo.runtime.getTypeCode('SALOME_TYPES/Parameter')) method_name.setEltAtRank("name", "method") if sys.version_info.major < 3: @@ -395,7 +395,7 @@ class AssimilationAlgorithm_asynch(SALOMERuntime.OptimizerAlgASync): sample.setEltAtRank("inputValues", time_sequence) # Add observer values in specific parameters - specificParameters = pilot.SequenceAny_New(self.runtime.getTypeCode("SALOME_TYPES/ParameterList")) + specificParameters = pilot.SequenceAny_New(self.runtime.getTypeCode("SALOME_TYPES/Parameter")) # Switch Value obs_switch = pilot.StructAny_New(self.runtime.getTypeCode('SALOME_TYPES/Parameter'))