]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Bug correction for structure elt
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 10 Apr 2018 08:17:15 +0000 (10:17 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 10 Apr 2018 08:17:15 +0000 (10:17 +0200)
src/MEDLoader/MEDFileBlowStrEltUp.cxx

index a502625d635243f613a9019a158cda628354285a..9d3705636115f56aacbffd66a6504348146a1ab5 100644 (file)
@@ -557,7 +557,7 @@ MCAuto<DataArrayDouble> LocInfo::BuildMeshPipeSEG3(const DataArrayDouble *angle,
         for(int i=0;i<nbSecPts;i++)
           {
             auto nrm(sqrt(std::accumulate(pt,pt+DIM,0.,[](double sum, double v) { return sum+v*v; } )));
-            auto sca(rmin+2.*(nrm-0.5)*(rmax-rmin));
+            auto sca((rmin+2.*(nrm-0.5)*(rmax-rmin))/nrm);
             std::for_each(pt,pt+3,[sca](double& val) { val*=sca; } );
             std::advance(pt,DIM);
           }