]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Bug correction in MEDCouplingUMesh::ComputeSpreadZoneGradually when a cell has no...
authorageay <ageay>
Fri, 1 Feb 2013 08:42:47 +0000 (08:42 +0000)
committerageay <ageay>
Fri, 1 Feb 2013 08:42:47 +0000 (08:42 +0000)
src/MEDCoupling/MEDCouplingUMesh.cxx

index 232527ea8fc6dc5c630b381eff39eaff6e65d2c2..911add3d34fa153ae67fed43da4f940748c24c1d 100644 (file)
@@ -7643,7 +7643,7 @@ DataArrayInt *MEDCouplingUMesh::ComputeSpreadZoneGradually(const DataArrayInt *a
   const int *arrIndxPtr=arrIndxIn->getConstPointer();
   MEDCouplingAutoRefCountObjectPtr<DataArrayInt> arro=DataArrayInt::New();
   arro->alloc(nbOfTuples,1);
-  arro->fillWithValue(-1);
+  arro->fillWithValue(-1); arro->setIJ(0,0,1);
   int *arroPtr=arro->getPointer();
   std::set<int> s; s.insert(0);
   while(!s.empty())