[petsc-users] KSPBuildSolution

Jed Brown jed at 59A2.org
Wed Feb 16 08:23:42 CST 2011


On Wed, Feb 16, 2011 at 15:17, Juha Jäykkä <juhaj at iki.fi> wrote:

> even
> though the eventual solution returned by SNESSolve() is correct.
>

SNESSolve uses a Newton method so the linear system is being solving for a
defect. If the initial guess is zero, then it would normally pick up your
Dirichlet boundary conditions on the first iteration and all subsequent
solves would have zero in those locations.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110216/9fc90077/attachment-0001.htm>


More information about the petsc-users mailing list