Convergence history of LinearProblem

Dear all,

I am using the object fem.petsc.LinearProblem to solve a linear problem. Does anybody know if it is possible to see the convergence history? (i.e., to print the value of the residual at each step of the iterative solver).
Do I need to define a Krylov solver in PETSc instead?

Many thanks in advance.

If setting a default monitor via the option keys is not sufficient you can set a custom monitor on the underlying KSP.