[petsc-users] Setting initial guess for KSP solver
Jed Brown
jedbrown at mcs.anl.gov
Wed Sep 26 19:36:43 CDT 2012
On Wed, Sep 26, 2012 at 7:33 PM, Jinquan Zhong <jzhong at scsolutions.com>wrote:
> PetscErrorCode KSPSetInitialGuessNonzero(KSP ksp,PetscBool flg)*
> ***
>
> ****
>
> does not provide the option to input x0 though.
>
It causes the vector X that you pass to KSPSolve to be used as the initial
guess. Did you read the man page?
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/KSP/KSPSetInitialGuessNonzero.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120926/1e774627/attachment.html>
More information about the petsc-users
mailing list