mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
Prevent crash at too small comment ratio of geometric progression hypothesis
This commit is contained in:
parent
2fb74f97f6
commit
bda71f4197
@ -974,6 +974,8 @@ bool StdMeshers_Regular_1D::computeInternalParameters(SMESH_Mesh & theMesh,
|
||||
an = eltSize;
|
||||
eltSize *= q;
|
||||
++nbParams;
|
||||
if ( q < 1. && eltSize < 1e-100 )
|
||||
return error("Too small common ratio causes too many segments");
|
||||
}
|
||||
if ( nbParams > 1 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user