]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Correcting potentially incorrect shapes for vectors
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 22 Oct 2012 15:27:58 +0000 (17:27 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 22 Oct 2012 15:27:58 +0000 (17:27 +0200)
src/daComposant/daAlgorithms/3DVAR.py
src/daComposant/daAlgorithms/Blue.py
src/daComposant/daCore/AssimilationStudy.py

index 50a104c4eb059643bbfb7f7bf1222a3e1fcc64f7..0cc504efd76188a9a09a2d219a1086a3d283f2eb 100644 (file)
@@ -283,9 +283,9 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
         if "Innovation" in self._parameters["StoreSupplementaryCalculations"]:
             self.StoredVariables["Innovation"].store( numpy.ravel(d) )
         if "BMA" in self._parameters["StoreSupplementaryCalculations"]:
-            self.StoredVariables["BMA"].store( numpy.ravel(Xb - Xa) )
+            self.StoredVariables["BMA"].store( numpy.ravel(Xb) - numpy.ravel(Xa) )
         if "OMA" in self._parameters["StoreSupplementaryCalculations"]:
-            self.StoredVariables["OMA"].store( numpy.ravel(Y - Hm(Xa)) )
+            self.StoredVariables["OMA"].store( numpy.ravel(Y) - numpy.ravel(Hm(Xa)) )
         if "OMB" in self._parameters["StoreSupplementaryCalculations"]:
             self.StoredVariables["OMB"].store( numpy.ravel(d) )
         if "SigmaObs2" in self._parameters["StoreSupplementaryCalculations"]:
index 6e68214dcffbd6782c298f987cc11e3f4b689c7f..7c43874a1c8cb4ad46fdd48717936aed0c61267b 100644 (file)
@@ -123,7 +123,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
         if "Innovation" in self._parameters["StoreSupplementaryCalculations"]:
             self.StoredVariables["Innovation"].store( numpy.ravel(d) )
         if "BMA" in self._parameters["StoreSupplementaryCalculations"]:
-            self.StoredVariables["BMA"].store( numpy.ravel(Xb - Xa) )
+            self.StoredVariables["BMA"].store( numpy.ravel(Xb) - numpy.ravel(Xa) )
         if "OMA" in self._parameters["StoreSupplementaryCalculations"]:
             self.StoredVariables["OMA"].store( numpy.ravel(oma) )
         if "OMB" in self._parameters["StoreSupplementaryCalculations"]:
index 0658b94dfea2ddd42ced8bab50389be78bad36c6..c6bde4e438b51d68c9e20d36971a7edd4ce98c82 100644 (file)
 # Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
 
 __doc__ = """
-    Définit les outils généraux élémentaires.
+    Classe principale pour la préparation, la réalisation et la restitution de
+    calculs d'assimilation de données.
     
-    Ce module est destiné à etre appelée par AssimilationStudy pour constituer
+    Ce module est destiné à être appelé par AssimilationStudy pour constituer
     les objets élémentaires de l'étude.
 """
 __author__ = "Jean-Philippe ARGAUD"