Enforce row-major ordering of the pressure Jacobian

Otherwise, we will use the transposed Jacobian as a coefficient
matrix in the 'linsolver_'.  This is wrong when solving compressible
problems for which the Jacobian matrix is not symmetric.
This commit is contained in:
Bård Skaflestad 2013-05-14 11:53:09 +02:00
parent 3f0f0363c3
commit 55165bd68d

View File

@ -278,7 +278,7 @@ namespace Opm {
assemble(dt, state, well_state);
const int nc = grid_.number_of_cells;
M matr = cell_residual_.derivative()[0];
Eigen::SparseMatrix<double, Eigen::RowMajor> matr = cell_residual_.derivative()[0];
#if HACK_INCOMPRESSIBLE_GRAVITY
matr.coeffRef(0, 0) *= 2;