diff --git a/opm/core/pressure/tpfa/cfs_tpfa_residual.c b/opm/core/pressure/tpfa/cfs_tpfa_residual.c index 6bf0c7a59..e1e42c66f 100644 --- a/opm/core/pressure/tpfa/cfs_tpfa_residual.c +++ b/opm/core/pressure/tpfa/cfs_tpfa_residual.c @@ -606,6 +606,8 @@ compute_cell_contrib(struct UnstructuredGrid *G , pimpl->ratio->mat_row[ 0 ] += s * dt * dF1; pimpl->ratio->mat_row[ off ] += s * dt * dF2; + + dv += 2 * np; /* '2' == number of one-sided derivatives. */ } } }