[petsc-users] VecView and MatView Question
Peter Zhoujie Lyu
lzj at umich.edu
Tue Oct 23 08:49:16 CDT 2012
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)
Thanks,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20121023/7d3174cb/attachment.html>
More information about the petsc-users
mailing list