From 33d58792dece9ca85b7ef7b5f926c8cbcda6ccca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Mon, 24 Mar 2014 15:28:46 +0100 Subject: [PATCH] Fix sign bug in well contribution to mass balance. --- opm/autodiff/FullyImplicitBlackoilSolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/autodiff/FullyImplicitBlackoilSolver.cpp b/opm/autodiff/FullyImplicitBlackoilSolver.cpp index 4052b2417..1f52070c4 100644 --- a/opm/autodiff/FullyImplicitBlackoilSolver.cpp +++ b/opm/autodiff/FullyImplicitBlackoilSolver.cpp @@ -917,7 +917,7 @@ namespace { // Add well contributions to mass balance equations 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