Dear Jed,<br><br>I am sorry that I didn't explain my purpose clearly.<br>The reason I output the matrix is to reformat the matrix since I need to import the matrix to another program. <br>Therefore, I need to first output the matrix and reformat it using other codes.<br>
if I output the matrix using PETSc Binary format, I need to find a method to import it to that program not using MatLoad.<br><br>thanks,<br>Yujie<br><br><div class="gmail_quote">On Thu, May 31, 2012 at 1:34 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><div class="gmail_quote">On Thu, May 31, 2012 at 1:33 PM, recrusader <span dir="ltr"><<a href="mailto:recrusader@gmail.com" target="_blank">recrusader@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Since I need to further process the matrix using my codes. I can easily check the matrix using ASCII format. How to read a matrix in PETSc binary format using c/c++?</blockquote></div><br></div><div>MatLoad()</div>
</blockquote></div><br>