]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Correcting declaration code
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 12 Nov 2018 07:17:25 +0000 (08:17 +0100)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 12 Nov 2018 07:17:25 +0000 (08:17 +0100)
src/daSalome/daYacsIntegration/daOptimizerLoop.py

index 401ed2399b79610bff5eef92ba617879b5ba787e..0a0591805e907aa3d938c7acc645082ca527f3f6 100644 (file)
@@ -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'))