[petsc-users] Solve ODE in backward in time

Oleksandr Koshkarov olk548 at usask.ca
Tue Jan 8 23:40:25 CST 2019


Well, it is possible of course, but I thought petsc just has a simple 
switch. It looks like it does not

Thank you,

Oleksandr.

On 1/6/19 8:02 PM, Jed Brown wrote:
> 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