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.