[petsc-users] Hypre through Petsc: BoomerAMG options

Jed Brown jedbrown at mcs.anl.gov
Wed Aug 29 10:08:30 CDT 2012


On Wed, Aug 29, 2012 at 9:59 AM, Arun Kamath <arun.kamath.m at gmail.com>wrote:

> Hei!
> I was going through the Petsc user archives when I came across a
> discussion with Barry Smith regarding use of BoomerAMG through Petsc
> (http://lists.mcs.anl.gov/pipermail/petsc-users/2006-October/000692.html).
>
> What I did understand from that is some of the Hypre options cannot
> be accessed through Petsc. But options like Pilut are available as
> preconditioners or solvers depnding on ksptype.
> I am trying to use ILU smoothening to BoomerAMG (Hypre's manual lists the
> smoothers available and the function calls).
>

HYPRE_BoomerAMGSetRelaxType, which is the relevant routine, does not
support ILU. Hypre does not have an extensible system for smoothing so you
can't add new smoothers without changing their library.


> The questions that remain after going through that discussion are:
>
> 1.  Can a smoothening option in hypre's boomerAMG could be chosen at all
> using Petsc?
>

-pc_hypre_boomeramg_relax_type_all (or up/down)


>
> 2.  Could the function calls phrases used in Hypre itself be somehow
> employed in the Petsc code?
>

I don't know what you are asking for.


>
>
> Would be really grateful for any advice. Since I am using an IDE to build
> the code, non-command line option tricks would also be of great help.
>

You can set command line options with PetscOptionsSetValue(), but this is a
slow way to experiment. I thought the purpose of an IDE was to make you
more productive. Recompiling every time you change the solver is a good way
to greatly reduce your productivity. Also, hard-coding configurations is a
good way to make your software less useful later.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120829/3cbdfba4/attachment-0001.html>


More information about the petsc-users mailing list