[petsc-users] Draw '2D' Vector (FFT)
Thomas Hisch
t.hisch at gmail.com
Sat Jul 14 02:41:10 CDT 2012
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 ?
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.
More information about the petsc-users
mailing list