Hi,

I am trying to dump the nonzero entries of matrix into a file. I did the 
following:
-----
       call 
PetscViewerBinaryOpen(PETSC_COMM_WORLD,"matrix.dat",FILE_MODE_WRITE,viewer,pterr)
        call MatView(ptMat,viewer,pterr)
-----

Is that correct? The file has a very large size.

Bests,
Hui

Reply via email to