Dear All,

I want to turn off checking the convergence in SNES actually when the KSP
did not convergence due to low number of subspaces. I did the following:

PetscErrorCode solver::SNESConvTest( SNES snes, PetscInt it, PetscReal xn,
PetscReal gn, PetscReal f, SNESConvergedReason* res, void* ctx)
{
    *res =  SNES_CONVERGED_ITERATING;
    PetscFunctionReturn( 0 );
}

but I still receives the stopping alert:

Linear solve did not converge due to DIVERGED_ITS iterations 30
Nonlinear solve did not converge due to DIVERGED_LINEAR_SOLVE

Then what is the proper way?

Regards,
BehZad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120430/f43c412f/attachment.htm>

Reply via email to