http://www.mcs.anl.gov/petsc/documentation/faq.html#functionjacobian
On Fri, Feb 22, 2013 at 3:37 PM, Bernardo Rocha < bernardomartinsrocha at gmail.com> wrote: > Hi everyone, > > I?m using SNES to solve nonlinear problems in elasticity. I was wondering > if it is possible to configure SNES for calling a single function like > FormFunctionAndJacobian to compute the residual and jacobian at the same > time since this is the way I was doing before using SNES in my finite > element routines...An example would be a good starting point. > > Thanks, > Bernardo M. R. > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130222/766aec50/attachment.html>
