]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Correcting bug on unpolyze.
authorageay <ageay>
Mon, 28 Mar 2011 05:51:58 +0000 (05:51 +0000)
committerageay <ageay>
Mon, 28 Mar 2011 05:51:58 +0000 (05:51 +0000)
src/MEDCoupling/MEDCouplingUMesh.cxx

index 296fa779de87d881ccd70bac6f3cb21e8c212c25..a654f65b46961874346fb3264ebccee2f8787a4d 100644 (file)
@@ -708,6 +708,13 @@ void MEDCouplingUMesh::unPolyze()
           posOfCurCell=index[i+1];
           index[i+1]=newPos;
         }
+      else
+        {
+          std::copy(conn+posOfCurCell,conn+posOfCurCell+lgthOfCurCell,conn+newPos);
+          newPos+=lgthOfCurCell;
+          posOfCurCell+=lgthOfCurCell;
+          index[i+1]=newPos;
+        }
     }
   if(newPos!=initMeshLgth)
     _nodal_connec->reAlloc(newPos);