mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1345 Fixed. Injector TOF results ended up with a double unit conversion, because tracers with no cells were wrongfully added to the flow diag solver solution.
This commit is contained in:
@@ -316,6 +316,8 @@ std::vector<double>* RigFlowDiagResults::calculateTracerWithMaxFractionResult(co
|
||||
{
|
||||
const std::vector<double> * fr = fractions[frIdx].second;
|
||||
|
||||
if (!fr) continue;
|
||||
|
||||
for ( size_t acIdx = 0 ; acIdx < activeCellCount; ++acIdx )
|
||||
{
|
||||
if ( (*fr)[acIdx] == HUGE_VAL ) continue;
|
||||
|
||||
@@ -92,6 +92,9 @@ void RigFlowDiagTimeStepResult::setInjProdWellPairFlux(const std::string& inject
|
||||
void RigFlowDiagTimeStepResult::addResult(const RigFlowDiagResultAddress& resAddr, const std::map<int, double>& cellValues)
|
||||
{
|
||||
std::vector<double>& activeCellValues = m_nativeResults[resAddr];
|
||||
|
||||
CVF_ASSERT(activeCellValues.empty());
|
||||
|
||||
activeCellValues.resize(m_activeCellCount, HUGE_VAL);
|
||||
|
||||
for (const auto& pairIt : cellValues)
|
||||
|
||||
Reference in New Issue
Block a user