mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-19 05:53:28 -06:00
Account for sign convention for production well rates.
This commit is contained in:
parent
6985ec94fe
commit
f6f04d1d21
@ -598,6 +598,10 @@ namespace Opm
|
||||
}
|
||||
// We only append a single control at this point.
|
||||
// TODO: Handle multiple controls.
|
||||
if (well_data[w].type == PRODUCER && well_data[w].control == RATE) {
|
||||
// Convention is that well rates for producers are negative.
|
||||
well_data[w].target = -well_data[w].target;
|
||||
}
|
||||
ok = append_well_controls(well_data[w].control, well_data[w].target, w_->ctrls[w]);
|
||||
w_->ctrls[w]->current = 0;
|
||||
if (!ok) {
|
||||
|
Loading…
Reference in New Issue
Block a user