[petsc-users] Solve ODE in backward in time

Jed Brown jed at jedbrown.org
Sun Jan 6 21:02:38 CST 2019


Is it a problem to do the change of variables in your problem definition?

"Koshkarov, Oleksandr via petsc-users" <petsc-users at mcs.anl.gov> writes:

> Hello all,
>
> Can TSSolve be used to solve ODE backward in time? for example from t=10 upto t=5 ? Google search reveals to use TSAdjointSolve, but by reading manual, It looks it is used for sensitivity analysis which I do not need. And I am not sure how to use it to just integrate ODE back in time. I tried to setup final time and/or time step to be negative without success.
>
> Thank you and Happy New Year,
>
> Oleksandr.


More information about the petsc-users mailing list