mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Allow intervals with only one valid value in curves
This commit is contained in:
@@ -42,10 +42,7 @@ RiaCurveDataTools::CurveIntervals RiaCurveDataTools::calculateIntervalsOfValidVa
|
||||
if ( startIdx >= 0 )
|
||||
{
|
||||
size_t endIdx = vIdx - 1;
|
||||
if ( endIdx > startIdx )
|
||||
{
|
||||
intervals.push_back( std::make_pair( startIdx, endIdx ) );
|
||||
}
|
||||
intervals.push_back( std::make_pair( startIdx, endIdx ) );
|
||||
startIdx = -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user