mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix print() method.
This commit is contained in:
parent
c795113ce3
commit
dd52d444e7
@ -412,7 +412,9 @@ namespace Opm
|
|||||||
int num_blocks = jac_.size();
|
int num_blocks = jac_.size();
|
||||||
os << "Value =\n" << val_ << "\n\nJacobian =\n";
|
os << "Value =\n" << val_ << "\n\nJacobian =\n";
|
||||||
for (int i = 0; i < num_blocks; ++i) {
|
for (int i = 0; i < num_blocks; ++i) {
|
||||||
os << "Sub Jacobian #" << i << '\n' << jac_[i] << "\n";
|
Eigen::SparseMatrix<double> m;
|
||||||
|
jac_[i].toSparse(m);
|
||||||
|
os << "Sub Jacobian #" << i << '\n' << m << "\n";
|
||||||
}
|
}
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user