[petsc-users] How to change KSP tolerance during SNES steps

Hong Zhang hzhang at mcs.anl.gov
Thu Apr 26 09:27:00 CDT 2012


behzad :

>
> I set SNES with -snes_ksp_ew to solve the system with inexact method. I
> want to reset the SNES into exact Newton with changing the KSP rtol at
> final iterations (in full Newton phase). How can I reset the KSP tolerance
> after specific iterations of SNES?
>
You can use SNESMonitorSet() and write your own monitor function to do this:
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESMonitorSet.html


Hong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120426/78f1c8ed/attachment.htm>


More information about the petsc-users mailing list