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
commit 0d172c9a1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 =