[petsc-users] exit kspsolve at half of the max iterations if residual is not reduced by an order

Jed Brown jed at jedbrown.org
Tue Aug 28 17:39:47 CDT 2018


You can use any convergence test you want, see SNESSetConvergenceTest()
if tolerances don't cut it for you.  You might also consider nested
solvers/nonlinear preconditioning.

NAN ZHAO <zhaonanavril at gmail.com> writes:

> Dear all,
>
> I am trying to find ways to speed up my pests kspsolve, my old code use an
> older solver and it exit the solving loop when residual is not reduced by a
> certain amount compared with initial residual, and then redo the
> computation with other tricks. I am wondering if PETSC has this function.
>
> Thanks,
> Nan


More information about the petsc-users mailing list