<br>Thank you. <br>                <br><div class="gmail_quote">On Sun, Jun 12, 2011 at 8:36 AM, Jed Brown <span dir="ltr">&lt;<a href="mailto:jed@59a2.org">jed@59a2.org</a>&gt;</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 Sun, Jun 12, 2011 at 09:02, Dharmendar Reddy <span dir="ltr">&lt;<a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

          I am getting argument out of range error when i use MatCreateSeqAIJ, in my code. I am attaching a test case with this email, can someone help me fix this.  Note the the error comes when the matrix size is grater then 49 ( this number was changing for different runs but for the last few test runs, it was 49). </blockquote>

</div><div><br></div></div><div>call MatCreateSeqAIJ(PETSC_COMM_SELF,123,123,PETSC_DECIDE,PETSC_NULL,A,ierr)</div><div><br></div><div>should be</div><div><br></div><div>call MatCreateSeqAIJ(PETSC_COMM_SELF,123,123,PETSC_DECIDE,PETSC_NULL_INTEGER,A,ierr)</div>

<div><br></div><div>See the Fortran section in the user&#39;s manual, especially &quot;Passing Null Pointers&quot;.</div><div><br></div>You should also call MatDestroy().<br>
</blockquote></div><br><br clear="all"><br>-- <br>-----------------------------------------------------<br>Dharmendar Reddy Palle<br>Graduate Student<br>Microelectronics Research center,<br>University of Texas at Austin,<br>
10100 Burnet Road, Bldg. 160<br>MER 2.608F, TX 78758-4445<br>e-mail: <a href="mailto:dharmareddy84@gmail.com">dharmareddy84@gmail.com</a><br>Phone: +1-512-350-9082<br>United States of America.<br><br>