Hi,
How can I track the residuals of the cpp NewtonSolver in dolfinx 0.8.0?
Using log.set_log_level(log.LogLevel.INFO) I can obtain the values in the log, e.g.: NewtonSolver.cpp:38 INFO| Newton iteration 2: r (abs) = 0.0103137 (tol = 1e-07) r (rel) = 0.0187614(tol = 1e-06), but I would like to access them in Python directly if possible.
In this post @nate explains we can overwrite the converged function of the NewtonSolver, but this not possible here. Can we do a similar thing for the solve function?