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

2019-07-25 Thread Smith, Barry F. via petsc-dev
The PETSc paradigm for this is DMView(dm, viewer); /* save mesh info VecView(vec,viewer); Which has basic variants DMView(dm, viewer); /* save mesh info VecView(vec,viewer); VecView(vec,viewer); ... and VecView(vec,viewer); ... Use

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

2019-07-25 Thread Smith, Barry F. via petsc-dev
Indeed. Far too many possibilities, with Matlab alone there is * binary view * matlab binary viewer * ascii viewer * matlab engine * socket viewer to matlab > On Jul 25, 2019, at 1:32 AM, Patrick Sanan via petsc-dev > wrote: > > This came up in the beginner's working g

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

2019-07-25 Thread Jed Brown via petsc-dev
Dave May via petsc-dev 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 b

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

2019-07-25 Thread Jed Brown via petsc-dev
X11 plotting is unreliable (requires installing something non-obvious) on anything but Linux. I use it in live demos, but it's so limited I wouldn't recommend it to users. VTK is more discoverable/explorable for users; install a binary and make all the plots they want. Patrick Sanan via petsc-de