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 <[email protected]> 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
