[petsc-dev] How to get the initial residual when using the adaptive time step scheme

Jed Brown jed at jedbrown.org
Wed Sep 17 12:31:22 CDT 2014


Lulu Liu <lulu.liu at kaust.edu.sa> writes:

> Using the TS solver, I want to create my own adaptive time step scheme, and
> I need the initial residual to build the adaptive time step in the function
> TSAdaptChoose_XXXX(). How to do it?

You could use SNESGetConvergenceHistory()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140917/a5de5fb4/attachment.sig>


More information about the petsc-dev mailing list