Re: [petsc-users] Solving singular system via direct solvers

2022-07-12 Thread Matthew Knepley
On Tue, Jul 12, 2022 at 4:34 AM Ye Changqing wrote: > Dear all, > > I have a linear system constructed from discretizing a Neumann boundary > value problem, and I want to solve it with a direct solver (to build up my > own preconditioner). Usually, KSP returns a good solution without '-inf', > wh

Re: [petsc-users] Solving singular system via direct solvers

2022-07-12 Thread Jose E. Roman
The interface functions are https://petsc.org/release/docs/manualpages/PC/PCFactorSetShiftType.html https://petsc.org/release/docs/manualpages/PC/PCFactorSetShiftAmount.html To check for success you can use https://petsc.org/release/docs/manualpages/KSP/KSPGetConvergedReason.html You can also us

[petsc-users] Solving singular system via direct solvers

2022-07-12 Thread Ye Changqing
Dear all, I have a linear system constructed from discretizing a Neumann boundary value problem, and I want to solve it with a direct solver (to build up my own preconditioner). Usually, KSP returns a good solution without '-inf', while sometimes it fails. I referred to the corresponding chapte