[petsc-dev] aij and baij data access

Matthew Knepley knepley at gmail.com
Tue Feb 4 10:10:53 CST 2014


On Tue, Feb 4, 2014 at 10:10 AM, Matthew Knepley <knepley at gmail.com> wrote:

> On Tue, Feb 4, 2014 at 10:01 AM, Jose David Bermeol <jbermeol at purdue.edu>wrote:
>
>> Looking the code for MatGetRowIJ_SeqAIJ_Inode_Nonsymmetric, it is copying
>> the data and I want to avoid that. So, is there other way to do this??
>>
>
> Turn off inodes.
>

-mat_no_inodes

   Matt


>    Matt
>
>
>> ----- Original Message -----
>> From: "Matthew Knepley" <knepley at gmail.com>
>> To: "Jed Brown" <jed at jedbrown.org>
>> Cc: "Jose David Bermeol" <jbermeol at purdue.edu>, "petsc-dev" <
>> petsc-dev at mcs.anl.gov>
>> Sent: Tuesday, February 4, 2014 9:21:34 AM
>> Subject: Re: [petsc-dev] aij and baij data access
>>
>>
>>
>>
>> On Tue, Feb 4, 2014 at 7:41 AM, Jed Brown < jed at jedbrown.org > wrote:
>>
>>
>> Matthew Knepley < knepley at gmail.com > writes:
>>
>> > On Mon, Feb 3, 2014 at 10:22 AM, Jose David Bermeol <
>> jbermeol at purdue.edu >wrote:
>> >
>> >> Hi, Is it possible to access to the raw data of aij matrices(row
>> indices,
>> >> column indices and data). I need to used for and optimize algorithm,
>> this
>> >> data will keep constant all the time. So is it cossible with the public
>> >> interface you have or not??
>> >>
>> >
>> > This is a question for petsc-maint.
>>
>> I disagree; there is no reason to keep such questions private.
>>
>>
>>
>> Let me rephrase: This is a question for petsc-maint (my default
>> suggestion so as not to force
>> people into the public) or petsc-users, not petsc-dev which is for
>> development discussion.
>>
>>
>>
>>
>> >
>> http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatGetColumnIJ.html
>>
>> You actually want MatGetRowIJ because MatGetColumnIJ is expensive with a
>> row-based format like AIJ.
>>
>>
>>
>> Yes, bad click.
>>
>>
>> Matt
>>
>>
>> >
>> http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatSeqAIJGetArray.html
>>
>>
>>
>>
>> --
>> What most experimenters take for granted before they begin their
>> experiments is infinitely more interesting than any results to which their
>> experiments lead.
>> -- Norbert Wiener
>>
>
>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140204/e3ac2c89/attachment.html>


More information about the petsc-dev mailing list