mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7339 StimPlanModel: Update python api changes in pdm objects.
The eclipse cases are now set on the StimPlanModelTemplate, not on the StimPlanModel.
This commit is contained in:
@@ -323,11 +323,14 @@ void RimStimPlanModel::fieldChangedByUi( const caf::PdmFieldHandle* changedField
|
||||
|
||||
if ( changedField == &m_eclipseCase )
|
||||
{
|
||||
// Set a valid default time step
|
||||
const int timeStepCount = m_eclipseCase->timeStepStrings().size();
|
||||
if ( timeStepCount > 0 )
|
||||
if ( m_eclipseCase )
|
||||
{
|
||||
m_timeStep = timeStepCount - 1;
|
||||
// Set a valid default time step
|
||||
const int timeStepCount = m_eclipseCase->timeStepStrings().size();
|
||||
if ( timeStepCount > 0 )
|
||||
{
|
||||
m_timeStep = timeStepCount - 1;
|
||||
}
|
||||
}
|
||||
|
||||
updateExtractionDepthBoundaries();
|
||||
@@ -1664,6 +1667,7 @@ void RimStimPlanModel::setStimPlanModelTemplate( RimStimPlanModelTemplate* stimP
|
||||
}
|
||||
|
||||
m_stimPlanModelTemplate = stimPlanModelTemplate;
|
||||
stimPlanModelTemplateChanged( nullptr );
|
||||
|
||||
if ( m_stimPlanModelTemplate )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user