]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Bug fix: conformize3D() was not properly void returned array.
authorabn <adrien.bruneton@cea.fr>
Mon, 9 Apr 2018 14:19:29 +0000 (16:19 +0200)
committerabn <adrien.bruneton@cea.fr>
Wed, 18 Apr 2018 14:46:40 +0000 (16:46 +0200)
src/MEDCoupling/MEDCouplingUMesh_intersection.cxx

index 6f29181487dc2b3382be96e39c9d0d784ba96e45..28652a6bbdf68891a18187e479a414b1f6e7fb58 100644 (file)
@@ -2159,7 +2159,7 @@ DataArrayInt *MEDCouplingUMesh::conformize3D(double eps)
 
   MCAuto<MEDCouplingSkyLineArray> connSla(MEDCouplingSkyLineArray::BuildFromPolyhedronConn(getNodalConnectivity(), getNodalConnectivityIndex()));
   const double * coo(_coords->begin());
 
   MCAuto<MEDCouplingSkyLineArray> connSla(MEDCouplingSkyLineArray::BuildFromPolyhedronConn(getNodalConnectivity(), getNodalConnectivityIndex()));
   const double * coo(_coords->begin());
-  MCAuto<DataArrayInt> ret(DataArrayInt::New());
+  MCAuto<DataArrayInt> ret(DataArrayInt::New()); ret->alloc(0,1);
 
   {
     /*************************
 
   {
     /*************************