<div class="gmail_quote">On Wed, Nov 23, 2011 at 00:55, behzad baghapour <span dir="ltr"><<a href="mailto:behzad.baghapour@gmail.com">behzad.baghapour@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
These are state variables which I solve them by KSP and iterate with a full Newton method. I though if I point the values of defined FieldCtx to my field state then the routines of residual and jacobian my progressively call them in SNES solution. Is that wrong ? How should I do then ?</blockquote>
</div><br><div>The field variables go in the Vec. That is the state at which you need to evaluate the residual (and, optionally, the Jacobian). SNES does not ever look at what you put inside the context.</div>