Eduardo <[email protected]> writes:

> I need to update some state variables in my application at the end of each
> Newton method iteration. Can I do that inside the routine to compute the
> nonlinear function or the routine to compute the Jacobian? Can I assume
> that one (or both) these routines are called only once per Newton iteration?

The function can be called several times during a line search, but you
probably should be updating the state variables there too.  If you
really only want to update after the line search completes (so the
solution could be incompatible with the state variables), you can use
SNESLineSearchSetPostCheck.

Attachment: pgptPMKR06ymP.pgp
Description: PGP signature

Reply via email to