#1427 Enable the new Well Log Curve command for Simulation Wells

This commit is contained in:
Jacob Støren
2017-04-25 16:12:22 +02:00
parent f40cf3a9b7
commit 6f07a3698b
7 changed files with 70 additions and 17 deletions

View File

@@ -59,6 +59,7 @@
#include "cafUtils.h"
#include <cmath>
#include "RimEclipseWell.h"
//==================================================================================================
///
@@ -147,6 +148,18 @@ RimWellPath* RimWellLogExtractionCurve::wellPath() const
return m_wellPath;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogExtractionCurve::setFromSimulationWellName(const QString& simWellName, int branchIndex)
{
m_trajectoryType = SIMULATION_WELL;
m_simWellName = simWellName;
m_branchIndex = branchIndex;
clearGeneratedSimWellPaths();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -675,8 +688,10 @@ QString RimWellLogExtractionCurve::createCurveAutoName()
if (m_addWellNameToCurveName )
{
generatedCurveName += wellName();
// Todo: Branch
if (m_trajectoryType == SIMULATION_WELL && m_generatedSimulationWellPathBranches.size() > 1)
{
generatedCurveName += " Br" + QString::number(m_branchIndex + 1);
}
}
if (m_addCaseNameToCurveName && m_case())

View File

@@ -48,6 +48,8 @@ public:
void setWellPath(RimWellPath* wellPath);
RimWellPath* wellPath() const;
void setFromSimulationWellName(const QString& simWellName, int branchIndex);
void setCase(RimCase* rimCase);
RimCase* rimCase() const;