[petsc-users] Precision of MatView

Sanjay Govindjee s_g at berkeley.edu
Tue May 14 19:34:31 CDT 2019


I'm seeing half precision on at least 10 to 20% of the entries :(
Knowing I should see full precision, I will dig deeper.

-sanjay

On 5/14/19 5:22 PM, Mark Adams wrote:
> 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 <mailto: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/2547e560/attachment.html>


More information about the petsc-users mailing list