Fix print() method.

This commit is contained in:
Atgeirr Flø Rasmussen 2015-08-26 13:07:36 +02:00 committed by babrodtk
parent c795113ce3
commit dd52d444e7

View File

@ -412,7 +412,9 @@ namespace Opm
int num_blocks = jac_.size();
os << "Value =\n" << val_ << "\n\nJacobian =\n";
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;
}