Salome HOME
fix FPE error at "Clear mesh data" by setting nb of nodes to zero
authoreap <eap@opencascade.com>
Tue, 1 Feb 2011 13:40:02 +0000 (13:40 +0000)
committereap <eap@opencascade.com>
Tue, 1 Feb 2011 13:40:02 +0000 (13:40 +0000)
instead of SMDS_Mesh::chunkSize

src/SMDS/SMDS_Mesh.cxx

index dac6d78514efbd506cb3cbfb4d27855939f54b0d..72aa928c979880a80d2223d13d47b2c3c19dd7f7 100644 (file)
@@ -2511,7 +2511,7 @@ void SMDS_Mesh::Clear()
   // rnv: to fix bug "21125: EDF 1233 SMESH: Degrardation of precision in a test case for quadratic conversion"
   // using double type for storing coordinates of nodes instead float.
   points->SetDataType(VTK_DOUBLE);
-  points->SetNumberOfPoints(SMDS_Mesh::chunkSize);
+  points->SetNumberOfPoints(0 /*SMDS_Mesh::chunkSize*/);
   myGrid->SetPoints( points );
   points->Delete();
   myGrid->BuildLinks();