From 959c694e2d7b65a9ca8392171aebec0d22e6f2ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Mon, 19 Dec 2011 14:09:27 +0100 Subject: [PATCH] Impose outflow sign convention when assembling w->c contributions. --- opm/core/pressure/tpfa/cfs_tpfa_residual.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/opm/core/pressure/tpfa/cfs_tpfa_residual.c b/opm/core/pressure/tpfa/cfs_tpfa_residual.c index 102e0606..317732ee 100644 --- a/opm/core/pressure/tpfa/cfs_tpfa_residual.c +++ b/opm/core/pressure/tpfa/cfs_tpfa_residual.c @@ -729,9 +729,8 @@ assemble_completion_to_cell(int c, int wdof, int np, double dt, s2 += d2[ p ]; } - /* Negative sign due to completion flux sign convention. */ - h->J->sa[ jc ] -= dt * s1; - h->J->sa[ jw ] -= dt * s2; + h->J->sa[ jc ] += dt * s1; + h->J->sa[ jw ] += dt * s2; }