If i need to access the relative residual after each (converged) newton iteration in python as a variable, how does one go about achieving this?
I have tried inspecting the returned values from the solver call:
r = newton_solver.solve(nonlinear_problem, u.vector())
print(r)
Which gives me (1, True) each time (The True I assumed being whether the solver converged or not. Not entirely sure what the ‘1’ is). Is there a way I could access the relative residual in this way, e.g. something like r = newton_solver.get_relative_residual()?