mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
Allow intervals with only one valid value in curves
This commit is contained in:
1 parent
925e4496ea
commit
56f07e6dae
2 files changed
+3
-6
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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