mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Support setting of child fields from Python and pass in WbsParameters if provided
Also fixes #5354
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "RimGeoMechCase.h"
|
||||
#include "RimGeoMechView.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimWbsParameters.h"
|
||||
#include "RimWellBoreStabilityPlot.h"
|
||||
#include "RimWellPath.h"
|
||||
|
||||
@@ -51,6 +52,8 @@ RicfCreateWellBoreStabilityPlotFeature::RicfCreateWellBoreStabilityPlotFeature()
|
||||
RICF_InitField( &m_caseId, "caseId", -1, "GeoMech Case Id", "", "", "" );
|
||||
RICF_InitField( &m_wellPath, "wellPath", QString( "" ), "Well Path", "", "", "" );
|
||||
RICF_InitField( &m_timeStep, "timeStep", -1, "Time Step", "", "", "" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_wbsParameters, "wbsParameters", "WbsParameters", "", "", "" );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -87,7 +90,8 @@ RicfCommandResponse RicfCreateWellBoreStabilityPlotFeature::execute()
|
||||
{
|
||||
RimWellBoreStabilityPlot* wbsPlot = RicNewWellBoreStabilityPlotFeature::createPlot( chosenCase,
|
||||
chosenWellPath,
|
||||
m_timeStep() );
|
||||
m_timeStep(),
|
||||
m_wbsParameters() );
|
||||
RicfCommandResponse response;
|
||||
response.setResult( new RicfCreateWbsPlotResult( wbsPlot->id() ) );
|
||||
return response;
|
||||
|
||||
@@ -18,8 +18,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "RicfCommandObject.h"
|
||||
#include "cafPdmChildField.h"
|
||||
#include "cafPdmField.h"
|
||||
|
||||
class RimWbsParameters;
|
||||
|
||||
//==================================================================================================
|
||||
//
|
||||
//
|
||||
@@ -50,7 +53,8 @@ public:
|
||||
RicfCommandResponse execute() override;
|
||||
|
||||
private:
|
||||
caf::PdmField<int> m_caseId;
|
||||
caf::PdmField<QString> m_wellPath;
|
||||
caf::PdmField<int> m_timeStep;
|
||||
caf::PdmField<int> m_caseId;
|
||||
caf::PdmField<QString> m_wellPath;
|
||||
caf::PdmField<int> m_timeStep;
|
||||
caf::PdmChildField<RimWbsParameters*> m_wbsParameters;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user