[petsc-dev] What's the easiest route (for a beginner) to visualize a solution from a PETSc example?

Jed Brown jed at jedbrown.org
Thu Jul 25 11:48:52 CDT 2019

Dave May via petsc-dev <petsc-dev at mcs.anl.gov> writes:

> I'd describe how to use the binary dump and how to generate vtk files.
> The first is the most universal as it's completely generic and does not
> depend on a dm, thus users with their own mesh data structure and or don't
> have a mesh at all can use it. Would be worth while also providing a
> minimal python+mathplotlib script which loads the data and spits out a PDF
> so folks don't have to depend on matlab.

If you have a parallel example that doesn't use DM, you're gonna have a
lot of bookkeeping to plot the data after loading the vector.  Seems
like a distraction that will trap a lot of people in the minutia instead
of the big picture.

More information about the petsc-dev mailing list