[petsc-users] MatView and complex matrices

Torquil Macdonald Sørensen torquil at gmail.com
Tue Apr 1 07:18:49 CDT 2014


Hi!

Using Petsc 3.4.4, compiled to support complex numbers, I'm getting a
completely white figure when plotting a matrix with purely imaginary
elements, using MatView(mat, PETSC_VIEWER_DRAW_WORLD). So I cannot see the
nonzero structure from the plot.

For real matrices (still using the complex-enabled Petsc), I'm getting red
and blue points corresponding to positive and negative elements.

Is it possible to get Petsc to show the nonzero elements of a complex
matrix, by checking the absolute values of each element?

Best regards
Torquil Sørensen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140401/431f40f0/attachment.html>


More information about the petsc-users mailing list