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:
@@ -365,9 +365,9 @@ void RigWellLogCurveData::splitIntervalAtEmptySpace( const std::vector<double>&
|
||||
{
|
||||
CVF_ASSERT( intervals );
|
||||
|
||||
CVF_ASSERT( startIdx < stopIdx );
|
||||
CVF_ASSERT( startIdx <= stopIdx );
|
||||
|
||||
if ( stopIdx - startIdx == 1 )
|
||||
if ( stopIdx - startIdx <= 1 )
|
||||
{
|
||||
intervals->push_back( std::make_pair( startIdx, stopIdx ) );
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user