mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
This is to support manually changing the MD directly in the project file. Fixes #7953.
This commit is contained in:
parent
1df25ed71c
commit
cd91a96871
@ -665,6 +665,12 @@ bool RiaApplication::loadProject( const QString& projectFileName,
|
||||
}
|
||||
|
||||
oilField->annotationCollection()->loadDataAndUpdate();
|
||||
|
||||
for ( auto well : oilField->wellPathCollection()->allWellPaths() )
|
||||
{
|
||||
for ( auto stimPlan : well->stimPlanModelCollection()->allStimPlanModels() )
|
||||
stimPlan->resetAnchorPositionAndThicknessDirection();
|
||||
}
|
||||
}
|
||||
|
||||
// Some procedures in onProjectOpened() may rely on the display model having been created
|
||||
|
@ -173,9 +173,11 @@ RimStimPlanModel::RimStimPlanModel()
|
||||
|
||||
CAF_PDM_InitScriptableFieldNoDefault( &m_anchorPosition, "AnchorPosition", "Anchor Position", "", "", "" );
|
||||
m_anchorPosition.uiCapability()->setUiReadOnly( true );
|
||||
m_anchorPosition.xmlCapability()->disableIO();
|
||||
|
||||
CAF_PDM_InitScriptableFieldNoDefault( &m_thicknessDirection, "ThicknessDirection", "Thickness Direction", "", "", "" );
|
||||
m_thicknessDirection.uiCapability()->setUiReadOnly( true );
|
||||
m_thicknessDirection.xmlCapability()->disableIO();
|
||||
|
||||
CAF_PDM_InitScriptableFieldNoDefault( &m_thicknessDirectionWellPath,
|
||||
"ThicknessDirectionWellPath",
|
||||
@ -922,6 +924,17 @@ void RimStimPlanModel::loadDataAndUpdate()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimStimPlanModel::resetAnchorPositionAndThicknessDirection()
|
||||
{
|
||||
// Always recompute thickness direction as MD in project file might have been changed
|
||||
updatePositionFromMeasuredDepth();
|
||||
updateThicknessDirection();
|
||||
updateBarrierProperties();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -153,6 +153,7 @@ public:
|
||||
RimWellPath* wellPath() const;
|
||||
|
||||
void loadDataAndUpdate();
|
||||
void resetAnchorPositionAndThicknessDirection();
|
||||
|
||||
RimModeledWellPath* thicknessDirectionWellPath() const;
|
||||
void setThicknessDirectionWellPath( RimModeledWellPath* thicknessDirectionWellPath );
|
||||
|
Loading…
Reference in New Issue
Block a user