Precision of output

Barry Smith bsmith at mcs.anl.gov
Mon Oct 29 06:55:09 CDT 2007


   -mat_view_matlab   or just before calling the MatView() call
    ierr = PetscViewerPushFormat(viewer,PETSC_VIEWER_ASCII_MATLAB);CHKERRQ(ierr);



On Mon, 29 Oct 2007, John R. Wicks wrote:

> How can I set the precision of my output?  I use an ASCII viewer to write
> the computed vector to a file and many of the entries should on the order of
> 10^-9, but they seem to be printing out at 0.  How can I get it to print to
> higher precision?
> 
> 




More information about the petsc-users mailing list