update well event also for WCONINJH

This commit is contained in:
Tor Harald Sandve
2019-04-02 13:34:54 +02:00
parent 3595eb7c82
commit d7bd8d25cd

View File

@@ -1048,8 +1048,10 @@ namespace Opm {
WellInjectionProperties properties(well.getInjectionPropertiesCopy(currentStep));
properties.handleWCONINJH(record, well.isProducer(currentStep), well.name(), section.unitSystem());
if (well.setInjectionProperties(currentStep, properties))
if (well.setInjectionProperties(currentStep, properties)) {
m_events.addEvent( ScheduleEvents::INJECTION_UPDATE , currentStep );
this->addWellEvent( well.name(), ScheduleEvents::INJECTION_UPDATE, currentStep);
}
if ( ! well.getAllowCrossFlow() && (properties.surfaceInjectionRate == 0)) {
std::string msg =