]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Fix to use v7 API.
authorabn <adrien.bruneton@cea.fr>
Mon, 16 Jul 2018 08:47:45 +0000 (10:47 +0200)
committerabn <adrien.bruneton@cea.fr>
Mon, 16 Jul 2018 08:48:20 +0000 (10:48 +0200)
src/MEDCoupling/MEDCouplingUMesh.cxx

index a0301617d3e974cd1b4878235f6a259c8aa84eb0..6db248d974380ec1db1a5710d890c19320b786ea 100644 (file)
@@ -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<DataArrayInt> ret(DataArrayInt::New()); ret->alloc(0,1);
+  MEDCouplingAutoRefCountObjectPtr<DataArrayInt> 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;