<div dir="ltr"><div dir="ltr">On Thu, Sep 17, 2020 at 12:00 PM Adolfo Rodriguez <<a href="mailto:adantra@gmail.com">adantra@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">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.</div></blockquote><div><br></div><div>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.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Regards,</div><div><br></div><div>Adolfo</div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>