[petsc-users] Initial guess for the GMRES solver in PETSC

Dave May dave.mayhem23 at gmail.com
Fri Nov 5 02:54:15 CDT 2010


Or you can specify this directly in your code.
See
http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/KSP/KSPSetInitialGuessNonzero.html

Cheers,
  Dave


On 5 November 2010 07:11, Aron Ahmadia <aron.ahmadia at kaust.edu.sa> wrote:
> Hi Jinshan,
>
> You can pass your initial guess in to the KSP object as X, then at the
> command line set the flag:
>
> -ksp_initial_guess_nonzero
>
> Happy Computing,
> Aron
>
> On Fri, Nov 5, 2010 at 8:41 AM, jinshan wu <wujinshan at yahoo.com> wrote:
>> Hi all,
>>
>> I am using the GMRES linear solver in PETSC. I have a very good initial guess of
>> the true solution. Can I somehow supply it to the solver? It should help the
>> solver speed up the convergence if I can do that. Thanks.
>>
>> Jinshan
>>
>>
>>
>>
>


More information about the petsc-users mailing list