From: eap Date: Thu, 19 Sep 2013 09:02:16 +0000 (+0000) Subject: 22321: [CEA 933] Bug when reading a sauve file containing field on Gauss Pt X-Git-Tag: V7_3_1b1~144 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=13a805a8ef7c1f15e15b74192a279ee2ef5248bf;p=tools%2Fmedcoupling.git 22321: [CEA 933] Bug when reading a sauve file containing field on Gauss Pt fix MEDCouplingFieldDiscretizationGauss::zipGaussLocalizations() - tmpLoc.push_back(_loc[tmp[i]]); + tmpLoc.push_back(_loc[i]); --- diff --git a/src/MEDCoupling/MEDCouplingFieldDiscretization.cxx b/src/MEDCoupling/MEDCouplingFieldDiscretization.cxx index 3118eee1f..504a48654 100644 --- a/src/MEDCoupling/MEDCouplingFieldDiscretization.cxx +++ b/src/MEDCoupling/MEDCouplingFieldDiscretization.cxx @@ -2010,7 +2010,7 @@ void MEDCouplingFieldDiscretizationGauss::zipGaussLocalizations() std::vector 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; }