Attach TUNING_CHANGE event to the correct report step

This commit is contained in:
Joakim Hove 2020-11-03 19:34:34 +01:00
parent 28d1256683
commit 13c60d2008

View File

@ -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;