mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
updating pressure and phase rates for top segments in updateWellControls
This commit is contained in:
parent
70d6d253fe
commit
2b4922a986
@ -994,6 +994,7 @@ namespace Opm {
|
||||
switch (well_controls_iget_type(wc, current)) {
|
||||
case BHP:
|
||||
xw.bhp()[w] = target;
|
||||
xw.segPress()[xw.topSegmentLoc()[w]] = target;
|
||||
break;
|
||||
|
||||
case THP: {
|
||||
@ -1052,6 +1053,7 @@ namespace Opm {
|
||||
for (int phase = 0; phase < np; ++phase) {
|
||||
if (distr[phase] > 0.0) {
|
||||
xw.wellRates()[np * w + phase] = target * distr[phase];
|
||||
xw.segPhaseRates()[np * xw.topSegmentLoc()[w] + phase] = target * distr[phase];
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user