<div>I meant by MatAssembly, the global indices of matrix elements (related to a dense format) which is changed into sparse one. So what would be right pattern to read the content of the Matrix from MatGetArray if I know that the original matrix is created by AIJ?</div>
<div><br><br> </div>
<div class="gmail_quote">On Sat, Oct 1, 2011 at 4:21 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">
<div class="gmail_quote">On Sat, Oct 1, 2011 at 00:39, behzad baghapour <span dir="ltr"><<a href="mailto:behzad.baghapour@gmail.com" target="_blank">behzad.baghapour@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>I just be able to get right answer from MatGetArray( A, &a ) only if I define matrix in Dense fromat.</div>
<div> </div>
<div>How could I get the right Answer from this function when I define SparseAIJ matrix?</div></blockquote></div><br></div>
<div>Depends what you mean by "right answer". This function accesses private storage, so it's different for each matrix format. You might want to look at MatView() or MatConvert().</div></blockquote></div><br>
<br clear="all"><br>-- <br>==================================<br>Behzad Baghapour<br>Ph.D. Candidate, Mechecanical Engineering<br>University of Tehran, Tehran, Iran<br><a href="https://sites.google.com/site/behzadbaghapour" target="_blank">https://sites.google.com/site/behzadbaghapour</a><br>
Fax: 0098-21-88020741<br>==================================<br><br>