[petsc-users] Hypre through Petsc: BoomerAMG options
Matthew Knepley
knepley at gmail.com
Thu Aug 30 11:54:44 CDT 2012
On Thu, Aug 30, 2012 at 11:49 AM, Arun Kamath <arun.kamath.m at gmail.com>wrote:
> Ok.. but as I follow it up with :
> ierr=PCSetFromOptions(pc);
> ierr=
> PetscOptionsSetValue("-pc_hypre_boomeramg_relax_type_all","0");
> CHKERRQ(ierr); ,
>
1) Form the code you would do
ierr= PetscOptionsSetValue("-pc_hypre_boomeramg_relax_type_all","0");
CHKERRQ(ierr); ,
ierr=PCSetFromOptions(pc);
2) Why would you do that? I thought you were going to use an options file
as Barry suggested?
Matt
on execution, the option is not recognized, as in:
>
> WARNING! There are options you set that were not used!
> WARNING! could be spelling mistake, etc!
> Option left: name:-pc_hypre_boomeramg_relax_type_all value: 0
>
> is returned.
>
> I used the value of zero to employ the Jacobi smoother defined in the
> Hypre Ref manual.
>
> So could you please let me know what could I do make it work?
> (Since I want to access all solvers and options through a 'control'/
> 'config' file, I can't ask for the option at the the command prompt )
> Thanks.
>
>
>
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120830/dc1c744f/attachment.html>
More information about the petsc-users
mailing list