mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
BHP limit is taken care of from parser side
WellsManager does not need to provide default bhp limit anymore.
This commit is contained in:
parent
ecdb299671
commit
bfc915849a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user