mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-01 13:29:08 -06:00
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:
parent
3f0f0363c3
commit
55165bd68d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user