[petsc-users] Drawing partitioned graphs via PETSc

Matthew Knepley knepley at gmail.com
Wed Dec 4 06:05:59 CST 2019

On Wed, Dec 4, 2019 at 3:48 AM Eda Oktay <eda.oktay at metu.edu.tr> wrote:

> Hello all,
> 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.

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
use HDF5, then you run lib/petsc/bin/petsc_gen_xmdf.py mesh.h5 to get XDMF
and then load that in ParaView.



> Thanks!
> Eda

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://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191204/979c071b/attachment.html>

More information about the petsc-users mailing list