mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1427 Enable the new Well Log Curve command for Simulation Wells
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user