In order to solve a set of Navier-Stokes equations, I am trying to implement within PETSc a modified version of Newton’s method which theoretically converges faster (cubic instead of quadratic). I was wondering about what the cleanest way to achieve this is, ideally I would only like to touch the SNES object associated to the non-linear variational solver (and its method solve() in particular). I would appreciate any help in doing this.
Hello @dokken,
Thanks for your answer. I am talking about DOLFINx, sorry I should have been more precise. However, with respect to the link you sent, I would need to change the Newton step at every iteration.
Then this is a pure PETSc/Snes question right?
You could use the DOLFINx Newton solver, and add hooks into that, but I guess that is not what you want either.