[petsc-users] KSP Solver Initial Non Zero Guess

Anthony Vergottis a.vergottis at gmail.com
Mon Jun 17 11:37:28 CDT 2013


Dear All,

If I am solving a linear system uses the KSP solver context i.e. *ierr =
KSPSolve(ksp,RHS,**Solution**);* and I require an non zero initial guess
for the system is it sufficient to call *ierr =
KSPSetInitialGuessNonzero(ksp,nonzeroguess);* and supply the vector
*Solution* with the values I require? will the initial non zero guess be
taken as the values I specified in the vector *Solution*? or is there
something else that must be done to achieve this?

Just need to make sure of this. Thanks in advance for any help.

Regards,
Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130617/a92e2281/attachment.html>


More information about the petsc-users mailing list