[petsc-users] How to skip checking in SNES

Matthew Knepley knepley at gmail.com
Mon Apr 30 05:08:01 CDT 2012


On Mon, Apr 30, 2012 at 3:09 AM, behzad baghapour <
behzad.baghapour at gmail.com> wrote:

> 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:\
>

http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/SNES/SNESSetMaxLinearSolveFailures.html

   Matt


> 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
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120430/a2a958a7/attachment.htm>


More information about the petsc-users mailing list