using hypre through petsc

Barry Smith bsmith at mcs.anl.gov
Tue Sep 19 21:40:04 CDT 2006


  Matt,

   hypre has a big set of options, we have not written a function
call interface for all of the options. {humm, could we automate this?}
If you wish to do it in the program use the 
PetscOptionsSetValue() routine to add it to the options database
before you set the type to hypre.

   Barry


On Tue, 19 Sep 2006, Matt Funk wrote:

> Thanks for the answer.
> 
> now, when i want to change some of the values, what kind of function do i call 
> to do this? (I cannot seem to find any in the manual pages. And I'd much 
> rather set the option in the code rather than on the command line)
> 
> mat
> 
> On Tuesday 19 September 2006 17:05, Yaron Kretchmer wrote:
> > Hi Matt
> > You can start experimenting by using
> > -pc_type hypre -pc_hypre_type boomeramg -help
> > which will give you all the boomeramg options.
> >
> > When I use it I get intermittent segfaults, which I couldn't resolve with
> > the Hypre guys, so good luck.
> >
> > Yaron
> >
> > On 9/19/06, Matt Funk <mafunk at nmsu.edu> wrote:
> > > Hi,
> > >
> > > i am trying to use boomeramg from hypre in petsc. What i am doing right
> > > now is
> > > simply do:
> > >
> > > m_ierr = PCSetType(m_pc,PCHYPRE);//CHKERRQ(ierr)
> > > m_ierr = PCHYPRESetType(m_pc,"boomeramg");
> > >
> > > then i do my kspsetup etc...
> > >
> > > i was wondering what other things i need to configure/set to properly use
> > > the
> > > hypre preconditioner with petsc. This is new to me, so i am not really
> > > experienced with this (that is using external packages through petsc).
> > > Also,
> > > these are the only hypre calls i found in the manual pages.
> > >
> > > Maybe somebody with more experience can share some of their wisdom ...,
> > > or point to a place where i can read up on it?
> > >
> > >
> > > thanks
> > > mat
> 
> 




More information about the petsc-users mailing list