mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7400 StimPlanModel: Cache calculated results.
This commit is contained in:
committed by
Magne Sjaastad
parent
762e36ae9d
commit
35525eeedf
@@ -379,6 +379,7 @@ void RimStimPlanModel::fieldChangedByUi( const caf::PdmFieldHandle* changedField
|
||||
}
|
||||
else
|
||||
{
|
||||
m_calculator->clearCache();
|
||||
updateViewsAndPlots();
|
||||
}
|
||||
}
|
||||
@@ -1692,6 +1693,8 @@ RimStimPlanModelTemplate* RimStimPlanModel::stimPlanModelTemplate() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimStimPlanModel::stimPlanModelTemplateChanged( const caf::SignalEmitter* emitter )
|
||||
{
|
||||
m_calculator->clearCache();
|
||||
|
||||
if ( m_stimPlanModelTemplate() )
|
||||
{
|
||||
m_eclipseCase = m_stimPlanModelTemplate()->dynamicEclipseCase();
|
||||
|
||||
Reference in New Issue
Block a user