mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
Merge pull request #3271 from totto82/fixRESVpred
BUGFIX fix direction of the resv check
This commit is contained in:
1 file changed
+1
-1
@@ -2179,7 +2179,7 @@ namespace Opm
|
|||||||
if( pu.phase_used[BlackoilPhases::Vapour] )
|
if( pu.phase_used[BlackoilPhases::Vapour] )
|
||||||
current_rate -= well_state.wellReservoirRates()[ wellrate_index + pu.phase_pos[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;
|
currentControl = Well::ProducerCMode::RESV;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user