mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-02 05:49:09 -06:00
adding 0th phase only once when computing sparse pattern
This commit is contained in:
parent
ce4b25f0b8
commit
997616658b
@ -205,7 +205,7 @@ namespace Opm
|
||||
// corresponding to the jacobians with respect to pressure.
|
||||
// Use addition to get to the union structure.
|
||||
Eigen::SparseMatrix<double> structure = eqs[0].derivative()[0];
|
||||
for (int phase = 0; phase < np; ++phase) {
|
||||
for (int phase = 1; phase < np; ++phase) {
|
||||
structure += eqs[phase].derivative()[0];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user