[petsc-users] `snes+ksponly` did not update the solution when ksp failed.

Zongze Yang yangzongze at gmail.com
Mon Mar 20 01:40:51 CDT 2023


Hi,

Hope this email finds you well. I am using firedrake to solve linear
problems, which use SNES with KSPONLY.

I found that the solution did not update when the `ksp` failed with
DIVERGED_ITS.
The macro `SNESCheckKSPSolve` called in `SNESSolve_KSPONLY` make it return
before the solution is updated.

Is this behavior as expected? Can I just increase the value of
`maxLinearSolveFailures`
to make the solution updated without introducing other side effects?

Best wishes,
Zongze
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230320/fad13780/attachment.html>


More information about the petsc-users mailing list