Aron and Dave, thanks both of you a lot.
Jinshan Message: 6 Date: Fri, 5 Nov 2010 08:54:15 +0100 From: Dave May <[email protected]> Subject: Re: [petsc-users] Initial guess for the GMRES solver in PETSC To: PETSc users list <petsc-users at mcs.anl.gov> Message-ID: <AANLkTikzKoBnD9n+dkMrUmR3FUry_BhgEGFXO8cZJfk- at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 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 >> >> >> >> > ------------------------------ _______________________________________________ petsc-users mailing list petsc-users at mcs.anl.gov https://lists.mcs.anl.gov/mailman/listinfo/petsc-users End of petsc-users Digest, Vol 23, Issue 4 ******************************************
