[petsc-users] Error using MatCreateSeqAIJ

Dharmendar Reddy dharmareddy84 at gmail.com
Sun Jun 12 15:46:08 CDT 2011


Thank you.

On Sun, Jun 12, 2011 at 8:36 AM, Jed Brown <jed at 59a2.org> wrote:

> On Sun, Jun 12, 2011 at 09:02, Dharmendar Reddy <dharmareddy84 at gmail.com>wrote:
>
>>           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).
>
>
> call
> MatCreateSeqAIJ(PETSC_COMM_SELF,123,123,PETSC_DECIDE,PETSC_NULL,A,ierr)
>
> should be
>
> call
> MatCreateSeqAIJ(PETSC_COMM_SELF,123,123,PETSC_DECIDE,PETSC_NULL_INTEGER,A,ierr)
>
> See the Fortran section in the user's manual, especially "Passing Null
> Pointers".
>
> You should also call MatDestroy().
>



-- 
-----------------------------------------------------
Dharmendar Reddy Palle
Graduate Student
Microelectronics Research center,
University of Texas at Austin,
10100 Burnet Road, Bldg. 160
MER 2.608F, TX 78758-4445
e-mail: dharmareddy84 at gmail.com
Phone: +1-512-350-9082
United States of America.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110612/b0b7dfa9/attachment-0001.htm>


More information about the petsc-users mailing list