Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
0020871: EDF 1411 SMESH: Distribution with analytical density crashes Salome
[modules/smesh.git]
/
src
/
StdMeshersGUI
/
StdMeshersGUI_DistrPreview.cxx
diff --git
a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx
b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx
index a723fdbef364eae9767b5705ef39c31204aa05fd..fb493741754333b6b4b9ecb9d0daa7a51014236f 100644
(file)
--- a/
src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx
+++ b/
src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx
@@
-264,8
+264,13
@@
void StdMeshersGUI_DistrPreview::update()
showError();
return;
}
+#ifdef WIN32
+ if ( std::fabs(y[i]) >= HUGE_VAL)
+ y[i] = HUGE_VAL/100.;
+#else
if ( isinf(y[i]))
y[i] = std::numeric_limits<double>::max()/100.;
+#endif
// if ( y[i] > 1e3 )
// y[i] = 1e3;
if( i==0 || y[i]<min_y )