Bugfix: do not keep old control modes.

They will be treated as limits, and cause wrong behaviour.
This commit is contained in:
Atgeirr Flø Rasmussen
2019-04-30 14:48:49 +02:00
committed by Arne Morten Kvarving
parent 828fe797f0
commit 0108437201

View File

@@ -67,6 +67,7 @@ namespace Opm {
else
cmode = wp::ControlModeFromString( cmodeItem.getTrimmedString( 0 ) );
m_productionControls = 0;
if (effectiveHistoryProductionControl(cmode)) {
this->addProductionControl( cmode );
this->controlMode = cmode;