[petsc-users] X-Viewer for complex numbers
Smith, Barry F.
bsmith at mcs.anl.gov
Wed Dec 12 19:36:42 CST 2018
The PETSc Vec viewer just plots the real part of the vector.
VecView_Seq_Draw_LG()
to plot the imaginary part or phase etc you would need to write your own plotter (though you can copy some of the code, for example for VecView_Seq_Draw_LG())
Barry
> On Dec 12, 2018, at 9:38 AM, Sajid Ali via petsc-users <petsc-users at mcs.anl.gov> wrote:
>
> Specifically in the context of drawing a vector using the X-viewer ( PetscDraw ).
>
> On Wed, Dec 12, 2018 at 9:33 AM Sajid Ali <sajidsyed2021 at u.northwestern.edu> wrote:
> Hi ,
>
> Does petsc automatically convert complex valued vectors to absolute value vectors before passing it to a viewer ? Is there a way to view the phase of a vector ?
>
> Thank You,
> Sajid Ali
> Applied Physics
> Northwestern University
>
>
> --
> Sajid Ali
> Applied Physics
> Northwestern University
More information about the petsc-users
mailing list