Bugfix: do not keep old control modes.
They will be treated as limits, and cause wrong behaviour.
This commit is contained in:
committed by
Arne Morten Kvarving
parent
828fe797f0
commit
0108437201
@@ -67,6 +67,7 @@ namespace Opm {
|
|||||||
else
|
else
|
||||||
cmode = wp::ControlModeFromString( cmodeItem.getTrimmedString( 0 ) );
|
cmode = wp::ControlModeFromString( cmodeItem.getTrimmedString( 0 ) );
|
||||||
|
|
||||||
|
m_productionControls = 0;
|
||||||
if (effectiveHistoryProductionControl(cmode)) {
|
if (effectiveHistoryProductionControl(cmode)) {
|
||||||
this->addProductionControl( cmode );
|
this->addProductionControl( cmode );
|
||||||
this->controlMode = cmode;
|
this->controlMode = cmode;
|
||||||
|
|||||||
Reference in New Issue
Block a user