[petsc-users] Is there a way to print out the nonzero structure of a matrix?

Mohammad Mirzadeh mirzadeh at gmail.com
Sun Jul 31 02:59:31 CDT 2011


if you dump the matrix in a file, you can use the spy() command of MATLAB.

Mohammad

On Sat, Jul 30, 2011 at 6:01 PM, Matthew Knepley <knepley at gmail.com> wrote:

> On Sat, Jul 30, 2011 at 11:44 PM, Xuefei (Rebecca) Yuan <xyuan at lbl.gov>wrote:
>
>> Hello,
>>
>> I would like to print out the nonzero structure of the analytic Jacobian
>> through PETSc, is there any example on that?
>>
>
> -mat_view_draw?
>
>    Matt
>
>
>> Thanks very much!
>>
>> Xuefei (Rebecca) Yuan
>> Postdoctoral Fellow
>> Lawrence Berkeley National Laboratory
>> Tel: 1-510-486-7031
>>
>>
>>
>
>
> --
> 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/20110731/860d7d66/attachment.htm>


More information about the petsc-users mailing list