[petsc-users] TS shallow reset

Mark Adams mfadams at lbl.gov
Tue Jan 7 08:27:10 CST 2020


I would like to do a parameters study with a TS solve and want to put
TSSolve in a loop. I save the initial conditions in a Vec and copy that
into the solution vector after each solve, to get ready for the next one.
But, TS does not seem to do anything on the second solve. I guess it thinks
it is converged. Is there a way to reset the solver without redoing the
whole TS?

Maybe set the step number and TSSetConvergedReason?

Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200107/757e929a/attachment.html>


More information about the petsc-users mailing list