On Tue, Oct 18, 2022 at 3:49 PM Alexis Marboeuf <alexis.marbo...@hotmail.fr> wrote:
> Dear Petsc Team, > I am using a TS object to integrate my equation in time. I set the final > time using TSSetMaxTime. My question is about a proper way to stop and > resume iterations at intermediate times inside the TSSolve. I would like to > stop when reaching exactly some given intermediate times, do some work > (writing my intermediate solution for example) and then resume iterations. > The easiest way to do this I think is to just set a monitor, which will tell you what time it is. Just check the time, and perform your action. Thanks, Matt > Thanks a lot for your time and your help. > Best, > Alexis > -- 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/>