mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
parent
7e707f131c
commit
ae372a4a79
@ -40,6 +40,7 @@
|
|||||||
#include "RimEclipseCase.h"
|
#include "RimEclipseCase.h"
|
||||||
#include "RimGeoMechCase.h"
|
#include "RimGeoMechCase.h"
|
||||||
#include "RimMainPlotCollection.h"
|
#include "RimMainPlotCollection.h"
|
||||||
|
#include "RimOilField.h"
|
||||||
#include "RimProject.h"
|
#include "RimProject.h"
|
||||||
#include "RimTools.h"
|
#include "RimTools.h"
|
||||||
#include "RimWellFlowRateCurve.h"
|
#include "RimWellFlowRateCurve.h"
|
||||||
@ -47,6 +48,8 @@
|
|||||||
#include "RimWellLogPlot.h"
|
#include "RimWellLogPlot.h"
|
||||||
#include "RimWellLogPlotCollection.h"
|
#include "RimWellLogPlotCollection.h"
|
||||||
#include "RimWellPath.h"
|
#include "RimWellPath.h"
|
||||||
|
#include "RimWellPathCollection.h"
|
||||||
|
#include "RimWellPltPlot.h"
|
||||||
#include "RimWellRftPlot.h"
|
#include "RimWellRftPlot.h"
|
||||||
|
|
||||||
#include "RiuMainWindow.h"
|
#include "RiuMainWindow.h"
|
||||||
@ -472,12 +475,45 @@ void RimWellLogTrack::loadDataAndUpdate()
|
|||||||
RimWellRftPlot* rftPlot(nullptr);
|
RimWellRftPlot* rftPlot(nullptr);
|
||||||
firstAncestorOrThisOfType(rftPlot);
|
firstAncestorOrThisOfType(rftPlot);
|
||||||
|
|
||||||
|
RimWellPltPlot* pltPlot;
|
||||||
|
rftPlot ? pltPlot = nullptr : firstAncestorOrThisOfType(pltPlot);
|
||||||
|
|
||||||
|
if (rftPlot || pltPlot)
|
||||||
|
{
|
||||||
|
RimProject* proj = RiaApplication::instance()->project();
|
||||||
|
RimOilField* oilField = proj->activeOilField();
|
||||||
|
|
||||||
|
RimWellPathCollection* wellPathCollection = oilField->wellPathCollection();
|
||||||
|
RimWellPath* wellPath;
|
||||||
|
|
||||||
|
QString wellName;
|
||||||
|
|
||||||
if (rftPlot)
|
if (rftPlot)
|
||||||
{
|
{
|
||||||
m_trajectoryType = RimWellLogTrack::SIMULATION_WELL;
|
wellName = rftPlot->currentWellName();
|
||||||
m_simWellName = rftPlot->currentWellName();
|
|
||||||
m_branchIndex = rftPlot->branchIndex();
|
m_branchIndex = rftPlot->branchIndex();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
wellName = pltPlot->currentWellName();
|
||||||
|
m_branchIndex = pltPlot->branchIndex();
|
||||||
|
}
|
||||||
|
|
||||||
|
wellPath = wellPathCollection->wellPathByName(wellName);
|
||||||
|
|
||||||
|
if (wellPath)
|
||||||
|
{
|
||||||
|
m_trajectoryType = RimWellLogTrack::WELL_PATH;
|
||||||
|
m_wellPath = wellPath;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_trajectoryType == RimWellLogTrack::SIMULATION_WELL;
|
||||||
|
m_simulationWellChosen = true;
|
||||||
|
m_simWellName = wellName;
|
||||||
|
m_branchIndex = rftPlot->branchIndex();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (m_showFormations)
|
if (m_showFormations)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user