[petsc-users] snes linesearch bt vs basic?

Jed Brown jed at jedbrown.org
Mon Feb 1 16:36:13 CST 2016


Xiangdong <epscodes at gmail.com> writes:

> It seems that TSAdaptChoose_Basic only uses the local truncation error to
> predict the next time step. Do you also include the number of snes
> iterations in computing the next time step in some adapt option?

TSAdaptChoose_Basic doesn't use the number of iterations (you can set
your own callback for whatever policy you want), but TSAdaptCheckStage
handles SNES failures and you can set a max number of SNES iterations.
(This could be less efficient than a progressive function that gradually
reduces time step as the number of iterations increases.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160201/0f4168e5/attachment.pgp>


More information about the petsc-users mailing list