[petsc-users] Custom line search for predictor-corrector

Jed Brown jed at jedbrown.org
Wed Nov 19 23:17:10 CST 2014


Harshad Sahasrabudhe <hsahasra at purdue.edu> writes:

> Hi,
>
> I want to implement a Predictor-Corrector algorithm for solving a coupled
> Schrödinger-Poisson system using SNES. I can calculate the next step using
> my predictor algorithm and don't want PETSc to calculate the next step. I
> only need PETSc to check for convergence. What is the best way to implement
> this?

Probably SNESLineSearchRegister your implementation.  The Newton solve
gives a correction and you can follow it with anything you want.
-------------- 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/20141119/cc1e312a/attachment.pgp>


More information about the petsc-users mailing list