Various fixes and refactoring.

- Communicate all well rates.
 - When changing controls, modify rates to satisfy failed constraint.
 - Ensure targets are positive.
 - Always solve for potentials for MSW (temporary fix).
This commit is contained in:
Tor Harald Sandve
2020-03-24 09:24:45 +01:00
committed by Atgeirr Flø Rasmussen
parent 3a5a8c23df
commit 66931b9cb7
8 changed files with 458 additions and 311 deletions

View File

@@ -495,14 +495,14 @@ namespace Opm
const SummaryState& summaryState,
DeferredLogger& deferred_logger) const;
bool checkGroupConstraintsProd(const Group& group,
std::pair<bool, double> checkGroupConstraintsProd(const Group& group,
const WellState& well_state,
const double efficiencyFactor,
const Schedule& schedule,
const SummaryState& summaryState,
DeferredLogger& deferred_logger) const;
bool checkGroupConstraintsInj(const Group& group,
std::pair<bool, double> checkGroupConstraintsInj(const Group& group,
const WellState& well_state,
const double efficiencyFactor,
const Schedule& schedule,