From: ageay Date: Mon, 28 Mar 2011 05:51:58 +0000 (+0000) Subject: Correcting bug on unpolyze. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=78526d74162499864d042d2c3011b7a017be09a4;p=tools%2Fmedcoupling.git Correcting bug on unpolyze. --- diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index 296fa779d..a654f65b4 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -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);