> On Jul 22, 2018, at 4:31 PM, zakaryah <[email protected]> wrote: > > OK, thanks, I understand now. > > FormJacobian() has two matrices as arguments, the Jacobian Amat and the > preconditioner Pmat, which may be the same. My FormJacobian() routine sets > the values of the Jacobian in Pmat. So, to calculate the effective nullspace > of the submatrix, What "submatrix" are you referring to? Are you calling Pmat a submatrix?, if so why? Is b then here the zero vector? > I want to solve Pmat u = b. To do this within FormJacobian(), can I assemble > Pmat, call SNESGetKSP(snes,&ksp), and then KSPSolve(ksp,b,u)? Is it safe to > assume that the KSP matrix is Pmat? > > The KSPSolve used by SNES solves Amat delta u = -F(u) building the preconditioner from the matrix Pmat. >
- Re: [petsc-users] Implementing a homotopy solver zakaryah
- Re: [petsc-users] Implementing a homotopy solver Smith, Barry F.
- Re: [petsc-users] Implementing a homotopy solver Lawrence Mitchell
- Re: [petsc-users] Implementing a homotopy solve... zakaryah
- Re: [petsc-users] Implementing a homotopy solve... Matthew Knepley
- Re: [petsc-users] Implementing a homotopy s... zakaryah
- Re: [petsc-users] Implementing a homoto... Matthew Knepley
- Re: [petsc-users] Implementing a homoto... zakaryah
- Re: [petsc-users] Implementing a homoto... Matthew Knepley
- [petsc-users] Fwd: Implementing a homo... zakaryah
- Re: [petsc-users] Fwd: Implementing a ... Smith, Barry F.
- Re: [petsc-users] Fwd: Implementing a h... zakaryah
- Re: [petsc-users] Fwd: Implementing a h... zakaryah
- Re: [petsc-users] Fwd: Implementing a h... Matthew Knepley
- Re: [petsc-users] Fwd: Implementing a h... zakaryah
- Re: [petsc-users] Fwd: Implementing a h... Matthew Knepley
- Re: [petsc-users] Fwd: Implementing a h... Dave May
- Re: [petsc-users] Fwd: Implementing a h... zakaryah
- Re: [petsc-users] Fwd: Implementing a h... Matthew Knepley
- Re: [petsc-users] Fwd: Implementing a h... zakaryah
- Re: [petsc-users] Fwd: Implementing a h... Matthew Knepley
