Yes.<br><br><div class="gmail_quote">On Wed, Dec 30, 2009 at 11:50 AM, <span dir="ltr"><<a href="mailto:hxie@umn.edu">hxie@umn.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I am trying to dump the nonzero entries of matrix into a file. I did the following:<br>
-----<br>
call PetscViewerBinaryOpen(PETSC_COMM_WORLD,"matrix.dat",FILE_MODE_WRITE,viewer,pterr)<br>
call MatView(ptMat,viewer,pterr)<br>
-----<br>
<br>
Is that correct? The file has a very large size.<br>
<br>
Bests,<br>
Hui<br>
</blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>