From 9cbe2378522b7d011340b179f5a70ddd84cb7273 Mon Sep 17 00:00:00 2001 From: abn Date: Mon, 16 Jul 2018 10:47:45 +0200 Subject: [PATCH] Fix to use v7 API. --- src/MEDCoupling/MEDCouplingUMesh.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index a0301617d..6db248d97 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -6070,10 +6070,10 @@ DataArrayInt *MEDCouplingUMesh::convertDegeneratedCellsAndRemoveFlatOnes() if(getMeshDimension()<=1) throw INTERP_KERNEL::Exception("MEDCouplingUMesh::convertDegeneratedCells works on umeshes with meshdim equals to 2 or 3 !"); int nbOfCells=getNumberOfCells(); - MCAuto ret(DataArrayInt::New()); ret->alloc(0,1); + MEDCouplingAutoRefCountObjectPtr ret(DataArrayInt::New()); ret->alloc(0,1); if(nbOfCells<1) return ret; - int initMeshLgth=getNodalConnectivityArrayLen(); + int initMeshLgth=getMeshLength(); int *conn=_nodal_connec->getPointer(); int *index=_nodal_connec_index->getPointer(); int posOfCurCell=0; -- 2.39.2