[petsc-users] how to visualize the matordering?

Klaij, Christiaan C.Klaij at marin.nl
Tue Sep 10 06:36:07 CDT 2024


I'm saving a petsc mat to file and loading it into python to make a spy plot of its sparsity pattern, so far so good. 

Now I would like to compare with a reordened pattern, say rcm. I've notice the option -mat_view_ordering draw, but do not have X Windows on this machine. What is the recommended way to get the reordened matrix for inspection?

Chris
dr. ir. Christiaan Klaij
 | Senior Researcher | Research & Development
T +31 317 49 33 44 |  C.Klaij at marin.nl | https://urldefense.us/v3/__http://www.marin.nl__;!!G_uCfscf7eWS!ZlpBqrxu1xOtAsOWM9zgbuOyULFV7FmZJfrJqgSnScyCr8z-tfyvuf3b2aXiy8qER3gQEm4Qu44oMudMz-xqPtY$ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240910/9232995e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image859244.png
Type: image/png
Size: 5004 bytes
Desc: image859244.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240910/9232995e/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image612326.png
Type: image/png
Size: 487 bytes
Desc: image612326.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240910/9232995e/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image769878.png
Type: image/png
Size: 504 bytes
Desc: image769878.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240910/9232995e/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image635531.png
Type: image/png
Size: 482 bytes
Desc: image635531.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240910/9232995e/attachment-0003.png>


More information about the petsc-users mailing list