[petsc-users] TS Time Derivative after solved step

Mark Adams mfadams at lbl.gov
Mon May 16 11:47:47 CDT 2022


You generally want to use
https://petsc.org/main/docs/manualpages/TS/TSMonitorSet/ for something like
this.
TSSetPostStep is for diagnostics.
There are differences between the two but I don't recall them.

And you can get the timer derivative with
https://petsc.org/release/docs/manualpages/TS/TS2GetSolution.html



On Mon, May 16, 2022 at 11:03 AM Karol Lewandowski <
Karol.Lewandowski at glasgow.ac.uk> wrote:

> Hi, I am developing a program for solving a time-dependent problem using TS solver. At some point, after a successful step, I would like to compute the error indicator which involves time derivatives. I tried to use routines like TSSetPostStep(), however, they do not give me access to vector ts_u_t.
>
> Is there a way to compute the post-step time derivative without copying the vectors (like ts_u_t, ts_u_tt) at each step?
>
>
> Kind regards,
>
>
> Karol
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220516/641a8904/attachment.html>


More information about the petsc-users mailing list