Re: [petsc-users] snes true and preconditioned residuals for left npc

2016-07-06 Thread Barry Smith
> On Jul 6, 2016, at 12:17 PM, Xiangdong wrote: > > Hello everyone, > > I am using snes_type aspin, which is actually newtonls + npc (nasm). After > each newton iteration, if I call SNESGetFunction, the preconditioned residual > is obtained. However, if I use SNESComputeFunction, I get the t

[petsc-users] snes true and preconditioned residuals for left npc

2016-07-06 Thread Xiangdong
Hello everyone, I am using snes_type aspin, which is actually newtonls + npc (nasm). After each newton iteration, if I call SNESGetFunction, the preconditioned residual is obtained. However, if I use SNESComputeFunction, I get the true (unpreconditioned) residual. If I want to know the precondit