From fe15d4a1d2e6bb171fec85957e0ad79dab4cc52d Mon Sep 17 00:00:00 2001 From: Xavier Raynaud Date: Fri, 19 Sep 2014 14:58:37 +0200 Subject: [PATCH] Added support for wconinjh --- opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp b/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp index 5d5be98a5..7bd13d70c 100644 --- a/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp +++ b/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp @@ -302,15 +302,18 @@ namespace Opm { WellPtr well = getWell(wellName); // convert injection rates to SI - WellInjector::TypeEnum wellType = WellInjector::TypeFromString( record->getItem("TYPE")->getTrimmedString(0)); + WellInjector::TypeEnum injectorType = WellInjector::TypeFromString( record->getItem("TYPE")->getTrimmedString(0)); double injectionRate = record->getItem("RATE")->getRawDouble(0); - injectionRate = convertInjectionRateToSI(injectionRate, wellType, *deck->getActiveUnitSystem()); + injectionRate = convertInjectionRateToSI(injectionRate, injectorType, *deck->getActiveUnitSystem()); WellCommon::StatusEnum status = WellCommon::StatusFromString( record->getItem("STATUS")->getTrimmedString(0)); well->setStatus( currentStep , status ); WellInjectionProperties properties(well->getInjectionPropertiesCopy(currentStep)); + properties.injectorType = injectorType; properties.surfaceInjectionRate = injectionRate; + // History matches are usually rate controled. Here, we assume it. + properties.addInjectionControl(WellInjector::RATE); properties.predictionMode = false; well->setInjectionProperties(currentStep, properties); }