Merge pull request #3271 from totto82/fixRESVpred

BUGFIX fix direction of the resv check
This commit is contained in:
Atgeirr Flø Rasmussen authored and GitHub committed 2021-05-18 19:05:17 +02:00
commit 377d7eca60
1 file changed
+1 -1
+1 -1
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;
}