[petsc-users] Draw '2D' Vector (FFT)
Jed Brown
jedbrown at mcs.anl.gov
Sat Jul 14 11:21:15 CDT 2012
On Sat, Jul 14, 2012 at 2:41 AM, Thomas Hisch <t.hisch at gmail.com> wrote:
> The Vec comes from a FFT object. As I'm not that familiar with PETSc
> DMs, is it possible to associate such a FFT Vec with a DM? The next
> thing is that after a FFT the axis coordintes change. Can this be
> handled as well by a DM ?
>
You'll need VecScatterFFTWToPetsc() to turn it into something that you can
interpret. I guess that Vec will be in the natural ordering, so you can
scatter once more to a DMDA.
>
> Regards
> Thomas
>
> On Wed, Jul 11, 2012 at 10:37 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> > 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/20120714/1a6715ca/attachment.html>
More information about the petsc-users
mailing list