mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 06:55:56 -06:00
#6877 Fix backwards compatibility for well path/fracture intersection depth.
The value needs to be copied from the template to the fracture instance for old projects. This fixes assert seen in regression tests.
This commit is contained in:
parent
1bacd41037
commit
acd78daa3f
@ -918,3 +918,22 @@ const RigFractureGrid* RimFracture::fractureGrid() const
|
||||
{
|
||||
return m_fractureGrid.p();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFracture::initAfterRead()
|
||||
{
|
||||
if ( RimProject::current()->isProjectFileVersionEqualOrOlderThan( "2020.10.2" ) )
|
||||
{
|
||||
if ( m_fractureTemplate() )
|
||||
{
|
||||
RimStimPlanFractureTemplate* stimPlanFracTemplate =
|
||||
dynamic_cast<RimStimPlanFractureTemplate*>( m_fractureTemplate() );
|
||||
if ( stimPlanFracTemplate )
|
||||
{
|
||||
m_wellPathDepthAtFracture = stimPlanFracTemplate->wellPathDepthAtFracture();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -143,6 +143,7 @@ protected:
|
||||
void defineEditorAttribute( const caf::PdmFieldHandle* field,
|
||||
QString uiConfigName,
|
||||
caf::PdmUiEditorAttribute* attribute ) override;
|
||||
void initAfterRead();
|
||||
|
||||
private:
|
||||
cvf::Vec3d fracturePositionForUi() const;
|
||||
|
Loading…
Reference in New Issue
Block a user