On Fri, Sep 13, 2024 at 2:40 AM Klaij, Christiaan <c.kl...@marin.nl> wrote:
> Thanks Barry, that works fine. Any chance to access the reordered matrix > behind the plot? > You can make it with MatPermute(). Thanks, Matt > Chris > > ________________________________________ > From: Barry Smith <bsm...@petsc.dev> > Sent: Tuesday, September 10, 2024 3:09 PM > To: Klaij, Christiaan > Cc: petsc-users@mcs.anl.gov > Subject: Re: [petsc-users] how to visualize the matordering? > > You don't often get email from bsm...@petsc.dev. Learn why this is > important< > https://urldefense.us/v3/__https://aka.ms/LearnAboutSenderIdentification__;!!G_uCfscf7eWS!fbUhaFTo3vSK-SuD9ZJ8eCD-wcGaA2dp_iFxbwerHHOlCS7JVWRhadkbjdVxrrInqzkq9zYDYfR4UOeiWk_xAmk$ > > > > You can save the plot in an image file that does not require X. For > example > > -mat_view_ordering draw:image:filename > > Several image formats are available. > > > Barry > > > On Sep 10, 2024, at 7:36 AM, Klaij, Christiaan <c.kl...@marin.nl> wrote: > > 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 > <image859244.png> > dr. ir. Christiaan Klaij > | Senior Researcher | Research & Development > T +31 317 49 33 44<tel:+31%20317%2049%2033%2044> | > c.kl...@marin.nl<mailto:c.kl...@marin.nl> | > https://urldefense.us/v3/__http://www.marin.nl__;!!G_uCfscf7eWS!fbUhaFTo3vSK-SuD9ZJ8eCD-wcGaA2dp_iFxbwerHHOlCS7JVWRhadkbjdVxrrInqzkq9zYDYfR4UOeiAGVa6nA$ > < > https://urldefense.us/v3/__https://www.marin.nl/__;!!G_uCfscf7eWS!ZlpBqrxu1xOtAsOWM9zgbuOyULFV7FmZJfrJqgSnScyCr8z-tfyvuf3b2aXiy8qER3gQEm4Qu44oMudMb3ZvYBA$ > > > <image612326.png>< > https://urldefense.us/v3/__https://www.facebook.com/marin.wageningen__;!!G_uCfscf7eWS!ZlpBqrxu1xOtAsOWM9zgbuOyULFV7FmZJfrJqgSnScyCr8z-tfyvuf3b2aXiy8qER3gQEm4Qu44oMudMrq6nsrQ$ > > > <image769878.png>< > https://urldefense.us/v3/__https://www.linkedin.com/company/marin__;!!G_uCfscf7eWS!ZlpBqrxu1xOtAsOWM9zgbuOyULFV7FmZJfrJqgSnScyCr8z-tfyvuf3b2aXiy8qER3gQEm4Qu44oMudMuNr3Ucw$ > > > <image635531.png>< > https://urldefense.us/v3/__https://www.youtube.com/marinmultimedia__;!!G_uCfscf7eWS!ZlpBqrxu1xOtAsOWM9zgbuOyULFV7FmZJfrJqgSnScyCr8z-tfyvuf3b2aXiy8qER3gQEm4Qu44oMudMadib6bE$ > > > > -- 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://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!cqVEpFXzlZDy9mxC3QVCfvcTsImy_ZZq-sc3ewVbiGF-PD6JhuYL6Yonrh06ghc5fTXhH0dOYpci2Sb8_vJr$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!cqVEpFXzlZDy9mxC3QVCfvcTsImy_ZZq-sc3ewVbiGF-PD6JhuYL6Yonrh06ghc5fTXhH0dOYpci2SJYqs43$ >