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:
413db21
)
PAL14458 (Values, returned by "GetTableFunctions()" functionality, were changed)
author
eap
<eap@opencascade.com>
Thu, 18 Jan 2007 07:46:03 +0000
(07:46 +0000)
committer
eap
<eap@opencascade.com>
Thu, 18 Jan 2007 07:46:03 +0000
(07:46 +0000)
fix incorrect table distribution with Exponent conversion mode
src/StdMeshers/StdMeshers_Distribution.cxx
patch
|
blob
|
history
diff --git
a/src/StdMeshers/StdMeshers_Distribution.cxx
b/src/StdMeshers/StdMeshers_Distribution.cxx
index 86efdee66fe1bacd10aaed1da9cf258094f9a00d..4f1275008c29aae19cbdedb4eca990350c3cf4df 100644
(file)
--- a/
src/StdMeshers/StdMeshers_Distribution.cxx
+++ b/
src/StdMeshers/StdMeshers_Distribution.cxx
@@
-119,6
+119,7
@@
bool FunctionTable::value( const double t, double& f ) const
if( i1==i2 ) {
f = myData[ 2*i1+1 ];
+ Function::value( t, f );
return true;
}
@@
-145,8
+146,10
@@
double FunctionTable::integral( const int i, const double d ) const
{
double f1,f2, res = 0.0;
if( value( myData[2*i]+d, f1 ) )
- if(!value(myData[2*i], f2))
+ if(!value(myData[2*i], f2))
{
f2 = myData[2*i+1];
+ Function::value( 1, f2 );
+ }
res = (f2+f1) * d / 2.0;
return res;
}