From f7c8f718f9cd9e6745a126bd963c270bbe3bff7b Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 1 Feb 2011 13:40:02 +0000 Subject: [PATCH] fix FPE error at "Clear mesh data" by setting nb of nodes to zero instead of SMDS_Mesh::chunkSize --- src/SMDS/SMDS_Mesh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2