]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
22321: [CEA 933] Bug when reading a sauve file containing field on Gauss Pt
authoreap <eap@opencascade.com>
Thu, 19 Sep 2013 09:02:16 +0000 (09:02 +0000)
committereap <eap@opencascade.com>
Thu, 19 Sep 2013 09:02:16 +0000 (09:02 +0000)
fix MEDCouplingFieldDiscretizationGauss::zipGaussLocalizations()

-      tmpLoc.push_back(_loc[tmp[i]]);
+      tmpLoc.push_back(_loc[i]);

src/MEDCoupling/MEDCouplingFieldDiscretization.cxx

index 3118eee1f62c26f1a5eb5bd1acb09f886a3ccd52..504a48654ce02485252fd5d009c385241010274d 100644 (file)
@@ -2010,7 +2010,7 @@ void MEDCouplingFieldDiscretizationGauss::zipGaussLocalizations()
   std::vector<MEDCouplingGaussLocalization> tmpLoc;
   for(int i=0;i<(int)_loc.size();i++)
     if(tmp[i]!=-2)
-      tmpLoc.push_back(_loc[tmp[i]]);
+      tmpLoc.push_back(_loc[i]);
   _loc=tmpLoc;
 }