[petsc-users] Precision of MatView

Mark Adams mfadams at lbl.gov
Tue May 14 19:22:31 CDT 2019


I would hope you get full precision. How many digits are you seeing?

On Tue, May 14, 2019 at 7:15 PM Sanjay Govindjee via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> I am using the following bit of code to debug a matrix.  What is the
> expected precision of the numbers that I will find in my ASCII file?
> As far as I can tell it is not the full double precision that I was
> expecting.
>
>              call PetscViewerASCIIOpen(PETSC_COMM_WORLD,
> tangview,K_view, ierr)
>              call PetscViewerSetFormat(K_view,
> PETSC_VIEWER_ASCII_MATLAB, ierr)
>              call MatView                     (Kmat, K_view, ierr)
>
> -sanjay
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190514/6eaf8c8f/attachment.html>


More information about the petsc-users mailing list