On Aug 5, 2011, at 10:43 AM, Ataollah Mesgarnejad wrote:

> Dear all,
> 
> I use KSPSetInitialGuessNonzero for my KSP solver and it works perfectly. But 
> when I restart my computations (I read petsc binaries and set up my fields) 
> the first KSP solve takes forever. I guess my question is: is there a way to 
> set the initial guess for KSP back to where it was before termination (i.e. 
> write the KSP out) or set it to be a predefined vector?
> 
> Thanks,
> Ata

   There isn't a way automatically with the KSP. But why not save the last 
solution to the binary file and read it in at restart and put it into x before 
your first new KSPSolve?

   Barry

Reply via email to