mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Filter out TOF values greater than 73000 and remove wells with zero aggregated volume
This commit is contained in:
@@ -128,7 +128,10 @@ RigTofWellDistributionCalculator::RigTofWellDistributionCalculator(RimEclipseRes
|
||||
contribWellEntry.accumulatedVolAlongTof.push_back(accumulatedVolForSpecifiedPhase);
|
||||
}
|
||||
|
||||
m_contributingWells.push_back(contribWellEntry);
|
||||
if (accumulatedVolForSpecifiedPhase > 0)
|
||||
{
|
||||
m_contributingWells.push_back(contribWellEntry);
|
||||
}
|
||||
}
|
||||
|
||||
for (auto mapElement : tofToCellIndicesMap)
|
||||
@@ -199,6 +202,12 @@ std::map<double, std::vector<size_t>> RigTofWellDistributionCalculator::buildSor
|
||||
continue;
|
||||
}
|
||||
|
||||
// Also filter out special TOF values greater than 73000 days (~200 years)
|
||||
if (tofValue > 73000.0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
std::vector<size_t> vectorOfIndexes{ i };
|
||||
auto iteratorBoolFromInsertToMap = tofToCellIndicesMap.insert(std::make_pair(tofValue, vectorOfIndexes));
|
||||
if (!iteratorBoolFromInsertToMap.second)
|
||||
|
||||
Reference in New Issue
Block a user