dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #01005
Re: Stokes in DOLFIN
On Thu, Sep 22, 2005 at 01:59:33PM -0500, Andy Ray Terrel wrote:
> Anders Logg wrote:
>
> >>For the linear algebra we have Petsc + Hypre giving access to a range of
> >>parallel Krylov based solvers plus algebraic multigrid.
> >
> >Yes. One thing we should do is to find out how to specify AMG as a
> >preconditioner without having to do it through the command-line with
> >-pc_type hypre -pc_hypre_type boomeramg.
> >
> This isn't so painful, just use
>
> PCSetType(PC pc, PCHYPRE );
> PCHYPRESetType(PC pc,"boomeramg");
>
> Inside your code with the right PC and what not. Other options can be
> set with PetscOptionSetValue() calls.
>
> Andy
Thanks Andy for pointing this out. This should go into the parameter
system, so one can do
GMRES gmres;
gmres.set("preconditioner", "hypre amg");
or something like it.
/Anders
References