From: abn Date: Mon, 16 Jul 2018 08:47:45 +0000 (+0200) Subject: Fix to use v7 API. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9cbe2378522b7d011340b179f5a70ddd84cb7273;p=tools%2Fmedcoupling.git Fix to use v7 API. --- 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;