how to get the explicit matrix of the preconditioner

Matthew Knepley knepley at gmail.com
Mon Apr 28 11:09:25 CDT 2008


On Mon, Apr 28, 2008 at 10:48 AM, Yujie <recrusader at gmail.com> wrote:
> Thank you, Dave. I am wondering whether this function is ok to external
> packages, such as Hypre? thanks a lot.

Yes, since it just calls PCApply() for each basis vector.

  Matt

> Regards,
> Yujie
>
> On 4/28/08, Dave May <dave.mayhem23 at gmail.com> wrote:
> > Hi,
> >   You can use PetscErrorCode PCComputeExplicitOperator(PC pc,Mat *mat)
> >
> > See,
> >
> http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/PC/PCComputeExplicitOperator.html
> >
> >
> >
> >
> >
> > On Mon, Apr 28, 2008 at 8:19 AM, Yujie <recrusader at gmail.com> wrote:
> >
> > > Hi, everyone
> > >
> > > How to get the matrix "M_{L}^{-1}" in "M_{L}^{-1}Ax=M_{L}^{-1}b". I have
> checked the function "PCGetOperators()". It only gets the matrix "pmat" used
> to obtain the preconditioning matrix. thanks a lot.
> > >
> > > Regards,
> > > Yujie
> > >
> > >
> > >
> > >
> >
> >
>
>



-- 
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




More information about the petsc-users mailing list