mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Treat rate control with zero target same as stopped well.
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include <opm/simulators/wells/WellAssemble.hpp>
|
||||
#include <opm/simulators/wells/WellBhpThpCalculator.hpp>
|
||||
#include <opm/simulators/wells/WellInterfaceIndices.hpp>
|
||||
#include <opm/simulators/wells/WellState.hpp>
|
||||
|
||||
namespace Opm {
|
||||
|
||||
@@ -162,6 +163,9 @@ assembleControlEq(const WellState& well_state,
|
||||
bhp_from_thp,
|
||||
control_eq,
|
||||
deferred_logger);
|
||||
} else if (rateControlWithZeroTarget(well_state.well(well_.indexOfWell()).production_cmode, prod_controls)) {
|
||||
// Production mode, zero target. Treat as STOP.
|
||||
control_eq = primary_variables.getWQTotal();
|
||||
} else {
|
||||
// Find rates.
|
||||
const auto rates = getRates();
|
||||
|
||||
Reference in New Issue
Block a user