On Wed, Nov 23, 2011 at 00:55, behzad baghapour <behzad.baghapour at gmail.com>wrote:
> 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 ? 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111123/b6737352/attachment.htm>