Account for sign convention for production well rates.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-04-24 15:44:25 +02:00
parent 6985ec94fe
commit f6f04d1d21

View File

@ -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) {