mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Summary Well Branches : Clamp branch index
This commit is contained in:
parent
13ac632350
commit
22e3575bc6
@ -461,6 +461,8 @@ void RimWellLogRftCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedFiel
|
||||
}
|
||||
else if (changedField == &m_wellName)
|
||||
{
|
||||
m_branchIndex = 0;
|
||||
|
||||
updateWellChannelNameAndTimeStep();
|
||||
this->loadDataAndUpdate(true);
|
||||
}
|
||||
@ -526,6 +528,8 @@ RigEclipseWellLogExtractor* RimWellLogRftCurve::extractor()
|
||||
std::vector<const RigWellPath*> wellPaths = RiaSimWellBranchTools::simulationWellBranches(simWellName, m_branchDetection);
|
||||
if (wellPaths.size() == 0) return nullptr;
|
||||
|
||||
m_branchIndex = RiaSimWellBranchTools::clampBranchIndex(simWellName, m_branchIndex, m_branchDetection);
|
||||
|
||||
auto wellPathBranch = wellPaths[m_branchIndex];
|
||||
|
||||
eclExtractor = wellLogCollection->findOrCreateSimWellExtractor(simWellName,
|
||||
|
Loading…
Reference in New Issue
Block a user