mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Recompute completion type results when input values change.
This commit is contained in:
@@ -293,7 +293,7 @@ void RimFractureTemplate::fieldChangedByUi( const caf::PdmFieldHandle* changedFi
|
|||||||
const QVariant& oldValue,
|
const QVariant& oldValue,
|
||||||
const QVariant& newValue )
|
const QVariant& newValue )
|
||||||
{
|
{
|
||||||
bool createDisplayModelAndRedraw = false;
|
bool updateCompletionTypeResults = false;
|
||||||
if ( changedField == &m_azimuthAngle || changedField == &m_orientationType )
|
if ( changedField == &m_azimuthAngle || changedField == &m_orientationType )
|
||||||
{
|
{
|
||||||
for ( RimFracture* fracture : fracturesUsingThisTemplate() )
|
for ( RimFracture* fracture : fracturesUsingThisTemplate() )
|
||||||
@@ -315,7 +315,7 @@ void RimFractureTemplate::fieldChangedByUi( const caf::PdmFieldHandle* changedFi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
createDisplayModelAndRedraw = true;
|
updateCompletionTypeResults = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -350,12 +350,13 @@ void RimFractureTemplate::fieldChangedByUi( const caf::PdmFieldHandle* changedFi
|
|||||||
fracture->clearCachedNonDarcyProperties();
|
fracture->clearCachedNonDarcyProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( changedField == &m_perforationLength )
|
if ( changedField == &m_perforationLength || changedField == &m_conductivityType ||
|
||||||
|
changedField == &m_userDefinedPerforationLength )
|
||||||
{
|
{
|
||||||
createDisplayModelAndRedraw = true;
|
updateCompletionTypeResults = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( createDisplayModelAndRedraw )
|
if ( updateCompletionTypeResults )
|
||||||
{
|
{
|
||||||
RimProject::current()->reloadCompletionTypeResultsInAllViews();
|
RimProject::current()->reloadCompletionTypeResultsInAllViews();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user