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
Fix for Bug IPAL11055:
[modules/smesh.git]
/
src
/
StdMeshers
/
StdMeshers_Distribution.cxx
diff --git
a/src/StdMeshers/StdMeshers_Distribution.cxx
b/src/StdMeshers/StdMeshers_Distribution.cxx
index 1223fc009e716220152d1c577951231b3729f23d..5b0416db66581d1c6dc2a55682e2bcbef0bf806d 100644
(file)
--- a/
src/StdMeshers/StdMeshers_Distribution.cxx
+++ b/
src/StdMeshers/StdMeshers_Distribution.cxx
@@
-122,10
+122,11
@@
double FunctionTable::integral( const int i ) const
double FunctionTable::integral( const int i, const double d ) const
{
double FunctionTable::integral( const int i, const double d ) const
{
- double f, res = 0.0;
- if( value( myData[2*i]+d, f ) )
- res = ( myData[2*i+1] + f ) / 2.0 * d;
-
+ double f1,f2, res = 0.0;
+ if( value( myData[2*i]+d, f1 ) )
+ if(!value(myData[2*i], f2))
+ f2 = myData[2*i+1];
+ res = (f2+f1) * d / 2.0;
return res;
}
return res;
}