<div class="gmail_quote">On Sat, Jul 14, 2012 at 2:41 AM, Thomas Hisch <span dir="ltr"><<a href="mailto:t.hisch@gmail.com" target="_blank">t.hisch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The Vec comes from a FFT object. As I'm not that familiar with PETSc<br>
DMs, is it possible to associate such a FFT Vec with a DM? The next<br>
thing is that after a FFT the axis coordintes change. Can this be<br>
handled as well by a DM ?<br></blockquote><div><br></div><div>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.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888">Thomas<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Wed, Jul 11, 2012 at 10:37 PM, Jed Brown <<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>> wrote:<br>
> On Wed, Jul 11, 2012 at 3:32 PM, Thomas Hisch <<a href="mailto:t.hisch@gmail.com">t.hisch@gmail.com</a>> wrote:<br>
>><br>
>> Hello list,<br>
>><br>
>> what is the easiest way to 'draw' (PETSC_VIEWER_DRAW_WORLD) a 2D plot<br>
>> of a petsc vector which was created with MatGetVecsFFTW()? The<br>
>> employed FFT matrix has DIM=2 and therefore the mentioned vector has<br>
>> N1*N2 components. As far as I know VecView(x, PETSC_VIEWER_DRAW_WORLD)<br>
>> only creates a lineplot.<br>
><br>
><br>
> Can the Vec be associated with a DM? If so, it will do a 2D plot.<br>
</div></div></blockquote></div><br>