BHP limit is taken care of from parser side

WellsManager does not need to provide default bhp limit anymore.
This commit is contained in:
Kai Bao 2018-12-18 16:06:20 +01:00
parent ecdb299671
commit bfc915849a

View File

@ -544,10 +544,7 @@ namespace Opm
}
if (ok) {
// Always append a BHP control.
// If no explicit BHP control given, use a 1 atm control.
const bool has_explicit_limit = productionProperties.hasProductionControl(WellProducer::BHP);
const double bhp_limit = has_explicit_limit ? productionProperties.BHPLimit : unit::convert::from(1.0, unit::atm);
const double bhp_limit = productionProperties.BHPLimit;
control_pos[WellsManagerDetail::ProductionControl::BHP] = well_controls_get_num(w_->ctrls[well_index]);
ok = append_well_controls(BHP,
bhp_limit,