Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2fb74f9
)
Prevent crash at too small comment ratio of geometric progression hypothesis
author
eap
<eap@opencascade.com>
Thu, 13 Feb 2020 10:37:31 +0000
(13:37 +0300)
committer
eap
<eap@opencascade.com>
Thu, 13 Feb 2020 10:37:31 +0000
(13:37 +0300)
src/StdMeshers/StdMeshers_Regular_1D.cxx
patch
|
blob
|
history
diff --git
a/src/StdMeshers/StdMeshers_Regular_1D.cxx
b/src/StdMeshers/StdMeshers_Regular_1D.cxx
index 12619c94fdbbc634de629eb3af705f42bab8e7f3..45e1c25b62b66b5ef6291b2e8a6b681c87c1defd 100644
(file)
--- a/
src/StdMeshers/StdMeshers_Regular_1D.cxx
+++ b/
src/StdMeshers/StdMeshers_Regular_1D.cxx
@@
-974,6
+974,8
@@
bool StdMeshers_Regular_1D::computeInternalParameters(SMESH_Mesh & theMesh,
an = eltSize;
eltSize *= q;
++nbParams;
an = eltSize;
eltSize *= q;
++nbParams;
+ if ( q < 1. && eltSize < 1e-100 )
+ return error("Too small common ratio causes too many segments");
}
if ( nbParams > 1 )
{
}
if ( nbParams > 1 )
{