[petsc-users] Draw '2D' Vector (FFT)

Jed Brown jedbrown at mcs.anl.gov
Wed Jul 11 15:37:12 CDT 2012


On Wed, Jul 11, 2012 at 3:32 PM, Thomas Hisch <t.hisch at gmail.com> wrote:

> Hello list,
>
> what is the easiest way to 'draw' (PETSC_VIEWER_DRAW_WORLD) a 2D plot
> of a petsc vector which was created with MatGetVecsFFTW()? The
> employed FFT matrix has DIM=2 and therefore the mentioned vector has
> N1*N2 components. As far as I know VecView(x, PETSC_VIEWER_DRAW_WORLD)
> only creates a lineplot.
>

Can the Vec be associated with a DM? If so, it will do a 2D plot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120711/0148f1ec/attachment.html>


More information about the petsc-users mailing list