mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-16 07:20:37 +05:00
PAL14458 (Values, returned by "GetTableFunctions()" functionality, were changed)
fix incorrect table distribution with Exponent conversion mode
This commit is contained in:
parent
413db213ee
commit
8c19eef69a
@ -119,6 +119,7 @@ bool FunctionTable::value( const double t, double& f ) const
|
|||||||
|
|
||||||
if( i1==i2 ) {
|
if( i1==i2 ) {
|
||||||
f = myData[ 2*i1+1 ];
|
f = myData[ 2*i1+1 ];
|
||||||
|
Function::value( t, f );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,8 +146,10 @@ double FunctionTable::integral( const int i, const double d ) const
|
|||||||
{
|
{
|
||||||
double f1,f2, res = 0.0;
|
double f1,f2, res = 0.0;
|
||||||
if( value( myData[2*i]+d, f1 ) )
|
if( value( myData[2*i]+d, f1 ) )
|
||||||
if(!value(myData[2*i], f2))
|
if(!value(myData[2*i], f2)) {
|
||||||
f2 = myData[2*i+1];
|
f2 = myData[2*i+1];
|
||||||
|
Function::value( 1, f2 );
|
||||||
|
}
|
||||||
res = (f2+f1) * d / 2.0;
|
res = (f2+f1) * d / 2.0;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user