[petsc-users] Overhead in snes function calls

Matthew Knepley knepley at gmail.com
Thu Sep 17 12:05:00 CDT 2020


On Thu, Sep 17, 2020 at 12:00 PM Adolfo Rodriguez <adantra at gmail.com> wrote:

> I am porting a non-linear solution problem implemented explicitly to an
> snes implementation. Everything seems to be working fine, except for the
> fact that function calls done from snes to my jacobian and residual
> construction subroutines are slower than the regular direct call to the
> same subroutines (I hope this is clear). I wonder if somebody have observed
> this behavior and found a solution.
>

It is not quite clear. I do not see a way that the calls themselves are
slower, but perhaps there are intervening computations? How are you timing
things.

  Thanks,

     Matt


> Regards,
>
> Adolfo
>


-- 
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

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200917/488840b5/attachment.html>


More information about the petsc-users mailing list