From: eap Date: Tue, 1 Feb 2011 13:40:02 +0000 (+0000) Subject: fix FPE error at "Clear mesh data" by setting nb of nodes to zero X-Git-Tag: StartingPortingMED3~87 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f7c8f718f9cd9e6745a126bd963c270bbe3bff7b;p=modules%2Fsmesh.git fix FPE error at "Clear mesh data" by setting nb of nodes to zero instead of SMDS_Mesh::chunkSize --- diff --git a/src/SMDS/SMDS_Mesh.cxx b/src/SMDS/SMDS_Mesh.cxx index dac6d7851..72aa928c9 100644 --- a/src/SMDS/SMDS_Mesh.cxx +++ b/src/SMDS/SMDS_Mesh.cxx @@ -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();