mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use inclusive boundaries for interpolation.
This commit is contained in:
parent
09e14e173d
commit
56753f688d
@ -39,7 +39,7 @@ double RiaInterpolationTools::linear( const std::vector<double>& x, const std::v
|
||||
int lowerIndex = 0;
|
||||
for ( int i = 0; i < static_cast<int>( x.size() - 1 ); i++ )
|
||||
{
|
||||
if ( x[i] < value && x[i + 1] > value )
|
||||
if ( x[i] <= value && x[i + 1] >= value )
|
||||
{
|
||||
lowerIndex = i;
|
||||
found = true;
|
||||
|
Loading…
Reference in New Issue
Block a user