[petsc-users] VecView and MatView Question

Matthew Knepley knepley at gmail.com
Tue Oct 23 08:51:45 CDT 2012


On Tue, Oct 23, 2012 at 9:49 AM, Peter Zhoujie Lyu <lzj at umich.edu> wrote:

> Hi everyone,
>
> My code dumps petsc vec and mat into an output file using VecView and
> MatView. I was wondering if there is any way to set the format, such as
> number of digits that was showing in the output file?
>
>       call
> PetscViewerASCIIOpen(PETSC_COMM_WORLD,"dJdWd.output",viewer,PETScIerr)
>       call PetscViewerSetFormat(viewer,PETSC_VIEWER_ASCII_INDEX,PetscIerr)
>       call VecView(dJdW,viewer,PETScIerr)
>

There is not. Our intention for ASCII output is debugging only. For
production, we suggest using
the binary output which is smaller and faster, or perhaps the HDF5 for
which many good tools exist.

  Thanks,

    Matt


> Thanks,
>
> Peter
>



-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20121023/747f7005/attachment.html>


More information about the petsc-users mailing list