From a9c2eeeae0304739d4cac438a76c509f491efe9d Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Mon, 12 Nov 2018 08:17:25 +0100 Subject: [PATCH] Correcting declaration code --- src/daSalome/daYacsIntegration/daOptimizerLoop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')) -- 2.39.2