mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-07 06:33:05 -06:00
StimPlanModel: Fix bug in pressure interpolation.
This commit is contained in:
parent
cc59eba6e0
commit
1e2f8fadef
@ -298,9 +298,10 @@ std::tuple<std::vector<double>, std::vector<double>, std::vector<double>>
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( !sourceValues.empty() )
|
||||
// The last point is added without interpolation. But MD can be smaller than the source range which
|
||||
// leads to startIndex equal to endIndex: leave these cases as inf.
|
||||
if ( !sourceValues.empty() && md >= sourceMds[0] )
|
||||
{
|
||||
// The last point is added without interpolation
|
||||
value = sourceValues.back();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user