From 4edae36e8da7ef6d8b6e3d4612b2b678fbfdf504 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 21 Jun 2012 12:32:08 +0000 Subject: [PATCH] Little debug in duplicate node. --- src/MEDLoader/MEDFileMesh.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/MEDLoader/MEDFileMesh.cxx b/src/MEDLoader/MEDFileMesh.cxx index 15a017eb8..504301b73 100644 --- a/src/MEDLoader/MEDFileMesh.cxx +++ b/src/MEDLoader/MEDFileMesh.cxx @@ -2024,12 +2024,7 @@ void MEDFileUMesh::duplicateNodesOnM1Group(const char *grpNameM1, DataArrayInt * m0->setCoords(tmp0->getCoords()); m0->setPartOfMySelf(cellsToModifyConn0->begin(),cellsToModifyConn0->end(),*tmp0); m1->setCoords(m0->getCoords()); - const DataArrayInt *fam=getFamilyFieldAtLevel(1); - fam->incrRef(); _coords=m0->getCoords(); _coords->incrRef(); - DataArrayInt *famTmp=const_cast(getFamilyFieldAtLevel(1)); - famTmp->setPartOfValues1(fam,0,fam->getNumberOfTuples(),1,0,1,1,true); - fam->decrRef(); // duplication of cells in group 'grpNameM1' on level -1 m11->duplicateNodesInConn(nodeIdsToDuplicate->begin(),nodeIdsToDuplicate->end(),nbNodes); m11->setCoords(m0->getCoords()); std::vector v(2); v[0]=m1; v[1]=m11; @@ -2038,7 +2033,7 @@ void MEDFileUMesh::duplicateNodesOnM1Group(const char *grpNameM1, DataArrayInt * MEDCouplingAutoRefCountObjectPtr idInMsOfCellGrpOfSameType(tmp11); // newm1->setName(getName()); - fam=getFamilyFieldAtLevel(-1); + const DataArrayInt *fam=getFamilyFieldAtLevel(-1); if(!fam) throw INTERP_KERNEL::Exception("MEDFileUMesh::duplicateNodesOnM1Group : internal problem !"); MEDCouplingAutoRefCountObjectPtr newFam=DataArrayInt::New(); -- 2.39.2