[petsc-users] PetscOptionsSetValue

Matthew Knepley knepley at gmail.com
Thu Mar 24 15:35:07 CDT 2011


On Thu, Mar 24, 2011 at 3:23 PM, Verena Kuhlemann <vkuhlem at emory.edu> wrote:

>    Hello!
>
> I am trying to set some options with PetscOptionsSetValue. In particular,
> I want to set some options for the pilut preconditioner in hypre.
> Here is how I trying to set the factor row size:
>
>    ierr = PCSetType(subpc, PCHYPRE);CHKERRQ(ierr);
>    ierr = PCHYPRESetType(subpc,"pilut");CHKERRQ(ierr);
>    ierr =
> PetscOptionsSetValue("-pc_hypre_pilut_factorrowsize","10");CHKERRQ(ierr);
>

Your code suggests it should be -sub_pc_hypre_pilut_factorrowsize. Why would
you use
pilut on a subpc?

  Thanks,

     Matt


>   ierr = PCSetFromOptions(subpc);CHKERRQ(ierr);
>
> Unfortunately, this does not seem to work. I get a warning that the option
> -pc_hypre_pilut_factorrowsize
> was not used.
>
> I would be thankful for any help.
>
> Thanks,
> Verena
>



-- 
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/20110324/a07c6407/attachment.htm>


More information about the petsc-users mailing list