[petsc-users] About the initial guess for KSP method.
Xiaodong Liu
xliu29 at ncsu.edu
Mon Mar 16 15:31:25 CDT 2020
Hi, all,
I am testing KSPSetInitialGuessNonzero using the case
https://www.mcs.anl.gov/petsc/petsc-current/src/ksp/ksp/examples/tutorials/ex50.c.html
This case is special. WIth zero initial guess, 1 iteration can deliver the
exact solution. But when I tried true for KSPSetInitialGuessNonzero, it
shows the same convergence history as false.
Does the code change KSPSetInitialGuessNonzero to false automatically?
Take care.
Thanks,
Xiaodong Liu, PhD
X: Computational Physics Division
Los Alamos National Laboratory
P.O. Box 1663,
Los Alamos, NM 87544
505-709-0534
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200316/6b53ca62/attachment.html>
More information about the petsc-users
mailing list