[petsc-users] Question about changing time step during calculation

Zhang, Hong hongzhang at anl.gov
Sun Nov 17 17:32:26 CST 2019


TSSetTimeStep()

https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/TS/TSSetTimeStep.html#TSSetTimeStep

If you want to decide the step size by yourself, make sure that the adaptivity is turned off, e.g., with -ts_adapt_type none

Btw, have you tried the available TSAdapt types? Is there anything special in your problems so that none of these adaptors works?

Hong (Mr.)

On Nov 17, 2019, at 9:25 AM, Yingjie Wu via petsc-users <petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>> wrote:

Dear Petsc developers
Hi,
Recently I am trying to using TS to solve time-dependent nonlinear PDEs. In my program, next time step is based on the results of previous time step. I want to add this control in TSmonitor() to change time step length in calculation. I referred to user guide but I didn't find what I wanted. Please give me some advice.

Thanks,
Yingjie

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191117/ee90d5fe/attachment.html>


More information about the petsc-users mailing list