mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-20 11:48:35 -06:00
(#526) Additional fix for filtering of infinite values in extraction curves
This commit is contained in:
parent
ff073f50fa
commit
895a16f43f
@ -388,7 +388,8 @@ void RimWellLogExtractionCurve::validValuesIntervals(const std::vector<double>&
|
||||
int startIdx = -1;
|
||||
size_t vIdx = 0;
|
||||
|
||||
while (vIdx < values.size())
|
||||
size_t valueCount = values.size();
|
||||
while (vIdx < valueCount)
|
||||
{
|
||||
double value = values[vIdx];
|
||||
if (value == HUGE_VAL || value == -HUGE_VAL || value != value)
|
||||
@ -406,6 +407,11 @@ void RimWellLogExtractionCurve::validValuesIntervals(const std::vector<double>&
|
||||
|
||||
vIdx++;
|
||||
}
|
||||
|
||||
if (startIdx >= 0 && startIdx < valueCount)
|
||||
{
|
||||
intervals.push_back(std::make_pair(startIdx, valueCount - 1));
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user