Merge pull request #3271 from totto82/fixRESVpred

BUGFIX fix direction of the resv check
This commit is contained in:
Atgeirr Flø Rasmussen
2021-05-18 19:05:17 +02:00
committed by GitHub

View File

@@ -2179,7 +2179,7 @@ namespace Opm
if( pu.phase_used[BlackoilPhases::Vapour] )
current_rate -= well_state.wellReservoirRates()[ wellrate_index + pu.phase_pos[BlackoilPhases::Vapour] ];
if (controls.prediction_mode && controls.resv_rate > current_rate) {
if (controls.prediction_mode && controls.resv_rate < current_rate) {
currentControl = Well::ProducerCMode::RESV;
return true;
}