Dear David,

The solution is indeed quite simple, You can make a loop in your python script and limit the Newton algorithm to only one iteration each time (and control that the convergence was achieved or not by the "converged" flag returned by the solve function).


Best regards,

Yves



Le 06/07/2023 à 14:09, David Danan a écrit :
Dear getfem-users,

My issue is quite straightforward.
I am using Getfem to solve nonlinear problems and i would like to retrieve the solution at each step of the Newton method, not only the solution obtained at the convergence of the algorithm.

Is such a thing even possible using the python interface?
Another alternative would be to implement one's own newton solver in python while relying on the model methods to extract the tangent matrix/rhs.
Is it the correct approach or is there a better way to do it?

Kind regards,
David.

Reply via email to