#6936 StimPlanModel: missing update when changing eclipse case or time step in plot.

This commit is contained in:
Kristian Bendiksen 2020-11-09 23:17:38 +01:00
parent f6ba901105
commit f146402864
2 changed files with 7 additions and 1 deletions

View File

@ -1444,6 +1444,7 @@ void RimStimPlanModel::setEclipseCaseAndTimeStep( RimEclipseCase* eclipseCase, i
updateThicknessDirection(); updateThicknessDirection();
updateBarrierProperties(); updateBarrierProperties();
updateViewsAndPlots(); updateViewsAndPlots();
updateConnectedEditors();
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@ -155,9 +155,14 @@ void RimStimPlanModelPlot::fieldChangedByUi( const caf::PdmFieldHandle* changedF
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
void RimStimPlanModelPlot::onLoadDataAndUpdate() void RimStimPlanModelPlot::onLoadDataAndUpdate()
{ {
// Enable and disable detailed fluid loss curves
if ( stimPlanModel() != nullptr ) if ( stimPlanModel() != nullptr )
{ {
// Update eclipse case and time step
m_eclipseCase = stimPlanModel()->eclipseCase();
m_timeStep = stimPlanModel()->timeStep();
updateConnectedEditors();
// Enable and disable detailed fluid loss curves
std::vector<RiaDefines::CurveProperty> fluidLossCurves = { RiaDefines::CurveProperty::PORO_ELASTIC_CONSTANT, std::vector<RiaDefines::CurveProperty> fluidLossCurves = { RiaDefines::CurveProperty::PORO_ELASTIC_CONSTANT,
RiaDefines::CurveProperty::RELATIVE_PERMEABILITY_FACTOR, RiaDefines::CurveProperty::RELATIVE_PERMEABILITY_FACTOR,
RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFICIENT, RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFICIENT,