[petsc-dev] SNESLineSearchSetPostCheck not being called in petsc 3.1-p8

Matthew Knepley knepley at gmail.com
Tue Jun 7 17:49:10 CDT 2011


On Tue, Jun 7, 2011 at 5:30 PM, David Andrs <David.Andrs at inl.gov> wrote:

>
> Hi all!
>
> I'm trying to hook my custom callback when using SNES using
> SNESLineSearchSetPostCheck and it seems to me that this callback is not
> being called. I based my test case on top of example 3 in
> src/snes/examples/tutorials. I put a print statement into both PreCheck and
> PostCheck function, but I do not see them in my output. Is this example
> obsolete in 3.1 and there is a new way how to do it or am I doing it wrong?
>

This works for me. Can you send a small example that fails?

  Thanks,

     Matt


> Thanks for your help,
> --
> David Andrs
>



-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110607/56e9f4c2/attachment.html>


More information about the petsc-dev mailing list