From 78526d74162499864d042d2c3011b7a017be09a4 Mon Sep 17 00:00:00 2001 From: ageay Date: Mon, 28 Mar 2011 05:51:58 +0000 Subject: [PATCH] Correcting bug on unpolyze. --- src/MEDCoupling/MEDCouplingUMesh.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.39.2