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:
68cf640
)
fix SIGFPE on too short EDGEs
author
eap
<eap@opencascade.com>
Mon, 18 Nov 2013 12:35:16 +0000
(12:35 +0000)
committer
eap
<eap@opencascade.com>
Mon, 18 Nov 2013 12:35:16 +0000
(12:35 +0000)
src/StdMeshers/StdMeshers_Adaptive1D.cxx
patch
|
blob
|
history
diff --git
a/src/StdMeshers/StdMeshers_Adaptive1D.cxx
b/src/StdMeshers/StdMeshers_Adaptive1D.cxx
index e47018290028060daf7432e8ab169a87f15550eb..38b703539bc074e4fa5b2e4b8228e5b54430f64b 100644
(file)
--- a/
src/StdMeshers/StdMeshers_Adaptive1D.cxx
+++ b/
src/StdMeshers/StdMeshers_Adaptive1D.cxx
@@
-1227,7
+1227,7
@@
bool AdaptiveAlgo::makeSegments()
const double f = eData.myC3d.FirstParameter(), l = eData.myC3d.LastParameter();
const double parLen = l - f;
const int nbDivSeg = 5;
- int nbDiv =
int ( eData.myLength / edgeMinSize * nbDivSeg
);
+ int nbDiv =
Max( 1, int ( eData.myLength / edgeMinSize * nbDivSeg )
);
// compute nb of segments
bool toRecompute = true;