[petsc-users] The method of print the preconditioned matrix
Matthew Knepley
knepley at gmail.com
Wed May 19 08:15:50 CDT 2021
On Wed, May 19, 2021 at 8:36 AM 杨念 <yangnian at hnu.edu.cn> wrote:
> Dear Sir or Madam:
>
>
>
> Hello, I am a new PETSc learner. I'm having some problem with it and I'm
> using version 3.6.3 of PETSc. I can only print out the Jacobi matrix (J)
> with -mat_view from the command line, but I also need to print out the
> preconditioning operator (M^(-1)) or the preconditioned matrix (JM^(-1)).
> Is there a function like that in PETSC? Could you please give me some
> suggestions? Thank you so much.
>
I think you want
https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCComputeOperator.html
Thanks,
Matt
>
>
> Best regards,
>
>
>
> Nian Yang
>
--
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
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210519/a310f6e3/attachment.html>
More information about the petsc-users
mailing list