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?
Thanks in advance, Eduardo
