From 13c60d200841f531f073807462db97297062039a Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Tue, 3 Nov 2020 19:34:34 +0100 Subject: [PATCH] Attach TUNING_CHANGE event to the correct report step --- src/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp b/src/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp index d371cfa20..7bcb464dc 100644 --- a/src/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp +++ b/src/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp @@ -1684,9 +1684,9 @@ namespace { this->addWell(well, report_step); this->addWellToGroup(well.groupName(), well.name(), report_step); } + m_tuning.update(report_step + 1, rst_state.tuning); + m_events.addEvent( ScheduleEvents::TUNING_CHANGE , report_step + 1); - m_tuning.update(report_step, rst_state.tuning); - m_events.addEvent( ScheduleEvents::TUNING_CHANGE , report_step); { const auto& header = rst_state.header;