Summary Well Branches : Clamp branch index

This commit is contained in:
Magne Sjaastad 2017-12-08 12:57:16 +01:00
parent 13ac632350
commit 22e3575bc6

View File

@ -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,