[petsc-users] KSPBuildSolution
Juha Jäykkä
juhaj at iki.fi
Wed Feb 16 09:18:43 CST 2011
> SNESSolve uses a Newton method so the linear system is being solving for a
So the "solution" in the KSP should actually be identically zero for a
converged result?
> 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.
It is not zero initially. But, on the other hand, it has zeros at both ends
even at the very first iteration. If I understood your reply correctly, this
would be expected for an initial guess which has correct values at the
boundaries and it should only pick them up on the first iteration if they were
not correct to begin with.
Having ruled out a possibility of a bug in KSP, I need to continue my hunt for
DIVERGED_LINEAR_SOLVE... None of the convergence tolerances seem to make any
difference, it always diverges. The funny thing is, it diverges even if I
start with an *exact* *solution*...
Cheers,
Juha
--
-----------------------------------------------
| Juha Jäykkä, juhaj at iki.fi |
| http://www.maths.leeds.ac.uk/~juhaj |
-----------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110216/6a83d9a6/attachment.pgp>
More information about the petsc-users
mailing list