<div dir="ltr"><div dir="ltr">On Wed, Dec 4, 2019 at 3:48 AM Eda Oktay <<a href="mailto:eda.oktay@metu.edu.tr">eda.oktay@metu.edu.tr</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello all,<div><br></div><div>I am partitioning some graphs and I need to visualize them. I was wondering if I can do it in PETSc. I know that there is some Draw routines but most of them are for line graphs. ı didn't use PETSc for drawing before so I don't know how and what to do.</div></div></blockquote><div><br></div><div>If it is 2D, we have a very simple X drawing with -dm_view draw, but for anything complicated you want either VTK or HDF5 output. If you</div><div>use HDF5, then you run lib/petsc/bin/petsc_gen_xmdf.py mesh.h5 to get XDMF and then load that in ParaView.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thanks!</div><div><br></div><div>Eda</div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>