[petsc-users] vecview command
Barry Smith
bsmith at mcs.anl.gov
Sat Jan 12 11:56:26 CST 2013
On Jan 12, 2013, at 9:42 AM, Matthew Knepley <knepley at gmail.com> wrote:
> On Sat, Jan 12, 2013 at 9:40 AM, amlan barua <abarua at iit.edu> wrote:
> Hi,
> How to set the precision of the output in the vecview command? I want to see more digits.
>
Or use PetscViewerSetFormat(viewer,PETSC_VIEWER_ASCII_MATLAB); before calling VecView()
Barry
> That is fixed in VecView. You can just use VecGetArray() and print, or use the binary output
> and process it with Python.
>
> Matt
>
>
> Amlan
>
>
>
> --
> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
> -- Norbert Wiener
More information about the petsc-users
mailing list