Merge pull request #705 from totto82/fix_well_event2

update well event also for WCONINJH
This commit is contained in:
Joakim Hove
2019-04-02 17:51:00 +02:00
committed by GitHub

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 =