fix FPE error at "Clear mesh data" by setting nb of nodes to zero

instead of SMDS_Mesh::chunkSize
This commit is contained in:
eap 2011-02-01 13:40:02 +00:00
parent b6b8aa7213
commit f7c8f718f9

View 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();