[petsc-users] Setting absolute tolerance on ksp solver

Amal Sahai amalsahai at gmail.com
Tue Sep 8 22:38:04 CDT 2015


I have been setting the tolerance for a ksp solver using KSPSetTolerances.
I would like to set my convergence criteria using only the absolute
convergence parameter. I use the following command to set this up:

KSPSetTolerances( ksp, PETSC_DEFAULT, atol, PETSC_DEFAULT, maxits)

The problem is my ksp solver considers only the value of rtol while
stopping the iterative solve. I tried changing the value of rtol to some
other parameter instead of PETSC_DEFAULT (while making sure that atol is
the more stringent condition requiring more iterations) but to no avail.

How can I fix this?

Regards
Amal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150908/96c0d50d/attachment.html>


More information about the petsc-users mailing list