[petsc-users] Does PetscLogEventBegin and PetscLogEventEnd slow down the code if it's called every time step?

Matthew Knepley knepley at gmail.com
Sun Apr 21 08:43:04 CDT 2019


On Sun, Apr 21, 2019 at 9:28 AM TAY wee-beng via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Hi,
>
> I'm trying to do some logging as well as timing of my code?
>
> May I know if PetscLogEventBegin and PetscLogEventEnd slow down my code if
> it's called every time step?
>
At the granularity of a timestep should not be a problem. At the
granularity of every entry in a Jacobian, it could
be a problem.

  Thanks,

     MAtt

> --
>
> Thank you very much.
>
> Yours sincerely,
>
> ================================================
> TAY Wee-Beng 郑伟明 (Zheng Weiming)
> Personal research webpage: *http://tayweebeng.wixsite.com/website
> <http://tayweebeng.wixsite.com/website>*
> Youtube research showcase: *https://goo.gl/PtvdwQ <https://goo.gl/PtvdwQ>*
> linkedin: *https://www.linkedin.com/in/tay-weebeng
> <https://www.linkedin.com/in/tay-weebeng>*
> ================================================
>


-- 
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/20190421/19244cfb/attachment.html>


More information about the petsc-users mailing list