[petsc-users] Setting initial guess for KSP solver

Jinquan Zhong jzhong at scsolutions.com
Wed Sep 26 19:33:24 CDT 2012


Jed,

        PetscErrorCode  KSPSetInitialGuessNonzero(KSP ksp,PetscBool  flg)

does not provide the option to input x0 though.

Jinquan


From: petsc-users-bounces at mcs.anl.gov [mailto:petsc-users-bounces at mcs.anl.gov] On Behalf Of Jed Brown
Sent: Wednesday, September 26, 2012 5:21 PM
To: PETSc users list
Subject: Re: [petsc-users] Setting initial guess for KSP solver

KSPSetInitialGuessNonzero()
On Wed, Sep 26, 2012 at 7:05 PM, Jinquan Zhong <jzhong at scsolutions.com<mailto:jzhong at scsolutions.com>> wrote:
Hi folks,

Is there a way to input my initial guess x0 into the KSP context before using KSPsolve() ?  I know exactly the initial guess x0 would be from other packages.  Do you have an example for that?

Thanks,

Jinquan

PS:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120927/b1206fb8/attachment.html>


More information about the petsc-users mailing list