mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge remote-tracking branch 'origin/dev' into fishbones
This commit is contained in:
commit
42e2294eca
@ -316,7 +316,7 @@ void RimWellLogExtractionCurve::onLoadDataAndUpdate()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (m_branchIndex >= 0 && m_branchIndex < m_generatedSimulationWellPathBranches.size() )
|
if (m_branchIndex >= 0 && m_branchIndex < static_cast<int>(m_generatedSimulationWellPathBranches.size()) )
|
||||||
{
|
{
|
||||||
eclExtractor = wellLogCollection->findOrCreateSimWellExtractor(m_simWellName,
|
eclExtractor = wellLogCollection->findOrCreateSimWellExtractor(m_simWellName,
|
||||||
eclipseCase->caseUserDescription(),
|
eclipseCase->caseUserDescription(),
|
||||||
@ -554,7 +554,7 @@ QList<caf::PdmOptionItemInfo> RimWellLogExtractionCurve::calculateValueOptions(c
|
|||||||
|
|
||||||
size_t branchCount = m_generatedSimulationWellPathBranches.size();
|
size_t branchCount = m_generatedSimulationWellPathBranches.size();
|
||||||
|
|
||||||
for ( int bIdx = 0; bIdx < branchCount; ++bIdx)
|
for ( int bIdx = 0; bIdx < static_cast<int>(branchCount); ++bIdx)
|
||||||
{
|
{
|
||||||
options.push_back(caf::PdmOptionItemInfo("Branch " + QString::number(bIdx + 1), QVariant::fromValue(bIdx) ));
|
options.push_back(caf::PdmOptionItemInfo("Branch " + QString::number(bIdx + 1), QVariant::fromValue(bIdx) ));
|
||||||
}
|
}
|
||||||
|
@ -258,6 +258,35 @@ std::vector<double>* RigFlowDiagResults::calculateAverageTOFResult(const RigFlow
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RigFlowDiagResults::calculateSumOfFractionAndFractionMultTOF(size_t activeCellCount,
|
||||||
|
const std::vector<const std::vector<double> *> & fractions,
|
||||||
|
const std::vector<const std::vector<double> *> & TOFs,
|
||||||
|
std::vector<double> *sumOfFractions,
|
||||||
|
std::vector<double> *fractionMultTOF)
|
||||||
|
{
|
||||||
|
sumOfFractions->resize(activeCellCount, 0.0);
|
||||||
|
fractionMultTOF->resize(activeCellCount, 0.0);
|
||||||
|
|
||||||
|
for ( size_t iIdx = 0; iIdx < fractions.size() ; ++iIdx )
|
||||||
|
{
|
||||||
|
const std::vector<double> * frInj = fractions[iIdx];
|
||||||
|
const std::vector<double> * tofInj = TOFs[iIdx];
|
||||||
|
|
||||||
|
if ( ! (frInj && tofInj) ) continue;
|
||||||
|
|
||||||
|
for ( size_t acIdx = 0 ; acIdx < activeCellCount; ++acIdx )
|
||||||
|
{
|
||||||
|
if ( (*frInj)[acIdx] == HUGE_VAL ) continue;
|
||||||
|
|
||||||
|
(*sumOfFractions)[acIdx] += (*frInj)[acIdx];
|
||||||
|
(*fractionMultTOF)[acIdx] += (*frInj)[acIdx] * (*tofInj)[acIdx];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@ -434,35 +463,6 @@ RigFlowDiagResults::findNamedResultsForSelectedTracers(const RigFlowDiagResultAd
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
void RigFlowDiagResults::calculateSumOfFractionAndFractionMultTOF(size_t activeCellCount,
|
|
||||||
const std::vector<const std::vector<double> *> & fractions,
|
|
||||||
const std::vector<const std::vector<double> *> & TOFs,
|
|
||||||
std::vector<double> *sumOfFractions,
|
|
||||||
std::vector<double> *fractionMultTOF)
|
|
||||||
{
|
|
||||||
sumOfFractions->resize(activeCellCount, 0.0);
|
|
||||||
fractionMultTOF->resize(activeCellCount, 0.0);
|
|
||||||
|
|
||||||
for ( size_t iIdx = 0; iIdx < fractions.size() ; ++iIdx )
|
|
||||||
{
|
|
||||||
const std::vector<double> * frInj = fractions[iIdx];
|
|
||||||
const std::vector<double> * tofInj = TOFs[iIdx];
|
|
||||||
|
|
||||||
if ( ! (frInj && tofInj) ) continue;
|
|
||||||
|
|
||||||
for ( size_t acIdx = 0 ; acIdx < activeCellCount; ++acIdx )
|
|
||||||
{
|
|
||||||
if ( (*frInj)[acIdx] == HUGE_VAL ) continue;
|
|
||||||
|
|
||||||
(*sumOfFractions)[acIdx] += (*frInj)[acIdx];
|
|
||||||
(*fractionMultTOF)[acIdx] += (*frInj)[acIdx] * (*tofInj)[acIdx];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user