Fix sign bug in well contribution to mass balance.

This commit is contained in:
Atgeirr Flø Rasmussen 2014-03-24 15:28:46 +01:00
parent 73402c892f
commit 33d58792de

View File

@ -917,7 +917,7 @@ namespace {
// Add well contributions to mass balance equations // Add well contributions to mass balance equations
for (int phase = 0; phase < np; ++phase) { for (int phase = 0; phase < np; ++phase) {
residual_.mass_balance[phase] += superset(cq_s[phase],well_cells,nc); residual_.mass_balance[phase] -= superset(cq_s[phase],well_cells,nc);
} }
// Add WELL EQUATIONS // Add WELL EQUATIONS