getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieving the solution at each step of the Newton algorithm


From: Renard Yves
Subject: Re: Retrieving the solution at each step of the Newton algorithm
Date: Fri, 7 Jul 2023 09:13:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

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

[Prev in Thread] Current Thread [Next in Thread]